diff options
| author | [email protected] <[email protected]> | 2010-02-05 17:02:42 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2010-02-08 15:55:52 +0000 |
| commit | f7e7ee36757f68778700cde1aaed89e1d23e59fd (patch) | |
| tree | c6ea53150b5835324446aedc6418819211ff0bc2 /tools/perf/util/scripting-engines/trace-event-perl.c | |
| parent | x86/alternatives: Fix build warning (diff) | |
| download | kernel-f7e7ee36757f68778700cde1aaed89e1d23e59fd.tar.gz kernel-f7e7ee36757f68778700cde1aaed89e1d23e59fd.zip | |
perf record: Fix existing process callgraph symbol
When 'perf record -g' a existing process, even with debuginfo
packages, still cannnot get symbol from 'perf report'.
try:
perf record -g -p `pidof xxx` -f
perf report
68.26% :1181 b74870f2 [.] 0x000000b74870f2
|
|--32.09%-- 0xb73b5b44
| 0xb7487102
| 0xb748a4e2
| 0xb748633d
| 0xb73b41cd
| 0xb73b4467
| 0xb747d531
The reason is: for existing process, in __cmd_record(),
the pid is 0 rather than the existing process id.
Signed-off-by: Austin Zhang <[email protected]>
Acked-by: Peter Zijlstra <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-perl.c')
0 files changed, 0 insertions, 0 deletions
