kernel_optimize_test/tools/perf
Zhang, Yanmin d6d901c23a perf events: Change perf parameter --pid to process-wide collection instead of thread-wide
Parameter --pid (or -p) of perf currently means a thread-wide
collection. For exmaple, if a process whose id is 8888 has 10
threads, 'perf top -p 8888' just collects the main thread
statistics. That's misleading. Users are used to attach a whole
process when debugging a process by gdb. To follow normal usage
style, the patch change --pid to process-wide collection and add
--tid (-t) to mean a thread-wide collection.

Usage example is:

 # perf top -p 8888
 # perf record -p 8888 -f sleep 10
 # perf stat -p 8888 -f sleep 10

Above commands collect the statistics of all threads of process
8888.

Signed-off-by: Zhang Yanmin <yanmin_zhang@linux.intel.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Avi Kivity <avi@redhat.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Sheng Yang <sheng@linux.intel.com>
Cc: Joerg Roedel <joro@8bytes.org>
Cc: Jes Sorensen <Jes.Sorensen@redhat.com>
Cc: Marcelo Tosatti <mtosatti@redhat.com>
Cc: Gleb Natapov <gleb@redhat.com>
Cc: zhiteng.huang@intel.com
Cc: Zachary Amsden <zamsden@redhat.com>
LKML-Reference: <1268922965-14774-3-git-send-email-acme@infradead.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2010-03-18 16:21:12 +01:00
..
bench
Documentation perf probe: Add --dry-run option 2010-03-17 11:32:31 +01:00
scripts
util perf events: Change perf parameter --pid to process-wide collection instead of thread-wide 2010-03-18 16:21:12 +01:00
.gitignore
builtin-annotate.c perf annotate: Properly notify the user that vmlinux is missing 2010-03-15 17:16:25 +01:00
builtin-bench.c
builtin-buildid-cache.c
builtin-buildid-list.c
builtin-diff.c perf session: Change perf_session post processing functions to take histogram tree 2010-03-10 13:53:49 +01:00
builtin-help.c
builtin-kmem.c
builtin-list.c
builtin-lock.c
builtin-probe.c perf probe: Introduce kprobe_trace_event and perf_probe_event 2010-03-17 11:32:31 +01:00
builtin-record.c perf events: Change perf parameter --pid to process-wide collection instead of thread-wide 2010-03-18 16:21:12 +01:00
builtin-report.c perf report: Implement initial UI using newt 2010-03-12 10:28:46 +01:00
builtin-sched.c
builtin-stat.c perf events: Change perf parameter --pid to process-wide collection instead of thread-wide 2010-03-18 16:21:12 +01:00
builtin-timechart.c
builtin-top.c perf events: Change perf parameter --pid to process-wide collection instead of thread-wide 2010-03-18 16:21:12 +01:00
builtin-trace.c perf trace: Don't use pager if scripting 2010-03-04 12:19:55 +01:00
builtin.h
command-list.txt
CREDITS
design.txt
Makefile perf report: Implement initial UI using newt 2010-03-12 10:28:46 +01:00
perf-archive.sh
perf.c perf tools: Fix non-newt build 2010-03-13 08:23:37 +01:00
perf.h perf top: Export get_window_dimensions 2010-03-12 10:28:36 +01:00