| 1 |
title: Monitor process creation/termination and module [un]loading |
| 2 |
name: procmod_watcher.stp |
| 3 |
version: 1.0 |
| 4 |
author: Jonathan Lebon |
| 5 |
keywords: process monitoring syscall tracepoint |
| 6 |
subsystem: process |
| 7 |
status: production |
| 8 |
exit: user-controlled |
| 9 |
output: trace |
| 10 |
scope: process |
| 11 |
description: The procmod_watcher.stp script monitors calls to fork(), exec(), exit(), init_module(), and delete_module(). Event-specific details are also printed out (e.g. for exec(), the file being exec'ed). This script does not require debuginfo. |
| 12 |
test_support: stap -l 'kernel.trace("module_load")' |
| 13 |
test_check: stap -p4 procmod_watcher.stp |
| 14 |
test_installcheck: stap procmod_watcher.stp -T 1 |