blob: 0f0e9d453bb48a606b3c6522a104bd16499fede8 [file] [log] [blame]
Tom Zanussi4d161f02010-01-27 02:27:58 -06001#!/bin/bash
2# description: system-wide syscall counts
3# args: [comm]
Tom Zanussi00b21a02010-04-01 23:59:24 -05004if [ $# -gt 0 ] ; then
Tom Zanussie61a6392010-05-09 23:47:00 -05005 if ! expr match "$1" "-" > /dev/null ; then
Tom Zanussi00b21a02010-04-01 23:59:24 -05006 comm=$1
7 shift
8 fi
9fi
Arnaldo Carvalho de Melo765532c2010-12-23 13:10:22 -020010perf script $@ -s "$PERF_EXEC_PATH"/scripts/python/syscall-counts.py $comm