2024-11-08 23:07:30 +00:00
|
|
|
From be843d84b49f7cd7ce15352ab187e4197cdd887e Mon Sep 17 00:00:00 2001
|
2024-11-08 19:44:29 +00:00
|
|
|
From: Christian Hergert <chergert@redhat.com>
|
|
|
|
Date: Fri, 8 Nov 2024 11:42:04 -0800
|
2024-11-08 23:07:30 +00:00
|
|
|
Subject: [PATCH 22/31] libsysprof: check for PERF_REG_EXTENDED_MASK
|
|
|
|
availability
|
2024-11-08 19:44:29 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
src/libsysprof/sysprof-user-sampler.c | 6 +++++-
|
|
|
|
1 file changed, 5 insertions(+), 1 deletion(-)
|
|
|
|
|
|
|
|
diff --git a/src/libsysprof/sysprof-user-sampler.c b/src/libsysprof/sysprof-user-sampler.c
|
2024-11-08 23:07:30 +00:00
|
|
|
index 0e3afeae..a1418596 100644
|
2024-11-08 19:44:29 +00:00
|
|
|
--- a/src/libsysprof/sysprof-user-sampler.c
|
|
|
|
+++ b/src/libsysprof/sysprof-user-sampler.c
|
2024-11-08 23:07:30 +00:00
|
|
|
@@ -48,7 +48,11 @@
|
2024-11-08 19:44:29 +00:00
|
|
|
#define SYSPROF_ARCH_PREFERRED_REGS DWARF_NEEDED_REGS
|
|
|
|
/* TODO: add other architectures, imitating the linux tools/perf tree */
|
|
|
|
#else
|
|
|
|
-# define SYSPROF_ARCH_PREFERRED_REGS PERF_REG_EXTENDED_MASK
|
|
|
|
+# ifdef PERF_REG_EXTENDED_MASK
|
|
|
|
+# define SYSPROF_ARCH_PREFERRED_REGS PERF_REG_EXTENDED_MASK
|
|
|
|
+# else
|
|
|
|
+# define SYSPROF_ARCH_PREFERRED_REGS 0
|
|
|
|
+# endif
|
|
|
|
#endif /* _ASM_{arch}_PERF_REGS_H */
|
|
|
|
|
|
|
|
#define N_WAKEUP_EVENTS 149
|
|
|
|
--
|
2024-11-08 23:07:30 +00:00
|
|
|
2.45.2
|
2024-11-08 19:44:29 +00:00
|
|
|
|