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: Tue, 15 Feb 2011 19:35:26 +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
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.