From df10a7ec9b537afae26da141810205c742e0d5b4 Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Thu, 27 Jul 2023 14:35:18 +0930 Subject: [PATCH] config: Detect presence of USDT header in configure --- configure | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/configure b/configure index 8a5b00c1f..807d4ab46 100755 --- a/configure +++ b/configure @@ -413,6 +413,18 @@ int main(void) return 0; } /*END*/ +var=HAVE_USDT +desc=User Statically-Defined Tracing (USDT) +style=DEFINES_EVERYTHING|EXECUTE|MAY_NOT_COMPILE +code= +#include + +int main(void) +{ + DTRACE_PROBE(lightningd, test_sdt); + return 0; +} +/*END*/ var=HAVE_GCC desc=compiler is GCC style=OUTSIDE_MAIN