This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug tapsets/12471] Support wait4 *status printing
- From: "jan.kratochvil at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: Wed, 9 Feb 2011 18:14:00 +0000
- Subject: [Bug tapsets/12471] Support wait4 *status printing
- Auto-submitted: auto-generated
- References: <bug-12471-1110@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=12471
--- Comment #4 from Jan Kratochvil <jan.kratochvil at redhat dot com> 2011-02-09 18:13:52 UTC ---
(In reply to comment #3)
> probe syscall.wait4.return = kernel.function("sys_wait4").return
> {
> name = "wait4"
> status_str = ($stat_addr == 0) ? "NULL"
> : _wait_status_str(user_int($stat_addr))
> retstr = return_str(1, $return)
> }
OK, I can do it this way for now.
My longer plan were more adjustments for getting closer to the output of
strace, for strace reimplementation on top of systemtap, as discussed before:
http://jankratochvil.net/priv/staptrace-0.1.tar.xz
strace prints the returned wait string already as part of the parameters.
wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP}], WNOHANG, NULL) = 8580
That may be resolved later, though.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.