diff options
author | Bruce Ashfield <bruce.ashfield@gmail.com> | 2022-04-12 17:46:02 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-04-14 16:46:35 +0100 |
commit | b3ea0a07d46ebff0ae3fb02c7521ab971b3410db (patch) | |
tree | 756da88ee734e6ce3a1793aced818998f0fab0c0 /meta/recipes-kernel/lttng/lttng-modules/0001-Fix-compaction-migratepages-event-name.patch | |
parent | 09fdbbcd193fdbb87af6dad57541e389a0a3a59f (diff) | |
download | poky-b3ea0a07d46ebff0ae3fb02c7521ab971b3410db.tar.gz |
lttng-modules: support kernel 5.18+
Backporting changes from lttng master to support building against
the 5.18+ kernel. No changes required to the patches. Once a new
-stable 2.13.x is released, we can drop these patches. To enable
newer kernel development against the LTS, it is worth pulling these
in while we wait for an upstream release.
(From OE-Core rev: 8a7237a47488442513741930ea55d69dd6bd7be4)
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel/lttng/lttng-modules/0001-Fix-compaction-migratepages-event-name.patch')
-rw-r--r-- | meta/recipes-kernel/lttng/lttng-modules/0001-Fix-compaction-migratepages-event-name.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/meta/recipes-kernel/lttng/lttng-modules/0001-Fix-compaction-migratepages-event-name.patch b/meta/recipes-kernel/lttng/lttng-modules/0001-Fix-compaction-migratepages-event-name.patch new file mode 100644 index 0000000000..e988f7a3d5 --- /dev/null +++ b/meta/recipes-kernel/lttng/lttng-modules/0001-Fix-compaction-migratepages-event-name.patch | |||
@@ -0,0 +1,37 @@ | |||
1 | From c312bda00d2dc10ce5f6c1189acbefee5c6c8c6c Mon Sep 17 00:00:00 2001 | ||
2 | From: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> | ||
3 | Date: Tue, 29 Mar 2022 16:34:07 -0400 | ||
4 | Subject: [PATCH 01/10] Fix: compaction migratepages event name | ||
5 | |||
6 | The commit "fix: mm: compaction: fix the migration stats in trace_mm_compaction_migratepages() (v5.17)" | ||
7 | |||
8 | Triggers this warning: | ||
9 | |||
10 | LTTng: event provider mismatch: The event name needs to start with provider name + _ + one or more letter, provider: compaction, event name: mm_compaction_migratepages | ||
11 | |||
12 | Upstream-Status: Backport | ||
13 | |||
14 | Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> | ||
15 | Change-Id: I01c7485af765084dafb33bf33ae392e60bfbf1e7 | ||
16 | --- | ||
17 | include/instrumentation/events/compaction.h | 4 +++- | ||
18 | 1 file changed, 3 insertions(+), 1 deletion(-) | ||
19 | |||
20 | diff --git a/include/instrumentation/events/compaction.h b/include/instrumentation/events/compaction.h | ||
21 | index 340e41f5..15964537 100644 | ||
22 | --- a/include/instrumentation/events/compaction.h | ||
23 | +++ b/include/instrumentation/events/compaction.h | ||
24 | @@ -98,7 +98,9 @@ LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(compaction_isolate_template, | ||
25 | #endif /* #else #if LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,0,0) */ | ||
26 | |||
27 | #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,17,0)) | ||
28 | -LTTNG_TRACEPOINT_EVENT(mm_compaction_migratepages, | ||
29 | +LTTNG_TRACEPOINT_EVENT_MAP(mm_compaction_migratepages, | ||
30 | + | ||
31 | + compaction_migratepages, | ||
32 | |||
33 | TP_PROTO(unsigned long nr_all, | ||
34 | unsigned int nr_succeeded), | ||
35 | -- | ||
36 | 2.19.1 | ||
37 | |||