/* Macros for defining Systemtap <sys/sdt.h> static probe points.
- Copyright (C) 2012-2014 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).
# ifndef __ASSEMBLER__
/* Evaluate all the arguments and verify that N matches their number. */
-#define LIBC_PROBE(name, n, ...) STAP_PROBE##n (__VA_ARGS__)
+# 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. */