aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/bin/failed-syscalls-by-pid-report
diff options
context:
space:
mode:
authorMichal Marek <mmarek@suse.cz>2010-08-04 14:05:07 +0200
committerMichal Marek <mmarek@suse.cz>2010-08-04 14:05:07 +0200
commit7a996d3ab150bb0e1b71fa182f70199a703efdd1 (patch)
tree96a36947d90c9b96580899abd38cb3b70cd9d40b /tools/perf/scripts/python/bin/failed-syscalls-by-pid-report
parentkconfig: add savedefconfig (diff)
parentLinux 2.6.35 (diff)
downloadlinux-7a996d3ab150bb0e1b71fa182f70199a703efdd1.tar.gz
linux-7a996d3ab150bb0e1b71fa182f70199a703efdd1.zip
Merge commit 'v2.6.35' into kbuild/kconfig
Conflicts: scripts/kconfig/Makefile
Diffstat (limited to 'tools/perf/scripts/python/bin/failed-syscalls-by-pid-report')
-rw-r--r--tools/perf/scripts/python/bin/failed-syscalls-by-pid-report10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/perf/scripts/python/bin/failed-syscalls-by-pid-report b/tools/perf/scripts/python/bin/failed-syscalls-by-pid-report
new file mode 100644
index 000000000000..30293545fcc2
--- /dev/null
+++ b/tools/perf/scripts/python/bin/failed-syscalls-by-pid-report
@@ -0,0 +1,10 @@
+#!/bin/bash
+# description: system-wide failed syscalls, by pid
+# args: [comm]
+if [ $# -gt 0 ] ; then
+ if ! expr match "$1" "-" > /dev/null ; then
+ comm=$1
+ shift
+ fi
+fi
+perf trace $@ -s ~/libexec/perf-core/scripts/python/failed-syscalls-by-pid.py $comm