]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - include/stap-probe.h
test-container: Fix "unused code" warnings on HURD
[thirdparty/glibc.git] / include / stap-probe.h
index 95c93fdbbfda5ca8c5ef98a42bcc6ea38a32fea2..af5ee4b58d2a7e4ba53467fc961d36af7741de59 100644 (file)
@@ -1,5 +1,5 @@
 /* Macros for defining Systemtap <sys/sdt.h> static probe points.
-   Copyright (C) 2012-2018 Free Software Foundation, Inc.
+   Copyright (C) 2012-2022 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
 
    You should have received a copy of the GNU Lesser General Public
    License along with the GNU C Library; if not, see
-   <http://www.gnu.org/licenses/>.  */
+   <https://www.gnu.org/licenses/>.  */
 
 #ifndef _STAP_PROBE_H
 #define _STAP_PROBE_H 1
 
 #ifdef USE_STAP_PROBE
 
+# include <stap-probe-machine.h>
 # include <sys/sdt.h>
 
 /* Our code uses one macro LIBC_PROBE (name, n, arg1, ..., argn).
 /* Evaluate all the arguments and verify that N matches their number.  */
 #  define LIBC_PROBE(name, n, ...) STAP_PROBE##n (__VA_ARGS__)
 
-#  define STAP_PROBE0()
-#  define STAP_PROBE1(a1)
-#  define STAP_PROBE2(a1, a2)
-#  define STAP_PROBE3(a1, a2, a3)
-#  define STAP_PROBE4(a1, a2, a3, a4)
+#  define STAP_PROBE0()                                do {} while (0)
+#  define STAP_PROBE1(a1)                      do {} while (0)
+#  define STAP_PROBE2(a1, a2)                  do {} while (0)
+#  define STAP_PROBE3(a1, a2, a3)              do {} while (0)
+#  define STAP_PROBE4(a1, a2, a3, a4)          do {} while (0)
 
 # else
 #  define LIBC_PROBE(name, n, ...)             /* Nothing.  */