summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-kernel/lttng/lttng-modules/0001-lttng-modules-fix-sigaction-build-without-CONFIG_COM.patch35
-rw-r--r--meta/recipes-kernel/lttng/lttng-modules_2.13.18.bb1
2 files changed, 36 insertions, 0 deletions
diff --git a/meta/recipes-kernel/lttng/lttng-modules/0001-lttng-modules-fix-sigaction-build-without-CONFIG_COM.patch b/meta/recipes-kernel/lttng/lttng-modules/0001-lttng-modules-fix-sigaction-build-without-CONFIG_COM.patch
new file mode 100644
index 0000000000..eb43abbae2
--- /dev/null
+++ b/meta/recipes-kernel/lttng/lttng-modules/0001-lttng-modules-fix-sigaction-build-without-CONFIG_COM.patch
@@ -0,0 +1,35 @@
1From 0e2095bcc50e7a07d3478f8d3c0ae5ad46575594 Mon Sep 17 00:00:00 2001
2From: Mikko Rapeli <mikko.rapeli@linaro.org>
3Date: Mon, 28 Apr 2025 12:07:24 +0000
4Subject: [PATCH] lttng-modules: fix sigaction build without
5 CONFIG_COMPAT_OLD_SIGACTION
6
7Workaround build failure when CONFIG_COMPAT_OLD_SIGACTION is not enabled
8in kernel config.
9
10Upstream-Status: Submitted [https://bugs.lttng.org/issues/1426]
11
12Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org>
13---
14 .../instrumentation/syscalls/headers/arm-32-syscalls_pointers.h | 2 ++
15 1 file changed, 2 insertions(+)
16
17diff --git a/include/instrumentation/syscalls/headers/arm-32-syscalls_pointers.h b/include/instrumentation/syscalls/headers/arm-32-syscalls_pointers.h
18index 5f4ca5b..1514cae 100644
19--- a/include/instrumentation/syscalls/headers/arm-32-syscalls_pointers.h
20+++ b/include/instrumentation/syscalls/headers/arm-32-syscalls_pointers.h
21@@ -1890,9 +1890,11 @@ TRACE_SYSCALL_TABLE(chroot, chroot, 61, 1)
22 #ifndef OVERRIDE_TABLE_32_ustat
23 TRACE_SYSCALL_TABLE(ustat, ustat, 62, 2)
24 #endif
25+#ifdef CONFIG_COMPAT_OLD_SIGACTION
26 #ifndef OVERRIDE_TABLE_32_sigaction
27 TRACE_SYSCALL_TABLE(sigaction, sigaction, 67, 3)
28 #endif
29+#endif /* CONFIG_COMPAT_OLD_SIGACTION */
30 #ifndef OVERRIDE_TABLE_32_sigpending
31 TRACE_SYSCALL_TABLE(sigpending, sigpending, 73, 1)
32 #endif
33--
342.49.0
35
diff --git a/meta/recipes-kernel/lttng/lttng-modules_2.13.18.bb b/meta/recipes-kernel/lttng/lttng-modules_2.13.18.bb
index 553dae9f4d..1b2327f609 100644
--- a/meta/recipes-kernel/lttng/lttng-modules_2.13.18.bb
+++ b/meta/recipes-kernel/lttng/lttng-modules_2.13.18.bb
@@ -10,6 +10,7 @@ inherit module
10include lttng-platforms.inc 10include lttng-platforms.inc
11 11
12SRC_URI = "https://lttng.org/files/${BPN}/${BPN}-${PV}.tar.bz2 \ 12SRC_URI = "https://lttng.org/files/${BPN}/${BPN}-${PV}.tar.bz2 \
13 file://0001-lttng-modules-fix-sigaction-build-without-CONFIG_COM.patch \
13 " 14 "
14 15
15# Use :append here so that the patch is applied also when using devupstream 16# Use :append here so that the patch is applied also when using devupstream