Libunwind (#21163)
Z. Liu committed
Oct 17, 2025 at 20:55 UTC
f1f76b244b53da4f1ee5fccf890bc68937262f93
1 file changed
+3
-2
src/libnetdata/stacktrace/stacktrace-libunwind.c
+3
-2
@@ -7,8 +7,9 @@
7
#define UNW_LOCAL_ONLY
8
#endif
9
#include <libunwind.h>
10
+#include <dlfcn.h>
11
11
-const char *stacktrace_capture_backend(void) {
12
+const char *stacktrace_backend(void) {
13
return "libunwind";
14
}
15
@@ -33,7 +34,7 @@ bool stacktrace_available(void) {
34
}
35
36
NEVER_INLINE
36
-void stack_trace_capture(BUFFER *wb) {
37
+void stacktrace_capture(BUFFER *wb) {
38
// this function is async-signal-safe, if the buffer has enough space to hold the stack trace
39
40
root_cause_function[0] = '\0';