diff options
-rw-r--r-- | meta/recipes-kernel/lttng/lttng-modules/0001-lttng-modules-fix-sigaction-build-without-CONFIG_COM.patch | 35 | ||||
-rw-r--r-- | meta/recipes-kernel/lttng/lttng-modules_2.13.18.bb | 1 |
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 @@ | |||
1 | From 0e2095bcc50e7a07d3478f8d3c0ae5ad46575594 Mon Sep 17 00:00:00 2001 | ||
2 | From: Mikko Rapeli <mikko.rapeli@linaro.org> | ||
3 | Date: Mon, 28 Apr 2025 12:07:24 +0000 | ||
4 | Subject: [PATCH] lttng-modules: fix sigaction build without | ||
5 | CONFIG_COMPAT_OLD_SIGACTION | ||
6 | |||
7 | Workaround build failure when CONFIG_COMPAT_OLD_SIGACTION is not enabled | ||
8 | in kernel config. | ||
9 | |||
10 | Upstream-Status: Submitted [https://bugs.lttng.org/issues/1426] | ||
11 | |||
12 | Signed-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 | |||
17 | diff --git a/include/instrumentation/syscalls/headers/arm-32-syscalls_pointers.h b/include/instrumentation/syscalls/headers/arm-32-syscalls_pointers.h | ||
18 | index 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 | -- | ||
34 | 2.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 | |||
10 | include lttng-platforms.inc | 10 | include lttng-platforms.inc |
11 | 11 | ||
12 | SRC_URI = "https://lttng.org/files/${BPN}/${BPN}-${PV}.tar.bz2 \ | 12 | SRC_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 |