Bug 14440 - improve plimit.stp example to take -x PID
Summary: improve plimit.stp example to take -x PID
Status: RESOLVED FIXED
Alias: None
Product: systemtap
Classification: Unclassified
Component: testsuite (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Jonathan Lebon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-07 19:36 UTC by Frank Ch. Eigler
Modified: 2013-05-27 20:56 UTC (History)
1 user (show)

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 Frank Ch. Eigler 2012-08-07 19:36:40 UTC
As pfiles.stp takes the target pid both by $1 and -x (target()), plimits.stp should do the same.
Comment 1 Jonathan Lebon 2013-05-27 20:56:33 UTC
Added support for $1 and -x in plimits.stp in this commit: http://sourceware.org/git/gitweb.cgi?p=systemtap.git;a=commit;h=161c678d113a347b5a89a12f4f5275c2f82e37ab

PR14440: made usage of pfiles.stp and plimit.stp more consistent

Added support for plimit.stp to accept a target PID through both -x and
$1, just like in pfiles.stp. Also removed the //bin/true hack from
pfiles.stp and '#!/usr/bin/env stap' from plimit.stp so that both of
them must be run using stap -g.