This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug server/15083] New: stapdyn needs system() support
- From: "dsmith at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sourceware dot org
- Date: Wed, 30 Jan 2013 20:44:04 +0000
- Subject: [Bug server/15083] New: stapdyn needs system() support
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=15083
Bug #: 15083
Summary: stapdyn needs system() support
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: server
AssignedTo: systemtap@sourceware.org
ReportedBy: dsmith@redhat.com
Depends on: 14491
Classification: Unclassified
Stapdyn needs support for the system() function, which allows users to execute
system commands in probes, like the following:
====
# stap -e 'probe begin { system("whoami"); exit() }'
dsmith
====
When you try this with dyninst, you get compilation errors:
====
stap --runtime=dyninst -e 'probe begin { system("whoami"); exit() }'
/tmp/stappmcBwb/stap_6e2d98d4dd508c0d340cf52b43604b2c_1111_src.c: In function
âfunction_systemâ:
/tmp/stappmcBwb/stap_6e2d98d4dd508c0d340cf52b43604b2c_1111_src.c:112:2: error:
implicit declaration of function â_stp_ctl_sendâ
[-Werror=implicit-function-declaration]
_stp_ctl_send(STP_SYSTEM, STAP_ARG_cmd, strlen(STAP_ARG_cmd)+1);
^
cc1: all warnings being treated as errors
WARNING: gcc exited with status: 1
Pass 4: compilation failed. [man error::pass4]
====
(The fix here most likely depends on bug #14491.)
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.