diff options
author | David Smith <dsmith@redhat.com> | 2009-11-02 12:51:12 -0600 |
---|---|---|
committer | David Smith <dsmith@redhat.com> | 2009-11-02 12:51:12 -0600 |
commit | 9f61c5d4c3487aa8225d5271c798f5ebaafc398a (patch) | |
tree | 0fee1e783759cd2bddc828a715de5ea4e3416136 /testsuite/systemtap.syscall | |
parent | f65166cc4689cff00717bc494d310c8317379d62 (diff) | |
download | systemtap-steved-9f61c5d4c3487aa8225d5271c798f5ebaafc398a.tar.gz systemtap-steved-9f61c5d4c3487aa8225d5271c798f5ebaafc398a.tar.xz systemtap-steved-9f61c5d4c3487aa8225d5271c798f5ebaafc398a.zip |
PR 6691 fixed by adding support for sys_accept4.
* tapset/aux_syscalls.stp(_sock_type_str): Rewrote in embedded-C and added
socket flags support.
(_sock_flags_str): New function.
* tapset/syscalls.stp: syscall.accept prefers to use sys_accept4 when it
exists. Added support for sys_accept4's 'flag' parameter.
* testsuite/systemtap.syscall/net1.c (main): Updated regular expression to
handle the new 'flags' argument.
Diffstat (limited to 'testsuite/systemtap.syscall')
-rw-r--r-- | testsuite/systemtap.syscall/net1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuite/systemtap.syscall/net1.c b/testsuite/systemtap.syscall/net1.c index f8079ffd..b7f1d6cb 100644 --- a/testsuite/systemtap.syscall/net1.c +++ b/testsuite/systemtap.syscall/net1.c @@ -32,7 +32,7 @@ int main() //staptest// listen (NNNN, 7) = 0 cfd = accept(listenfd, (struct sockaddr *)NULL, NULL); - //staptest// accept (NNNN, 0x[0]+, 0x[0]+) = -NNNN (EAGAIN) + //staptest// accept (NNNN, 0x[0]+, 0x[0]+, 0) = -NNNN (EAGAIN) close(cfd); close(listenfd); |