public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug tapsets/21353] New: syscall nesting in fcntl
@ 2017-04-04 17:26 dsmith at redhat dot com
  2017-04-05 12:37 ` [Bug tapsets/21353] " mcermak at redhat dot com
  0 siblings, 1 reply; 2+ messages in thread
From: dsmith at redhat dot com @ 2017-04-04 17:26 UTC (permalink / raw)
  To: systemtap

https://sourceware.org/bugzilla/show_bug.cgi?id=21353

            Bug ID: 21353
           Summary: syscall nesting in fcntl
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: tapsets
          Assignee: systemtap at sourceware dot org
          Reporter: dsmith at redhat dot com
  Target Milestone: ---

In [nd_]syscall.fcntl, there is some syscall nesting going on. The example
program from the syscall testsuite demonstrates the problem:

====
# gcc -m32 -o net1 net1.c
stap -e 'probe syscall.fcntl { printf("%s\n", ppfunc()) } probe
syscall.fcntl.return { printf("return\n") }' -c ./net1
SyS_fcntl
return
SyS_fcntl
return
SyS_fcntl
return
SyS_fcntl
return
compat_SyS_fcntl64
SyS_fcntl
return
return
compat_SyS_fcntl64
SyS_fcntl
return
return
compat_SyS_fcntl64
SyS_fcntl
return
return
compat_SyS_fcntl64
SyS_fcntl
return
return
compat_SyS_fcntl64
SyS_fcntl
return
return
====

So, both the compat call and the "real" call are getting hits. So, we're
getting 2 sets of probe hits for 1 fcntl() call.

I saw this with kernel-4.11.0-0.rc4.git2.1.fc27.x86_64 and HEAD systemtap.

This was originally reported by 'georgj' on #systemtap

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

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

* [Bug tapsets/21353] syscall nesting in fcntl
  2017-04-04 17:26 [Bug tapsets/21353] New: syscall nesting in fcntl dsmith at redhat dot com
@ 2017-04-05 12:37 ` mcermak at redhat dot com
  0 siblings, 0 replies; 2+ messages in thread
From: mcermak at redhat dot com @ 2017-04-05 12:37 UTC (permalink / raw)
  To: systemtap

https://sourceware.org/bugzilla/show_bug.cgi?id=21353

Martin Cermak <mcermak at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mcermak at redhat dot com
           Assignee|systemtap at sourceware dot org    |mcermak at redhat dot com

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

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

end of thread, other threads:[~2017-04-05 12:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-04 17:26 [Bug tapsets/21353] New: syscall nesting in fcntl dsmith at redhat dot com
2017-04-05 12:37 ` [Bug tapsets/21353] " mcermak 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).