[PATCH v2 1/3] perf test x86: Fix missing __msan_unpoison
From: Ian Rogers
Date: Thu Sep 10 2026 - 14:09:09 EST
__msan_unpoison may need the sanitizer header including for its
definition.
Signed-off-by: Ian Rogers <irogers@xxxxxxxxxx>
---
tools/perf/arch/x86/tests/dwarf-unwind.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/tools/perf/arch/x86/tests/dwarf-unwind.c b/tools/perf/arch/x86/tests/dwarf-unwind.c
index 99d2b7ed016f..3c66dadcab75 100644
--- a/tools/perf/arch/x86/tests/dwarf-unwind.c
+++ b/tools/perf/arch/x86/tests/dwarf-unwind.c
@@ -8,6 +8,10 @@
#include "debug.h"
#include "tests/tests.h"
+#if defined(MEMORY_SANITIZER) && !defined(__msan_unpoison)
+# include <sanitizer/msan_interface.h>
+#endif
+
#define STACK_SIZE 8192
static int sample_ustack(struct perf_sample *sample,
--
2.55.0.1007.g17ff1f9808-goog