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] New: Support wait4 *status printing


http://sourceware.org/bugzilla/show_bug.cgi?id=12471

           Summary: Support wait4 *status printing
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: tapsets
        AssignedTo: systemtap@sources.redhat.com
        ReportedBy: jan.kratochvil@redhat.com


Created attachment 5232
  --> http://sourceware.org/bugzilla/attachment.cgi?id=5232
wait4 *status printing

probe syscall.wait4.return { printf ("%s(%s)=%s\n", name, argstr, retstr) }

then prints nice:
wait4(-1, N/A, WNOHANG|__WCLONE, 0x0)=-10 (ECHILD)
wait4(-1, WSTOPSIG=SIGTRAP, WNOHANG, 0x0)=9319

The problem is we need argstr from the .return function.
Could we start providing argstr in all the syscall.return tapset hook?

This patch is on top of Bug 12470.

I do not understand where everywhere the code should be, it works here but
there is a massive duplication of all the wait* syscall hooks.

-- 
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]