File: syscall-counts-by-pid-report

package info (click to toggle)
linux 6.12.48-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie-proposed-updates
  • size: 1,676,776 kB
  • sloc: ansic: 25,923,544; asm: 269,619; sh: 136,458; python: 65,440; makefile: 55,722; perl: 37,752; xml: 19,284; cpp: 5,895; yacc: 4,927; lex: 2,939; awk: 1,594; sed: 28; ruby: 25
file content (10 lines) | stat: -rw-r--r-- 256 bytes parent folder | download | duplicates (64)
1
2
3
4
5
6
7
8
9
10
#!/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 script $@ -s "$PERF_EXEC_PATH"/scripts/python/syscall-counts-by-pid.py $comm