This service will be undergoing maintenance at 00:00 UTC, 2016-09-28. It is expected to last about 1 hours
Bug 698292 - Option "-c" has undocumented side-effect of setting target()
Option "-c" has undocumented side-effect of setting target()
Status: CLOSED UPSTREAM
Product: Fedora
Classification: Fedora
Component: systemtap (Show other bugs)
14
All Linux
unspecified Severity low
: ---
: ---
Assigned To: Frank Ch. Eigler
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2011-04-20 11:21 EDT by Fabio Olive Leite
Modified: 2011-04-20 16:04 EDT (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2011-04-20 16:04:25 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)
baby patch to document stap(1) option -c better and unscramble function::target(3stap) (1.03 KB, patch)
2011-04-20 15:59 EDT, Fabio Olive Leite
no flags Details | Diff

  None (edit)
Description Fabio Olive Leite 2011-04-20 11:21:14 EDT
Description of problem:

Using command line option "-c" to specify a command to run during the stap session has the undocumented side-effect of setting target() to the pid of the command ran. This is actually a good thing and should be documented. :)

Version-Release number of selected component (if applicable):

systemtap-1.4-2.fc14.x86_64, very likely F15 and rawhide as well.

How reproducible:

Always.

Steps to Reproduce:

$ sudo stap -e 'probe begin { printf("%d\n", target()); }
probe kernel.function("do_exit") {
  printf("%s(%d) called do_exit\n", execname(), pid());
}' -c /bin/true 

31688
true(31688) called do_exit

$ man stap
[find no mention of target() on "-c" section]

Actual results:

It is not documented on manpage and other documentation.

Expected results:

It should be documented on manpage and other documentation.

Additional info:

Maybe a bugzilla was not the best way to pursue this?
Comment 1 Frank Ch. Eigler 2011-04-20 11:27:29 EDT
It's documented in the function::target.3stap man page.
Comment 4 Fabio Olive Leite 2011-04-20 15:59:07 EDT
Created attachment 493611 [details]
baby patch to document stap(1) option -c better and unscramble function::target(3stap)
Comment 5 Frank Ch. Eigler 2011-04-20 16:04:25 EDT
Committed to upstream systemtap; should be fixed in version 1.5.

Note You need to log in before you can comment on or make changes to this bug.