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
6545aaa561
perf python scripting: Improve the syscalls-counts script
...
. Print message at script start telling how to get te summary
. Print the syscall name
Now it looks like this:
[root@emilia ~]# perf trace syscall-counts
Press control+C to stop and show the summary
^C
syscall events:
event count
---------------------------------------- -----------
read 102752
open 1293
close 878
write 319
stat 185
fstat 149
getdents 116
mmap 98
brk 80
rt_sigaction 66
munmap 42
mprotect 24
lseek 21
lstat 7
rt_sigprocmask 4
futex 3
statfs 3
ioctl 3
readlink 2
select 2
getegid 1
geteuid 1
getgid 1
getuid 1
getrlimit 1
fcntl 1
uname 1
[root@emilia ~]#
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:11 -02:00
Tom Zanussi
4d161f0360
perf/scripts: Add syscall tracing scripts
...
Adds a set of scripts that aggregate system call totals and system
call errors. Most are Python scripts that also test basic
functionality of the new Python engine, but there's also one Perl
script added for comparison and for reference in some new
Documentation contained in a later patch.
Signed-off-by: Tom Zanussi <[email protected] >
Cc: Ingo Molnar <[email protected] >
Cc: Steven Rostedt <[email protected] >
Cc: Keiichi KII <[email protected] >
Cc: Peter Zijlstra <[email protected] >
Cc: Paul Mackerras <[email protected] >
Cc: Arnaldo Carvalho de Melo <[email protected] >
LKML-Reference: <[email protected] >
Signed-off-by: Frederic Weisbecker <[email protected] >
2010-02-25 04:07:48 +01:00