[Bug tapsets/12471] Support wait4 *status printing
jan.kratochvil at redhat dot com
sourceware-bugzilla@sourceware.org
Wed Feb 9 18:14:00 GMT 2011
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.
More information about the Systemtap
mailing list