perf tools: Allow multiple threads or processes in record, stat, top
Allow a user to collect events for multiple threads or processes using a comma separated list. e.g., collect data on a VM and its vhost thread: perf top -p 21483,21485 perf stat -p 21483,21485 -ddd perf record -p 21483,21485 or monitoring vcpu threads perf top -t 21488,21489 perf stat -t 21488,21489 -ddd perf record -t 21488,21489 Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Link: http://lkml.kernel.org/r/1328718772-16688-1-git-send-email-dsahern@gmail.com Signed-off-by:David Ahern <dsahern@gmail.com> Signed-off-by:
Arnaldo Carvalho de Melo <acme@redhat.com>
Showing
- tools/perf/Documentation/perf-record.txt 2 additions, 2 deletionstools/perf/Documentation/perf-record.txt
- tools/perf/Documentation/perf-stat.txt 2 additions, 2 deletionstools/perf/Documentation/perf-stat.txt
- tools/perf/Documentation/perf-top.txt 2 additions, 2 deletionstools/perf/Documentation/perf-top.txt
- tools/perf/builtin-record.c 4 additions, 6 deletionstools/perf/builtin-record.c
- tools/perf/builtin-stat.c 16 additions, 15 deletionstools/perf/builtin-stat.c
- tools/perf/builtin-test.c 0 additions, 2 deletionstools/perf/builtin-test.c
- tools/perf/builtin-top.c 5 additions, 7 deletionstools/perf/builtin-top.c
- tools/perf/perf.h 2 additions, 2 deletionstools/perf/perf.h
- tools/perf/util/evlist.c 5 additions, 5 deletionstools/perf/util/evlist.c
- tools/perf/util/evlist.h 2 additions, 2 deletionstools/perf/util/evlist.h
- tools/perf/util/evsel.c 1 addition, 1 deletiontools/perf/util/evsel.c
- tools/perf/util/python-ext-sources 2 additions, 0 deletionstools/perf/util/python-ext-sources
- tools/perf/util/thread_map.c 128 additions, 0 deletionstools/perf/util/thread_map.c
- tools/perf/util/thread_map.h 4 additions, 0 deletionstools/perf/util/thread_map.h
- tools/perf/util/top.c 5 additions, 5 deletionstools/perf/util/top.c
- tools/perf/util/top.h 1 addition, 1 deletiontools/perf/util/top.h
- tools/perf/util/usage.c 3 additions, 3 deletionstools/perf/util/usage.c
- tools/perf/util/util.h 1 addition, 1 deletiontools/perf/util/util.h
Loading
Please register or sign in to comment