[Bug tapsets/12471] Support wait4 *status printing
jan.kratochvil at redhat dot com
sourceware-bugzilla@sourceware.org
Tue Feb 15 19:35:00 GMT 2011
http://sourceware.org/bugzilla/show_bug.cgi?id=12471
Jan Kratochvil <jan.kratochvil at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #5232|0 |1
is obsolete| |
--- Comment #5 from Jan Kratochvil <jan.kratochvil at redhat dot com> 2011-02-15 19:35:21 UTC ---
Created attachment 5244
--> http://sourceware.org/bugzilla/attachment.cgi?id=5244
Fix.
(In reply to comment #3)
> Here's what I was suggesting:
> 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, done this way.
> This patch provides the WIFEXITED/WEXITSTATUS data as a string. My thought
> above was that we could provide functions like this:
>
> function WTERMSIG:long(status:long) {
> return (status & 0x7f)
> }
Done this way, the code looks much better now.
--
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