diff options
author | Marek Vasut <marex@denx.de> | 2022-06-26 00:39:36 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-07-08 08:27:20 +0100 |
commit | d2f8a57a30066815aba9cd4ebef7bf9edf21bcaa (patch) | |
tree | 640503e01e3cf6fdb32f6e82060ff87c3bf3ae35 /meta/recipes-kernel/lttng/lttng-modules/0019-fix-random-tracepoints-removed-in-stable-kernels.patch | |
parent | 0a0e0663abade00568ecf24350474f5b8940e7a8 (diff) | |
download | poky-d2f8a57a30066815aba9cd4ebef7bf9edf21bcaa.tar.gz |
lttng-modules: Backport Linux 5.18+, 5.15.44+, 5.10.119+ fixes
The Linux kernel commit 14c174633f349 ("random: remove unused tracepoints")
removed unused tracepoints and has been backported to stable Linux kernel
releases. This causes build failure of lttng-modules:
"
lttng-modules-2.11.6/probes/lttng-probe-random.c:18:10: fatal error: trace/events/random.h: No such file or directory
| 18 | #include <trace/events/random.h>
| | ^~~~~~~~~~~~~~~~~~~~~~~
| compilation terminated.
"
Backport patches from lttng-modules master branch to address the build
failure on all of Linux 5.18.y, 5.15.y 5.10.y, 5.4, 4.19, 4.14, and 4.9 kernel versions.
(From OE-Core rev: 9f301f5563df868626d624c2d0781dae1b81a4c0)
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Bruce Ashfield <bruce.ashfield@gmail.com>
Cc: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel/lttng/lttng-modules/0019-fix-random-tracepoints-removed-in-stable-kernels.patch')
-rw-r--r-- | meta/recipes-kernel/lttng/lttng-modules/0019-fix-random-tracepoints-removed-in-stable-kernels.patch | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/meta/recipes-kernel/lttng/lttng-modules/0019-fix-random-tracepoints-removed-in-stable-kernels.patch b/meta/recipes-kernel/lttng/lttng-modules/0019-fix-random-tracepoints-removed-in-stable-kernels.patch new file mode 100644 index 0000000000..73ba4d06bc --- /dev/null +++ b/meta/recipes-kernel/lttng/lttng-modules/0019-fix-random-tracepoints-removed-in-stable-kernels.patch | |||
@@ -0,0 +1,51 @@ | |||
1 | From 2c98e0cd03eba0aa935796bc7413c51b5e4b055c Mon Sep 17 00:00:00 2001 | ||
2 | From: Michael Jeanson <mjeanson@efficios.com> | ||
3 | Date: Tue, 31 May 2022 15:24:48 -0400 | ||
4 | Subject: [PATCH 19/19] fix: 'random' tracepoints removed in stable kernels | ||
5 | |||
6 | The upstream commit 14c174633f349cb41ea90c2c0aaddac157012f74 removing | ||
7 | the 'random' tracepoints is being backported to multiple stable kernel | ||
8 | branches, I don't see how that qualifies as a fix but here we are. | ||
9 | |||
10 | Use the presence of 'include/trace/events/random.h' in the kernel source | ||
11 | tree instead of the rather tortuous version check to determine if we | ||
12 | need to build 'lttng-probe-random.ko'. | ||
13 | |||
14 | Upstream-Status: Backport [ed1149ef88fb62c365ac66cf62c58ac6abd8d7e8] | ||
15 | Change-Id: I8f5f2f4c9e09c61127c49c7949b22dd3fab0460d | ||
16 | Signed-off-by: Michael Jeanson <mjeanson@efficios.com> | ||
17 | Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> | ||
18 | --- | ||
19 | probes/Kbuild | 16 ++++------------ | ||
20 | 1 file changed, 4 insertions(+), 12 deletions(-) | ||
21 | |||
22 | diff --git a/probes/Kbuild b/probes/Kbuild | ||
23 | index 87f2d681..f09d6b65 100644 | ||
24 | --- a/probes/Kbuild | ||
25 | +++ b/probes/Kbuild | ||
26 | @@ -216,18 +216,10 @@ ifneq ($(CONFIG_FRAME_WARN),0) | ||
27 | endif | ||
28 | |||
29 | # Introduced in v3.6, remove in v5.18 | ||
30 | -obj-$(CONFIG_LTTNG) += $(shell \ | ||
31 | - if [ \( ! \( $(VERSION) -ge 6 \ | ||
32 | - -o \( $(VERSION) -eq 5 -a $(PATCHLEVEL) -ge 18 \) \ | ||
33 | - -o \( $(VERSION) -eq 5 -a $(PATCHLEVEL) -eq 15 -a $(SUBLEVEL) -ge 44 \) \ | ||
34 | - -o \( $(VERSION) -eq 5 -a $(PATCHLEVEL) -eq 10 -a $(SUBLEVEL) -ge 119\) \) \) \ | ||
35 | - -a \ | ||
36 | - $(VERSION) -ge 4 \ | ||
37 | - -o \( $(VERSION) -eq 3 -a $(PATCHLEVEL) -ge 6 \) \ | ||
38 | - -o \( $(VERSION) -eq 3 -a $(PATCHLEVEL) -eq 5 -a $(SUBLEVEL) -ge 2 \) \ | ||
39 | - -o \( $(VERSION) -eq 3 -a $(PATCHLEVEL) -eq 4 -a $(SUBLEVEL) -ge 9 \) \ | ||
40 | - -o \( $(VERSION) -eq 3 -a $(PATCHLEVEL) -eq 0 -a $(SUBLEVEL) -ge 41 \) ] ; then \ | ||
41 | - echo "lttng-probe-random.o" ; fi;) | ||
42 | +random_dep = $(srctree)/include/trace/events/random.h | ||
43 | +ifneq ($(wildcard $(random_dep)),) | ||
44 | + obj-$(CONFIG_LTTNG) += lttng-probe-random.o | ||
45 | +endif | ||
46 | |||
47 | obj-$(CONFIG_LTTNG) += $(shell \ | ||
48 | if [ $(VERSION) -ge 4 \ | ||
49 | -- | ||
50 | 2.35.1 | ||
51 | |||