mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 22:37:45 -04:00
A small fix for the syscall counts by pid script: - silence the match output in the shell script Cc: Frédéric Weisbecker <[email protected]> Cc: Ingo Molnar <[email protected]> LKML-Reference: <[email protected]> Signed-off-by: Tom Zanussi <[email protected]> Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
11 lines
257 B
Bash
11 lines
257 B
Bash
#!/bin/bash
|
|
# description: system-wide syscall counts, 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/syscall-counts-by-pid.py $comm
|