diff options
| author | Saul Wold <sgw@linux.intel.com> | 2017-09-25 15:08:24 -0700 |
|---|---|---|
| committer | Saul Wold <sgw@linux.intel.com> | 2017-09-26 07:20:31 -0700 |
| commit | fa36ede519797a04deca8a9fe94807de75c782cb (patch) | |
| tree | 13c37b4cc694af8d14bc020a3370e92b8d5edca9 /common/recipes-kernel | |
| parent | dc921fcd8d4da30757d284e8593b236d5370a40f (diff) | |
| download | meta-intel-fa36ede519797a04deca8a9fe94807de75c782cb.tar.gz | |
lttng-modules: Add patch for API Change
There was a patch back-ported into the linux-intel kernel that
also requires a patch to lttng-modules for the updated API.
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'common/recipes-kernel')
| -rw-r--r-- | common/recipes-kernel/lttng/lttng-modules/0002-lttng-modules-PKT-4.9-yocto-build-failed.patch | 38 | ||||
| -rw-r--r-- | common/recipes-kernel/lttng/lttng-modules_%.bbappend | 7 |
2 files changed, 45 insertions, 0 deletions
diff --git a/common/recipes-kernel/lttng/lttng-modules/0002-lttng-modules-PKT-4.9-yocto-build-failed.patch b/common/recipes-kernel/lttng/lttng-modules/0002-lttng-modules-PKT-4.9-yocto-build-failed.patch new file mode 100644 index 00000000..32b49b8d --- /dev/null +++ b/common/recipes-kernel/lttng/lttng-modules/0002-lttng-modules-PKT-4.9-yocto-build-failed.patch | |||
| @@ -0,0 +1,38 @@ | |||
| 1 | From ebfdc8b8af17f9cf23c6878eb52476fde7b48e5c Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Priyalee Kushwaha <priyalee.kushwaha@intel.com> | ||
| 3 | Date: Fri, 22 Sep 2017 14:40:57 -0700 | ||
| 4 | Subject: [PATCH] lttng-modules: PKT 4.9 yocto build failed | ||
| 5 | |||
| 6 | PKT 4.9 yocto kernel backports a patch from upstream and that | ||
| 7 | changes header include/linux/ktimer.h. Since this backported | ||
| 8 | patch is only relevant for PKT kernel, we need to carry this | ||
| 9 | patch. | ||
| 10 | |||
| 11 | Upstream-Status: Backport | ||
| 12 | Signed-off-by: Kushwaha, Priyalee <priyalee.kushwaha@intel.com> | ||
| 13 | --- | ||
| 14 | instrumentation/events/lttng-module/timer.h | 6 +++--- | ||
| 15 | 1 file changed, 3 insertions(+), 3 deletions(-) | ||
| 16 | |||
| 17 | diff --git a/instrumentation/events/lttng-module/timer.h b/instrumentation/events/lttng-module/timer.h | ||
| 18 | index d62fd25..59da988 100644 | ||
| 19 | --- a/instrumentation/events/lttng-module/timer.h | ||
| 20 | +++ b/instrumentation/events/lttng-module/timer.h | ||
| 21 | @@ -16,11 +16,11 @@ struct timer_list; | ||
| 22 | |||
| 23 | #endif /* _TRACE_TIMER_DEF_ */ | ||
| 24 | |||
| 25 | -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,10,0)) | ||
| 26 | +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,9,0)) | ||
| 27 | #define lttng_ktime_get_tv64(kt) (kt) | ||
| 28 | -#else /* #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,10,0)) */ | ||
| 29 | +#else /* #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,9,0)) */ | ||
| 30 | #define lttng_ktime_get_tv64(kt) ((kt).tv64) | ||
| 31 | -#endif /* #else #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,10,0)) */ | ||
| 32 | +#endif /* #else #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,9,0)) */ | ||
| 33 | |||
| 34 | LTTNG_TRACEPOINT_EVENT_CLASS(timer_class, | ||
| 35 | |||
| 36 | -- | ||
| 37 | 2.7.4 | ||
| 38 | |||
diff --git a/common/recipes-kernel/lttng/lttng-modules_%.bbappend b/common/recipes-kernel/lttng/lttng-modules_%.bbappend new file mode 100644 index 00000000..ee8b8c14 --- /dev/null +++ b/common/recipes-kernel/lttng/lttng-modules_%.bbappend | |||
| @@ -0,0 +1,7 @@ | |||
| 1 | FILESEXTRAPATHS_prepend_intel-x86-common := "${THISDIR}/${PN}:" | ||
| 2 | |||
| 3 | |||
| 4 | LTTNG_PATCH = "${@bb.utils.contains('PREFERRED_PROVIDER_virtual/kernel','linux-intel','file://0002-lttng-modules-PKT-4.9-yocto-build-failed.patch','',d)}" | ||
| 5 | |||
| 6 | SRC_URI += "${LTTNG_PATCH}" | ||
| 7 | |||
