Bug 1315 - support pid filtering
Summary: support pid filtering
Status: RESOLVED FIXED
Alias: None
Product: systemtap
Classification: Unclassified
Component: translator (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-07 19:16 UTC by Martin Hunt
Modified: 2007-08-17 02:25 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.