trace: Workaround GCC bug compiling with old systemtap

Github-Pull: #33310
Rebased-From: 93a29ff283
This commit is contained in:
Luke Dashjr
2025-09-04 19:25:33 +00:00
committed by fanquake
parent f7eded1dca
commit 35038b03c9
2 changed files with 11 additions and 0 deletions

View File

@@ -36,6 +36,10 @@ if(USDT_INCLUDE_DIR)
include(CheckCXXSourceCompiles)
set(CMAKE_REQUIRED_INCLUDES ${USDT_INCLUDE_DIR})
check_cxx_source_compiles("
#if defined(__arm__)
# define STAP_SDT_ARG_CONSTRAINT g
#endif
// Setting SDT_USE_VARIADIC lets systemtap (sys/sdt.h) know that we want to use
// the optional variadic macros to define tracepoints.
#define SDT_USE_VARIADIC 1