mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-04-15 02:44:00 +00:00
A small fix for the syscall counts by pid script: - silence the match output in the shell script Cc: Frédéric Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> LKML-Reference: <1273466820-9330-9-git-send-email-tzanussi@gmail.com> Signed-off-by: Tom Zanussi <tzanussi@gmail.com> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
10 lines
257 B
Bash
10 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
|