Sophie

Sophie

distrib > CentOS > 5 > x86_64 > by-pkgid > 2b12d0199a2bbc4a02ef3834d926ac4a > files > 219

systemtap-client-1.8-6.el5.x86_64.rpm

title: Print trace of process ancestors for matching exec commands
name: pstrace_exec.stp
version: 1.0
author: William Cohen
keywords: process backtrace
subsystem: process
status: production
exit: user-controlled
output: trace
scope: system-wide
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.
test_check: stap -p4 pstrace_exec.stp bash
test_installcheck: stap pstrace_exec.stp -c "sleep 0.2" bash