mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-24 23:52:40 +00:00
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 <tzanussi@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Keiichi KII <k-keiichi@bx.jp.nec.com> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Paul Mackerras <paulus@samba.org> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> LKML-Reference: <1264580883-15324-8-git-send-email-tzanussi@gmail.com> Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
This commit is contained in:
parent
7e4b21b84c
commit
4d161f0360
15 changed files with 339 additions and 1 deletions
|
@ -0,0 +1,2 @@
|
|||
#!/bin/bash
|
||||
perf record -c 1 -f -a -M -R -e raw_syscalls:sys_exit
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
# description: system-wide failed syscalls, by pid
|
||||
# args: [comm]
|
||||
perf trace -s ~/libexec/perf-core/scripts/python/failed-syscalls-by-pid.py $1
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/bash
|
||||
perf record -c 1 -f -a -M -R -e raw_syscalls:sys_enter
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
# description: system-wide syscall counts, by pid
|
||||
# args: [comm]
|
||||
perf trace -s ~/libexec/perf-core/scripts/python/syscall-counts-by-pid.py $1
|
2
tools/perf/scripts/python/bin/syscall-counts-record
Normal file
2
tools/perf/scripts/python/bin/syscall-counts-record
Normal file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/bash
|
||||
perf record -c 1 -f -a -M -R -e raw_syscalls:sys_enter
|
4
tools/perf/scripts/python/bin/syscall-counts-report
Normal file
4
tools/perf/scripts/python/bin/syscall-counts-report
Normal file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
# description: system-wide syscall counts
|
||||
# args: [comm]
|
||||
perf trace -s ~/libexec/perf-core/scripts/python/syscall-counts.py $1
|
Loading…
Add table
Add a link
Reference in a new issue