Arnaldo Carvalho de Melo
6cc7361440
perf python scripting: Improve the failed-syscalls-by-pid script
. Print message at script start telling how to get te summary
. Print the syscall name using the audit-lib-python package, if
installed
. Print the errno string
. Accept both pid (if numeric) or COMM name
Now it looks like this:
[root@emilia ~]# perf trace failed-syscalls-by-pid
Press control+C to stop and show the summary
^C
syscall errors:
comm [pid] count
------------------------------ ----------
automount [1670]
syscall: futex
err = ETIMEDOUT 39
irqbalance [1462]
syscall: openat
err = ENOENT 4
perf [7888]
syscall: lseek
err = ESPIPE 1
syscall: open
err = ENOENT 24
perf [7889]
syscall: ioctl
err = EINVAL 1
syscall: readlink
err = EINVAL 2
syscall: open
err = ENOENT 389
syscall: stat
err = ENOENT 141
syscall: lseek
err = ESPIPE 3
[root@emilia ~]#
[root@emilia ~]# perf trace failed-syscalls-by-pid 1670
Press control+C to stop and show the summary
^C
syscall errors:
comm [pid] count
------------------------------ ----------
automount [1670]
syscall: futex
err = ETIMEDOUT 2
[root@emilia ~]#
[root@emilia ~]#
[root@emilia ~]#
[root@emilia ~]# perf trace failed-syscalls-by-pid automount
Press control+C to stop and show the summary
^C
syscall errors for automount:
comm [pid] count
------------------------------ ----------
automount [1669]
syscall: futex
err = ETIMEDOUT 1
automount [1670]
syscall: futex
err = ETIMEDOUT 5
[root@emilia ~]#
Cc: David S. Miller <davem@davemloft.net>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Tom Zanussi <tzanussi@gmail.com>
LKML-Reference: <new-submission>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
|
2010-10-25 18:46:41 -02:00 |
| .. |
|
bin
|
perf trace: Use $PERF_EXEC_PATH in canned report scripts
|
2010-10-23 15:31:20 -02:00 |
|
Perf-Trace-Util
|
perf python scripting: Improve the failed-syscalls-by-pid script
|
2010-10-25 18:46:41 -02:00 |
|
check-perf-trace.py
|
perf scripts python: Give field dict to unhandled callback
|
2010-06-01 06:12:35 -03:00 |
|
failed-syscalls-by-pid.py
|
perf python scripting: Improve the failed-syscalls-by-pid script
|
2010-10-25 18:46:41 -02:00 |
|
netdev-times.py
|
perf: Add a script to show packets processing
|
2010-09-07 18:43:32 +02:00 |
|
sched-migration.py
|
perf, sched migration: Librarize task states and event headers helpers
|
2010-08-02 01:32:00 +02:00 |
|
sctop.py
|
perf trace/scripting: Add rwtop and sctop scripts
|
2010-04-14 11:56:08 +02:00 |
|
syscall-counts-by-pid.py
|
perf/scripts: Add syscall tracing scripts
|
2010-02-25 04:07:48 +01:00 |
|
syscall-counts.py
|
perf/scripts: Add syscall tracing scripts
|
2010-02-25 04:07:48 +01:00 |