public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug runtime/18213] New: on arm, the runtime doesn't return correct syscall numbers
@ 2015-04-08 17:00 dsmith at redhat dot com
  2015-04-08 17:03 ` [Bug runtime/18213] " dsmith at redhat dot com
  0 siblings, 1 reply; 2+ messages in thread
From: dsmith at redhat dot com @ 2015-04-08 17:00 UTC (permalink / raw)
  To: systemtap

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

            Bug ID: 18213
           Summary: on arm, the runtime doesn't return correct syscall
                    numbers
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: runtime
          Assignee: systemtap at sourceware dot org
          Reporter: dsmith at redhat dot com
              Host: arm

On arm (3.19.3-200.fc21.armv7hl), we're getting a large number of failures in
the syscall/nd_syscall tapset testsuite:

====
# of expected passes            66
# of unexpected failures        200
====

Lots of these are related to dwarfless-probe argument problems, but even in the
dwarf probe case the numbers are much worse than they should be.

After some debugging, I found out that the _stp_syscall_nr() tapset function
always returns 0, which breaks all use of the syscall gate macros (that prevent
syscall nesting). It appears that the kernel version of syscall_get_nr() always
returns 0 on arm.

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

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

* [Bug runtime/18213] on arm, the runtime doesn't return correct syscall numbers
  2015-04-08 17:00 [Bug runtime/18213] New: on arm, the runtime doesn't return correct syscall numbers dsmith at redhat dot com
@ 2015-04-08 17:03 ` dsmith at redhat dot com
  0 siblings, 0 replies; 2+ messages in thread
From: dsmith at redhat dot com @ 2015-04-08 17:03 UTC (permalink / raw)
  To: systemtap

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

David Smith <dsmith at redhat dot com> changed:

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

--- Comment #1 from David Smith <dsmith at redhat dot com> ---
Fixed in commit 07cecda.

It appears that the arm kernel's syscall_get_nr() function is designed to only
be used with ftrace syscall tracing. So, on arm, we'll use our own function.

With this patch, the number of syscall/nd_syscall passes almost doubles:

====
# of expected passes            129
# of unexpected failures        137
====

-- 
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:[~2015-04-08 17:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-08 17:00 [Bug runtime/18213] New: on arm, the runtime doesn't return correct syscall numbers dsmith at redhat dot com
2015-04-08 17:03 ` [Bug runtime/18213] " dsmith 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).