public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug server/15083] New: stapdyn needs system() support
@ 2013-01-30 20:44 dsmith at redhat dot com
  2013-04-26 17:19 ` [Bug server/15083] " dsmith at redhat dot com
  2013-05-21 20:01 ` dsmith at redhat dot com
  0 siblings, 2 replies; 3+ messages in thread
From: dsmith at redhat dot com @ 2013-01-30 20:44 UTC (permalink / raw)
  To: systemtap

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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug server/15083] stapdyn needs system() support
  2013-01-30 20:44 [Bug server/15083] New: stapdyn needs system() support dsmith at redhat dot com
@ 2013-04-26 17:19 ` dsmith at redhat dot com
  2013-05-21 20:01 ` dsmith at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: dsmith at redhat dot com @ 2013-04-26 17:19 UTC (permalink / raw)
  To: systemtap

http://sourceware.org/bugzilla/show_bug.cgi?id=15083

Bug 15083 depends on bug 14491, which changed state.

Bug 14491 Summary: Add a proper stapdyn transport layer
http://sourceware.org/bugzilla/show_bug.cgi?id=14491

           What    |Old Value                   |New Value
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug server/15083] stapdyn needs system() support
  2013-01-30 20:44 [Bug server/15083] New: stapdyn needs system() support dsmith at redhat dot com
  2013-04-26 17:19 ` [Bug server/15083] " dsmith at redhat dot com
@ 2013-05-21 20:01 ` dsmith at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: dsmith at redhat dot com @ 2013-05-21 20:01 UTC (permalink / raw)
  To: systemtap

http://sourceware.org/bugzilla/show_bug.cgi?id=15083

David Smith <dsmith at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #1 from David Smith <dsmith at redhat dot com> 2013-05-21 20:01:49 UTC ---
Fixed in commit c47ea76.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-05-21 20:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-30 20:44 [Bug server/15083] New: stapdyn needs system() support dsmith at redhat dot com
2013-04-26 17:19 ` [Bug server/15083] " dsmith at redhat dot com
2013-05-21 20:01 ` dsmith at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).