Joseph Schuchart
0f5f5bcd11
perf script: Add callchain to generic and tracepoint events
...
This provides valuable information for tracing performance problems.
Since this change alters the interface for the python scripts, also
adjust the script generation and the provided scripts.
Signed-off-by: Joseph Schuchart <[email protected] >
Acked-by: Thomas Ilsche <[email protected] >
Cc: Ingo Molnar <[email protected] >
Cc: Jiri Olsa <[email protected] >
Cc: Namhyung Kim <[email protected] >
Cc: Paul Mackerras <[email protected] >
Cc: Peter Zijlstra <[email protected] >
Cc: Thomas Ilsche <[email protected] >
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected] >
2014-07-16 17:57:33 -03:00
Daniel Bristot de Oliveira
07100877ea
perf scripts: Fallback to syscalls:* when raw_syscalls:* is not available
...
Older kernels (e.g., RHEL6) do system call tracing via the
syscalls:sys_{enter,exit} tracepoints rather than using raw_syscalls:*.
Update perf python and perl scripts to fallback to syscalls:* when
raw_syscalls:* isn't available.
Signed-off-by: Daniel Bristot de Oliveira <[email protected] >
Cc: Ingo Molnar <[email protected] >
Cc: Luis Claudio R. Goncalves <[email protected] >
Cc: Paul Mackerras <[email protected] >
Cc: Peter Zijlstra <[email protected] >
Link: http://lkml.kernel.org/r/5a6c64081a3375bc3bc66351b14559678ef4d71e.1402507908.git.bristot@redhat.com
Signed-off-by: Arnaldo Carvalho de Melo <[email protected] >
2014-06-25 12:26:56 -03:00
Arnaldo Carvalho de Melo
765532c8aa
perf script: Finish the rename from trace to script
...
The scripts have calls to 'perf trace' that need to be converted to 'perf script', do it.
This problem was introduced in 133dc4c.
Reported-by: Torok Edwin <[email protected] >
Cc: Frederic Weisbecker <[email protected] >
Cc: Ingo Molnar <[email protected] >
Cc: Mike Galbraith <[email protected] >
Cc: Paul Mackerras <[email protected] >
Cc: Peter Zijlstra <[email protected] >
Cc: Stephane Eranian <[email protected] >
Cc: Tom Zanussi <[email protected] >
Cc: Torok Edwin <[email protected] >
LKML-Reference: <new-submission>
Signed-off-by: Arnaldo Carvalho de Melo <[email protected] >
2010-12-25 11:29:02 -02:00
Arnaldo Carvalho de Melo
22d0594b31
perf python scripting: Fixup cut'n'paste error in sctop script
...
Cc: Frederic Weisbecker <[email protected] >
Cc: Ingo Molnar <[email protected] >
Cc: Mike Galbraith <[email protected] >
Cc: Paul Mackerras <[email protected] >
Cc: Peter Zijlstra <[email protected] >
Cc: Stephane Eranian <[email protected] >
Cc: Tom Zanussi <[email protected] >
LKML-Reference: <new-submission>
Signed-off-by: Arnaldo Carvalho de Melo <[email protected] >
2010-10-26 15:21:15 -02:00
Arnaldo Carvalho de Melo
2e7d1e3fb8
perf python scripting: print the syscall name on sctop
...
[root@emilia tmp]# perf trace sctop 1
syscall events:
event count
---------------------------------------- ----------
read 215400
futex 4029
write 376
brk 33
rt_sigprocmask 24
select 17
lseek 2
fsync 1
^C[root@emilia tmp]#
Cc: David S. Miller <[email protected] >
Cc: Frederic Weisbecker <[email protected] >
Cc: Ingo Molnar <[email protected] >
Cc: Mike Galbraith <[email protected] >
Cc: Paul Mackerras <[email protected] >
Cc: Peter Zijlstra <[email protected] >
Cc: Stephane Eranian <[email protected] >
Cc: Tom Zanussi <[email protected] >
LKML-Reference: <new-submission>
Signed-off-by: Arnaldo Carvalho de Melo <[email protected] >
2010-10-25 18:47:27 -02:00
Tom Zanussi
47902f3611
perf trace/scripting: Add rwtop and sctop scripts
...
A couple of scripts, one in Python and the other in Perl, that
demonstrate 'live mode' tracing. For each, the output of the
perf event stream is fed continuously to the script, which
continuously aggregates the data and reports the current results
every 3 seconds, or at the optionally specified interval. After
the current results are displayed, the aggregations are cleared
and the cycle begins anew.
To run the scripts, simply pipe the output of the 'perf trace
record' step as input to the corresponding 'perf trace report'
step, using '-' as the filename to -o and -i:
$ perf trace record sctop -o - | perf trace report sctop -i -
Also adds clear_term() utility functions to the Util.pm and
Util.py utility modules, for use by any script to clear the
screen.
Signed-off-by: Tom Zanussi <[email protected] >
Acked-by: Thomas Gleixner <[email protected] >
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
LKML-Reference: <[email protected] >
Signed-off-by: Ingo Molnar <[email protected] >
2010-04-14 11:56:08 +02:00