public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug tapsets/11402] New: pipe2 syscall not supported
@ 2010-03-19 10:28 mjw at redhat dot com
  2010-03-19 12:23 ` [Bug tapsets/11402] " mjw at redhat dot com
  2010-03-19 15:58 ` mjw at redhat dot com
  0 siblings, 2 replies; 3+ messages in thread
From: mjw at redhat dot com @ 2010-03-19 10:28 UTC (permalink / raw)
  To: systemtap

The pipe2() was added to Linux in version 2.6.27. It is a variant of the normal
pipe syscall, but takes an extra flags argument which can be the ORed value of
O_NONBLOCK and O_CLOEXEC. The original pipe syscall is now defined as like the
pipe2 syscall, but with the flags variable set to zero.

Should we support this (in syscall2.stp) as an extra syscall, or should we
retrofit the syscall.pipe probe alias to also match sys_pipe2?

-- 
           Summary: pipe2 syscall not supported
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: tapsets
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: mjw at redhat dot com


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

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug tapsets/11402] pipe2 syscall not supported
  2010-03-19 10:28 [Bug tapsets/11402] New: pipe2 syscall not supported mjw at redhat dot com
@ 2010-03-19 12:23 ` mjw at redhat dot com
  2010-03-19 15:58 ` mjw at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: mjw at redhat dot com @ 2010-03-19 12:23 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From mjw at redhat dot com  2010-03-19 12:23 -------
I decided to add it as a new syscall.pipe2 variant since it is a real new syscall.

commit 8bd0f6dce9effdb8bde2fb2cc6ab2c68be8d32d7
Author: Mark Wielaard <mjw@redhat.com>
Date:   Fri Mar 19 13:00:50 2010 +0100

    PR11402 Support pipe2 syscall.
    
    The pipe2() was added to Linux in version 2.6.27. It is a variant of the
    normal pipe syscall, but takes an extra flags argument which can be the
    ORed value of O_NONBLOCK and O_CLOEXEC.
    
    * tapset/aux_syscalls.stp (_sys_pipe2_flag_str:string): New helper function.
    * tapset/syscalls2.stp (syscall.pipe2, syscall.pipe2.return): New probes.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug tapsets/11402] pipe2 syscall not supported
  2010-03-19 10:28 [Bug tapsets/11402] New: pipe2 syscall not supported mjw at redhat dot com
  2010-03-19 12:23 ` [Bug tapsets/11402] " mjw at redhat dot com
@ 2010-03-19 15:58 ` mjw at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: mjw at redhat dot com @ 2010-03-19 15:58 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From mjw at redhat dot com  2010-03-19 15:58 -------
And after some testing and discussions on irc I merged them into one
syscall.pipe again:

commit 7a95843846ea6a5f626dfeb63a26477e1f228dc4
Author: Mark Wielaard <mjw@redhat.com>
Date:   Fri Mar 19 16:53:19 2010 +0100

    Merge syscall.pipe and syscall.pipe2 to get around "nesting".
    
    * tapset/syscalls2.stp (syscall.pipe[2][.return]): Merge into syscall.pipe
      and syscall.pipe.return. Set name according to flags.

It is not really possible to easily get around the nesting of these syscalls. So
just pretend there is only one pipe syscall for now.

Also a new testcase for all this was added.

-- 


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

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-03-19 15:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-19 10:28 [Bug tapsets/11402] New: pipe2 syscall not supported mjw at redhat dot com
2010-03-19 12:23 ` [Bug tapsets/11402] " mjw at redhat dot com
2010-03-19 15:58 ` mjw at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).