build: fix a s390 test
Resolves: RHEL-65743
This commit is contained in:
parent
f3ac1f58a2
commit
c2bd8f934d
29
0033-tests-fix-test-on-s390.patch
Normal file
29
0033-tests-fix-test-on-s390.patch
Normal file
@ -0,0 +1,29 @@
|
||||
From 08d94d9b982e5d4a6e7a67b45ae71bd51ca3fe0d Mon Sep 17 00:00:00 2001
|
||||
From: Christian Hergert <chergert@redhat.com>
|
||||
Date: Wed, 13 Nov 2024 17:16:44 -0800
|
||||
Subject: [PATCH] tests: fix test on s390
|
||||
|
||||
---
|
||||
src/sysprof-live-unwinder/tests/test-live-unwinder.c | 6 +++++-
|
||||
1 file changed, 5 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/sysprof-live-unwinder/tests/test-live-unwinder.c b/src/sysprof-live-unwinder/tests/test-live-unwinder.c
|
||||
index c3eda85a..a0dabeb3 100644
|
||||
--- a/src/sysprof-live-unwinder/tests/test-live-unwinder.c
|
||||
+++ b/src/sysprof-live-unwinder/tests/test-live-unwinder.c
|
||||
@@ -59,7 +59,11 @@
|
||||
#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 */
|
||||
|
||||
static gboolean sample_stack;
|
||||
--
|
||||
2.45.2
|
||||
|
@ -52,6 +52,7 @@ Patch: 0029-sysprofd-remove-unused-code.patch
|
||||
Patch: 0030-build-lower-libpanel-requirement-to-ease-some-build-.patch
|
||||
Patch: 0031-build-allow-await-for-FD-with-older-libdex.patch
|
||||
Patch: 0032-sysprof-default-stack-capturing-as-enabled.patch
|
||||
Patch: 0033-tests-fix-test-on-s390.patch
|
||||
|
||||
BuildRequires: gcc
|
||||
BuildRequires: gcc-c++
|
||||
|
Loading…
Reference in New Issue
Block a user