[meta-intel] [PATCH 1/2] lttng-modules: fix build error with 4.14 -rt kernel

2018-06-20 Thread Anuj Mittal
Backport patch to fix build errors with 4.14 rt kernels. Should be
reverted after lttng-modules is upgraded to 2.10.6 in OE-core.

Signed-off-by: Anuj Mittal 
---
 ...-instrumentation-on-4.16-and-4.14-rt.patch | 87 +++
 recipes-kernel/lttng/lttng-modules_%.bbappend |  5 +-
 2 files changed, 91 insertions(+), 1 deletion(-)
 create mode 100644 
recipes-kernel/lttng/lttng-modules/0001-Fix-update-timer-instrumentation-on-4.16-and-4.14-rt.patch

diff --git 
a/recipes-kernel/lttng/lttng-modules/0001-Fix-update-timer-instrumentation-on-4.16-and-4.14-rt.patch
 
b/recipes-kernel/lttng/lttng-modules/0001-Fix-update-timer-instrumentation-on-4.16-and-4.14-rt.patch
new file mode 100644
index 000..9fc4247
--- /dev/null
+++ 
b/recipes-kernel/lttng/lttng-modules/0001-Fix-update-timer-instrumentation-on-4.16-and-4.14-rt.patch
@@ -0,0 +1,87 @@
+From 5a32ce54ebf73b297a0bbccfe88c36994e15dcc4 Mon Sep 17 00:00:00 2001
+From: Rasmus Villemoes 
+Date: Mon, 12 Feb 2018 18:31:40 +0100
+Subject: [PATCH] Fix: update timer instrumentation on 4.16 and 4.14-rt
+
+See upstream commit :
+
+  commit 63e2ed3659752a4850e0ef3a07f809988fcd74a4
+  Author: Anna-Maria Gleixner 
+  Date:   Thu Dec 21 11:41:38 2017 +0100
+
+tracing/hrtimer: Print the hrtimer mode in the 'hrtimer_start' tracepoint
+
+The 'hrtimer_start' tracepoint lacks the mode information. The mode is
+important because consecutive starts can switch from ABS to REL or from
+PINNED to non PINNED.
+
+Append the mode field.
+
+See linux-rt commit :
+
+  commit 6ee32a49b1ed61c08ac9f1c9fcbf83d3c749b71d
+  Author: Anna-Maria Gleixner 
+  Date:   Sun Oct 22 23:39:46 2017 +0200
+
+tracing: hrtimer: Print hrtimer mode in hrtimer_start tracepoint
+
+The hrtimer_start tracepoint lacks the mode information. The mode is
+important because consecutive starts can switch from ABS to REL or from
+PINNED to non PINNED.
+
+Add the mode information.
+
+Signed-off-by: Rasmus Villemoes 
+Signed-off-by: Michael Jeanson 
+Signed-off-by: Mathieu Desnoyers 
+
+Upstream-Status: Backport 
[http://git.lttng.org/?p=lttng-modules.git;a=commit;h=5a32ce54ebf73b297a0bbccfe88c36994e15dcc4]
 
+Signed-off-by: Anuj Mittal 
+
+---
+ instrumentation/events/lttng-module/timer.h | 22 +
+ 1 file changed, 22 insertions(+)
+
+diff --git a/instrumentation/events/lttng-module/timer.h 
b/instrumentation/events/lttng-module/timer.h
+index d62fd25..6f0cb7f 100644
+--- a/instrumentation/events/lttng-module/timer.h
 b/instrumentation/events/lttng-module/timer.h
+@@ -160,6 +160,27 @@ LTTNG_TRACEPOINT_EVENT_MAP(hrtimer_init,
+  * hrtimer_start - called when the hrtimer is started
+  * @timer: pointer to struct hrtimer
+  */
++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,16,0) || \
++  LTTNG_RT_KERNEL_RANGE(4,14,0,0, 4,15,0,0))
++LTTNG_TRACEPOINT_EVENT_MAP(hrtimer_start,
++
++  timer_hrtimer_start,
++
++  TP_PROTO(struct hrtimer *hrtimer, enum hrtimer_mode mode),
++
++  TP_ARGS(hrtimer, mode),
++
++  TP_FIELDS(
++  ctf_integer_hex(void *, hrtimer, hrtimer)
++  ctf_integer_hex(void *, function, hrtimer->function)
++  ctf_integer(s64, expires,
++  lttng_ktime_get_tv64(hrtimer_get_expires(hrtimer)))
++  ctf_integer(s64, softexpires,
++  lttng_ktime_get_tv64(hrtimer_get_softexpires(hrtimer)))
++  ctf_integer(enum hrtimer_mode, mode, mode)
++  )
++)
++#else
+ LTTNG_TRACEPOINT_EVENT_MAP(hrtimer_start,
+ 
+   timer_hrtimer_start,
+@@ -177,6 +198,7 @@ LTTNG_TRACEPOINT_EVENT_MAP(hrtimer_start,
+   lttng_ktime_get_tv64(hrtimer_get_softexpires(hrtimer)))
+   )
+ )
++#endif
+ 
+ /**
+  * htimmer_expire_entry - called immediately before the hrtimer callback
+-- 
+2.17.1
+
diff --git a/recipes-kernel/lttng/lttng-modules_%.bbappend 
b/recipes-kernel/lttng/lttng-modules_%.bbappend
index dc1c4a7..5dfaf79 100644
--- a/recipes-kernel/lttng/lttng-modules_%.bbappend
+++ b/recipes-kernel/lttng/lttng-modules_%.bbappend
@@ -3,5 +3,8 @@ FILESEXTRAPATHS_prepend_intel-x86-common := "${THISDIR}/${PN}:"
 
 LTTNG_PATCH = 
"${@bb.utils.contains_any('PREFERRED_PROVIDER_virtual/kernel','linux-intel 
linux-intel-rt','file://0002-lttng-modules-PKT-4.9-yocto-build-failed.patch','',d)}"
 
-SRC_URI_append_intel-x86-common = " ${LTTNG_PATCH}"
+SRC_URI_append_intel-x86-common = " \
+${LTTNG_PATCH} \
+
file://0001-Fix-update-timer-instrumentation-on-4.16-and-4.14-rt.patch \
+"
 
-- 
2.17.1

-- 
___
meta-intel mailing list
meta-intel@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-intel


[meta-intel] [PATCH 2/2] core-image-rt-sdk: make sure that we append to DEPENDS

2018-06-20 Thread Anuj Mittal
Also fixes postinst warnings that are now being flagged as errors
after the recent changes in OE-core.

Signed-off-by: Anuj Mittal 
---
 recipes-rt/images/core-image-rt-sdk.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/recipes-rt/images/core-image-rt-sdk.bb 
b/recipes-rt/images/core-image-rt-sdk.bb
index 6b43a87..920c4ce 100644
--- a/recipes-rt/images/core-image-rt-sdk.bb
+++ b/recipes-rt/images/core-image-rt-sdk.bb
@@ -11,7 +11,7 @@ python () {
 DESCRIPTION = "Small image capable of booting a device with a test suite and \
 tools for real-time use. It includes the full meta-toolchain, development \
 headers and libraries to form a standalone SDK."
-DEPENDS = "linux-intel-rt"
+DEPENDS += "linux-intel-rt"
 
 IMAGE_FEATURES += "dev-pkgs tools-sdk tools-debug eclipse-debug tools-profile 
tools-testapps debug-tweaks"
 
-- 
2.17.1

-- 
___
meta-intel mailing list
meta-intel@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-intel


[meta-intel] [PATCH] maintainers: update all owners to Anuj

2018-06-20 Thread Ross Burton
Signed-off-by: Ross Burton 
---
 conf/include/maintainers.inc | 24 
 1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/conf/include/maintainers.inc b/conf/include/maintainers.inc
index d37ddb5e..b90480ef 100644
--- a/conf/include/maintainers.inc
+++ b/conf/include/maintainers.inc
@@ -1,21 +1,21 @@
 # This file contains a list of recipe maintainers for meta-intel
 
-RECIPE_MAINTAINER_pn-core-image-rt = "Stephano Cetola 
"
-RECIPE_MAINTAINER_pn-core-image-rt-sdk = "Stephano Cetola 
"
+RECIPE_MAINTAINER_pn-core-image-rt = "Anuj Mittal "
+RECIPE_MAINTAINER_pn-core-image-rt-sdk = "Anuj Mittal "
 RECIPE_MAINTAINER_pn-gma500-gfx-check = "Anuj Mittal "
 RECIPE_MAINTAINER_pn-intel-gpu-tools = "Anuj Mittal "
-RECIPE_MAINTAINER_pn-intel-microcode = "California Sullivan 
"
-RECIPE_MAINTAINER_pn-core-image-minimal-initramfs = "California Sullivan 
"
-RECIPE_MAINTAINER_pn-iucode-tool = "California Sullivan 
"
+RECIPE_MAINTAINER_pn-intel-microcode = "Anuj Mittal "
+RECIPE_MAINTAINER_pn-core-image-minimal-initramfs = "Anuj Mittal 
"
+RECIPE_MAINTAINER_pn-iucode-tool = "Anuj Mittal "
 RECIPE_MAINTAINER_pn-intel-vaapi-driver = "Anuj Mittal "
 RECIPE_MAINTAINER_pn-libyami = "Anuj Mittal "
 RECIPE_MAINTAINER_pn-libyami-utils = "Anuj Mittal "
-RECIPE_MAINTAINER_pn-linux-intel = "California Sullivan 
"
-RECIPE_MAINTAINER_pn-linux-intel-rt = "California Sullivan 
"
-RECIPE_MAINTAINER_pn-lms7 = "TBD"
-RECIPE_MAINTAINER_pn-lms8 = "TBD"
-RECIPE_MAINTAINER_pn-rmc = "Stephano Cetola "
-RECIPE_MAINTAINER_pn-rmc-db = "Stephano Cetola 
"
-RECIPE_MAINTAINER_pn-thermald = "California Sullivan 
"
+RECIPE_MAINTAINER_pn-linux-intel = "Anuj Mittal "
+RECIPE_MAINTAINER_pn-linux-intel-rt = "Anuj Mittal "
+RECIPE_MAINTAINER_pn-lms7 = "Anuj Mittal "
+RECIPE_MAINTAINER_pn-lms8 = "Anuj Mittal "
+RECIPE_MAINTAINER_pn-rmc = "Anuj Mittal "
+RECIPE_MAINTAINER_pn-rmc-db = "Anuj Mittal "
+RECIPE_MAINTAINER_pn-thermald = "Anuj Mittal "
 RECIPE_MAINTAINER_pn-va-intel = "Anuj Mittal "
 RECIPE_MAINTAINER_pn-xf86-video-ast = "Anuj Mittal "
-- 
2.11.0

-- 
___
meta-intel mailing list
meta-intel@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-intel