11 lines · plain
1#!/bin/bash2# description: system-wide syscall counts, by pid3# args: [comm]4if [ $# -gt 0 ] ; then5 if ! expr match "$1" "-" > /dev/null ; then6 comm=$17 shift8 fi9fi10perf script $@ -s "$PERF_EXEC_PATH"/scripts/python/syscall-counts-by-pid.py $comm11