xref: /linux/tools/perf/scripts/python/bin/syscall-counts-by-pid-report (revision 00b21a01935892a2b97613f10300434998f45093)
14d161f03STom Zanussi#!/bin/bash
24d161f03STom Zanussi# description: system-wide syscall counts, by pid
34d161f03STom Zanussi# args: [comm]
4*00b21a01STom Zanussiif [ $# -gt 0 ] ; then
5*00b21a01STom Zanussi    if ! expr match "$1" "-" ; then
6*00b21a01STom Zanussi	comm=$1
7*00b21a01STom Zanussi	shift
8*00b21a01STom Zanussi    fi
9*00b21a01STom Zanussifi
10*00b21a01STom Zanussiperf trace $@ -s ~/libexec/perf-core/scripts/python/syscall-counts-by-pid.py $comm
11