Bug 1315

Summary: support pid filtering
Product: systemtap Reporter: Martin Hunt <hunt>
Component: translatorAssignee: Unassigned <systemtap>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:

Description Martin Hunt 2005-09-07 19:16:28 UTC
We need some way of filtering kprobes based on pid.  It might be part of a more
general-purpose kprobe predicate system

for just filtering on pids, something like the following would be a minimum:

if (!_stp_target || in_interrupt() || (_stp_target == current->pid ||
_stp_target == current->parent->pid))
Comment 1 Frank Ch. Eigler 2006-11-09 16:53:37 UTC
This should include the dtrace-flavoured progenyof() and similar predicates.
Comment 2 Frank Ch. Eigler 2007-08-17 02:25:30 UTC
Committed a variant of the idea: target_set.stp tapset.