]> sourceware.org Git - systemtap.git/commitdiff
Make 2 small syscall testsuite changes for arm.
authorDavid Smith <dsmith@redhat.com>
Thu, 10 Dec 2015 15:06:33 +0000 (09:06 -0600)
committerDavid Smith <dsmith@redhat.com>
Thu, 10 Dec 2015 15:06:33 +0000 (09:06 -0600)
* testsuite/systemtap.syscall/stat.c: Mark fstatat64 as covered.
* testsuite/systemtap.syscall/coverage.tcl: Add a few modifications for
  arm-based systems.

testsuite/systemtap.syscall/coverage.tcl
testsuite/systemtap.syscall/stat.c

index 98423ee0ac4e106308fc73f6dc0d97bfd635fdfb..45b7f156714e6b491b540d05880c82aba2c6787a 100755 (executable)
 # - rt_sigreturn: rt_sigreturn is a syscall that you don't call
 #                directly, so we can't really test it. glibc calls it
 #                in signal handlers. 
+# - sigreturn: Ditto.
 # - socketcall: common entry point for other socket syscalls
 # - tux: obsolete
 set badlist {
     bdflush dmi_field_show dmi_modalias_show copyarea fillrect
-    imageblit ni_syscall rt_sigreturn socketcall tux
+    imageblit ni_syscall rt_sigreturn sigreturn socketcall tux
 }
 
 foreach f $badlist {
@@ -31,7 +32,10 @@ if {[catch {eval exec $cmd} output]} {
 }
 foreach line [split $output "\n"] {
     if {[regexp {^kernel.function\(\"[Ss]y[Ss]_([^@\"]+)} $line match fn]} {
-       if {![info exists funcname($fn)]} {
+       # arm (and perhaps other platforms) has assembly language
+       # syscall wrappers like "sigreturn_wrapper". Notice we're
+       # ignoring these.
+       if {![info exists funcname($fn)] && ![regexp {_wrapper$} $fn]} {
            set funcname($fn) 0
        }
     }
index e5fd6dab94b96495ce323f77538002a8307dfc16..57b15d258a17b4c533469bf21e7941c031ec4ff1 100644 (file)
@@ -1,4 +1,4 @@
-/* COVERAGE: getcwd fstat stat lstat fstatat utime */
+/* COVERAGE: getcwd fstat stat lstat fstatat fstatat64 utime */
 /* COVERAGE: fstat64 stat64 lstat64 */
 /* COVERAGE: newfstat newfstatat newlstat newstat */
 #define _GNU_SOURCE
This page took 0.028426 seconds and 5 git commands to generate.