| 1 |
title: Provide a per-process syscall tally on the system |
| 2 |
name: syscallsbypid.stp |
| 3 |
version: 1.0 |
| 4 |
author: William Cohen |
| 5 |
keywords: prometheus process syscall tracepoint |
| 6 |
subsystem: process |
| 7 |
status: experimental |
| 8 |
exit: user-controlled |
| 9 |
output: proc |
| 10 |
scope: system-wide |
| 11 |
description: The syscallsbypid.stp script tallies each syscall for each running process. This information can be useful to determine the activity of various processes on the system. The script makes the information available via procfs in Prometheus readable format. When a process exits its data will be eliminated from the prometheus output. To avoid exceeding the storage limitations of SystemTap older entries maybe overwritten by newer entries. This can lead to some active process syscall counts disappearing and/or later reappearing with a lower value. Also note that the script does not properly name syscalls for 32-bit applications running on 64-bit machines. |
| 12 |
test_check: stap -p4 syscallsbypid.stp |
| 13 |
test_installcheck: stap syscallsbypid.stp -T 1 |