• Arnaldo Carvalho de Melo's avatar
    perf top: Allow disabling/enabling events dynamicly · 5d484f99
    Arnaldo Carvalho de Melo authored
    Now it is possible to press CTRL+z at anytime and that will disable the
    events being monitored, essentially turning 'top' into 'report', with
    pressing CTRL+z again making it enable the events again, returning to
    the 'top' behaviour, i.e. dynamic + decaying of older samples.
    
    One may want, for instance, play with:
    
        -d, --delay <n>       number of seconds to delay between refreshes
    
    and:
    
        -z, --zero            zero history across updates
    
    Plus CTRL+z to see only the events since last zeroing, etc.
    Suggested-by: default avatarIngo Molnar <mingo@kernel.org>
    Cc: Adrian Hunter <adrian.hunter@intel.com>
    Cc: Borislav Petkov <bp@suse.de>
    Cc: David Ahern <dsahern@gmail.com>
    Cc: Don Zickus <dzickus@redhat.com>
    Cc: Frederic Weisbecker <fweisbec@gmail.com>
    Cc: Jiri Olsa <jolsa@redhat.com>
    Cc: Namhyung Kim <namhyung@kernel.org>
    Cc: Stephane Eranian <eranian@google.com>
    Link: http://lkml.kernel.org/n/tip-zq7tnh5462blt2yda0bcxh5b@git.kernel.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    5d484f99
builtin-top.c 32.9 KB