File: syscall-counts-report

package info (click to toggle)
linux 4.9.228-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 814,720 kB
  • sloc: ansic: 14,532,095; asm: 289,032; makefile: 35,316; perl: 27,556; sh: 17,027; python: 13,390; cpp: 6,103; yacc: 4,354; lex: 2,440; awk: 1,212; pascal: 231; lisp: 218; sed: 21
file content (10 lines) | stat: -rw-r--r-- 241 bytes parent folder | download | duplicates (63)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash
# description: system-wide syscall counts
# args: [comm]
if [ $# -gt 0 ] ; then
    if ! expr match "$1" "-" > /dev/null ; then
	comm=$1
	shift
    fi
fi
perf script $@ -s "$PERF_EXEC_PATH"/scripts/python/syscall-counts.py $comm