| 1 |
title: Print trace of process ancestors for matching exec commands |
| 2 |
name: pstrace_exec.stp |
| 3 |
version: 1.0 |
| 4 |
author: William Cohen |
| 5 |
keywords: process backtrace |
| 6 |
subsystem: process |
| 7 |
status: production |
| 8 |
exit: user-controlled |
| 9 |
output: trace |
| 10 |
scope: system-wide |
| 11 |
description: The pstrace_exec.stp script watches each exec operation. If the exec contains a substring that matches the script's command-line argument, it prints out that process and all of its ancestors. |
| 12 |
test_check: stap -p4 pstrace_exec.stp bash |
| 13 |
test_installcheck: stap pstrace_exec.stp -T 1 bash |