Sophie

Sophie

distrib > Fedora > 17 > i386 > by-pkgid > e2ec330d3ecf5110b4aa890342e53d96 > files > 967

systemtap-client-2.1-2.fc17.i686.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