aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel
diff options
context:
space:
mode:
authorArsalan H. Awan <Arsalan_Awan@mentor.com>2019-08-28 16:26:28 +0500
committerArsalan H. Awan <Arsalan_Awan@mentor.com>2019-08-28 16:26:28 +0500
commit115015ec4f7c3fb0141d4d9797e98c435f79bcc5 (patch)
treeef539932fcd99bc87569dd5293914c0cf7c82e40 /meta-amd-bsp/recipes-kernel
parent7539e232666050fdd18e08d3e73f46e0d3351c8b (diff)
downloadmeta-amd-115015ec4f7c3fb0141d4d9797e98c435f79bcc5.tar.gz
meta-amd-115015ec4f7c3fb0141d4d9797e98c435f79bcc5.tar.bz2
meta-amd-115015ec4f7c3fb0141d4d9797e98c435f79bcc5.zip
meta-amd-bsp: move lttng-modules here from meta-e3000/recipes-kernel
Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
Diffstat (limited to 'meta-amd-bsp/recipes-kernel')
-rw-r--r--meta-amd-bsp/recipes-kernel/lttng/lttng-modules/0001-kvm.h-workaround-kernel-version-issues.patch32
-rw-r--r--meta-amd-bsp/recipes-kernel/lttng/lttng-modules_%.bbappend3
2 files changed, 35 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/lttng/lttng-modules/0001-kvm.h-workaround-kernel-version-issues.patch b/meta-amd-bsp/recipes-kernel/lttng/lttng-modules/0001-kvm.h-workaround-kernel-version-issues.patch
new file mode 100644
index 00000000..02ec5fef
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/lttng/lttng-modules/0001-kvm.h-workaround-kernel-version-issues.patch
@@ -0,0 +1,32 @@
+From 1c7b9836a00a9b71728dc59bacc71129d8a0d41b Mon Sep 17 00:00:00 2001
+From: Awais Belal <awais_belal@mentor.com>
+Date: Wed, 18 Jul 2018 14:26:27 +0500
+Subject: [PATCH] kvm.h: workaround kernel version issues
+
+The kernel version for this change is different than
+what we currently have for the AMD BSPs as there are
+various patches backported for the kernel that make
+this change otherwise irrelevant. Fix this by forcing
+a known version that works.
+
+Signed-off-by: Awais Belal <awais_belal@mentor.com>
+---
+ instrumentation/events/lttng-module/kvm.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/instrumentation/events/lttng-module/kvm.h b/instrumentation/events/lttng-module/kvm.h
+index 9bb08c5..d29a26e 100644
+--- a/instrumentation/events/lttng-module/kvm.h
++++ b/instrumentation/events/lttng-module/kvm.h
+@@ -87,7 +87,7 @@ LTTNG_TRACEPOINT_EVENT(kvm_ack_irq,
+ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,15,0) \
+ || LTTNG_KERNEL_RANGE(4,14,14, 4,15,0) \
+ || LTTNG_DEBIAN_KERNEL_RANGE(4,14,13,0,1,0, 4,15,0,0,0,0) \
+- || LTTNG_KERNEL_RANGE(4,9,77, 4,10,0) \
++ || LTTNG_KERNEL_RANGE(4,7,0, 4,10,0) \
+ || LTTNG_KERNEL_RANGE(4,4,112, 4,5,0) \
+ || LTTNG_KERNEL_RANGE(4,1,50, 4,2,0) \
+ || LTTNG_KERNEL_RANGE(3,16,52, 3,17,0) \
+--
+2.11.1
+
diff --git a/meta-amd-bsp/recipes-kernel/lttng/lttng-modules_%.bbappend b/meta-amd-bsp/recipes-kernel/lttng/lttng-modules_%.bbappend
new file mode 100644
index 00000000..d40e9df4
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/lttng/lttng-modules_%.bbappend
@@ -0,0 +1,3 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+inherit kernel-openssl
+SRC_URI_append_e3000 = " file://0001-kvm.h-workaround-kernel-version-issues.patch"