This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tapsets/12471] Support wait4 *status printing


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]