summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/lttng/lttng-modules/0007-Fix-vmalloc-wrapper-on-kernel-4.12.patch
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2017-09-26 17:43:55 -0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-10-07 23:20:40 +0100
commit18edfb2af6e7040e0453c84796416be2b8f45454 (patch)
tree2a2554a4b659fefc1213c79563b14a124927b11b /meta/recipes-kernel/lttng/lttng-modules/0007-Fix-vmalloc-wrapper-on-kernel-4.12.patch
parentd4adc029891aeda4b9f132e1d674afc25a0ee4b0 (diff)
downloadpoky-18edfb2af6e7040e0453c84796416be2b8f45454.tar.gz
lttng-modules: Backport fixes for kernel instrumentation
This backport fixes from upcoming 2.9.4 release. Those are: - Fix: vmalloc wrapper on kernel < 2.6.38 - Fix: vmalloc wrapper on kernel >= 4.12 - Add kmalloc failover to vmalloc - Fix: mmap: caches aliased on virtual addresses - Fix: update ext4 instrumentation for kernel 4.13 - Fix: Sleeping function called from invalid context - Fix: sched for v4.11.5-rt1 - Fix: handle missing ftrace header on v4.12 This fix failures in some BSP layers which are using Linux 4.13 already. (From OE-Core rev: 45ab93e74252f40dbe777000e1b33f4b3783536e) Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel/lttng/lttng-modules/0007-Fix-vmalloc-wrapper-on-kernel-4.12.patch')
-rw-r--r--meta/recipes-kernel/lttng/lttng-modules/0007-Fix-vmalloc-wrapper-on-kernel-4.12.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/meta/recipes-kernel/lttng/lttng-modules/0007-Fix-vmalloc-wrapper-on-kernel-4.12.patch b/meta/recipes-kernel/lttng/lttng-modules/0007-Fix-vmalloc-wrapper-on-kernel-4.12.patch
new file mode 100644
index 0000000000..1412db35d6
--- /dev/null
+++ b/meta/recipes-kernel/lttng/lttng-modules/0007-Fix-vmalloc-wrapper-on-kernel-4.12.patch
@@ -0,0 +1,37 @@
1From ecda9325cd5ad6b69600fd4d88c46095d22f95e1 Mon Sep 17 00:00:00 2001
2From: Michael Jeanson <mjeanson@efficios.com>
3Date: Tue, 26 Sep 2017 13:46:30 -0400
4Subject: [PATCH 7/8] Fix: vmalloc wrapper on kernel >= 4.12
5Organization: O.S. Systems Software LTDA.
6
7Upstream-Status: Backport [2.9.4]
8
9Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
10Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11---
12 wrapper/vmalloc.h | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15diff --git a/wrapper/vmalloc.h b/wrapper/vmalloc.h
16index 2dd06cb..e117584 100644
17--- a/wrapper/vmalloc.h
18+++ b/wrapper/vmalloc.h
19@@ -27,6 +27,7 @@
20
21 #include <linux/version.h>
22 #include <linux/vmalloc.h>
23+#include <linux/mm.h>
24
25 #ifdef CONFIG_KALLSYMS
26
27@@ -105,7 +106,6 @@ void lttng_kvfree(const void *addr)
28 #else
29
30 #include <linux/slab.h>
31-#include <linux/mm.h>
32
33 /*
34 * kallsyms wrapper of __vmalloc_node with a fallback to kmalloc_node.
35--
362.14.1
37