| 1 |
title: System-Wide Count of Syscalls by PID |
| 2 |
name: syscalls_by_pid.stp |
| 3 |
version: 1.0 |
| 4 |
author: anonymous |
| 5 |
keywords: syscall |
| 6 |
subsystem: syscall |
| 7 |
status: production |
| 8 |
exit: user-controlled |
| 9 |
output: sorted-list on-exit |
| 10 |
scope: system-wide |
| 11 |
description: The script watches all syscall on the system. On exit the script prints a list showing the number of systemcalls executed by each PID ordered from greatest to least number of syscalls. |
| 12 |
test_check: stap -p4 syscalls_by_pid.stp |
| 13 |
test_installcheck: stap syscalls_by_pid.stp -T 1 |