Patchwork [meta-fsl-arm,PATCHv2,2/4] linux-imx (3.0.35): Enable tracing support so lttng's modules are build

login
register
mail settings
Submitter Otavio Salvador
Date July 3, 2013, 1:45 p.m.
Message ID <1372859139-15652-2-git-send-email-otavio@ossystems.com.br>
Download mbox | patch
Permalink /patch/52895/
State Accepted
Delegated to: Otavio Salvador
Headers show

Comments

Otavio Salvador - July 3, 2013, 1:45 p.m.
lttng support is enabled in Freescale test images however its modules
were not being build due lacking of tracing support in the
kernel. This patch enables the needed kernel features to allow the
modules to be build and thus making lttng usable.

Change-Id: Ifa5fd3a5206502d8b100ce6211d2cbb69b9c6f3b
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
---
 recipes-kernel/linux/linux-imx-3.0.35/mx6dl/defconfig | 4 +++-
 recipes-kernel/linux/linux-imx-3.0.35/mx6q/defconfig  | 3 +++
 recipes-kernel/linux/linux-imx-3.0.35/mx6sl/defconfig | 2 ++
 3 files changed, 8 insertions(+), 1 deletion(-)
Fabio Estevam - July 3, 2013, 7:50 p.m.
On Wed, Jul 3, 2013 at 10:45 AM, Otavio Salvador
<otavio@ossystems.com.br> wrote:
> lttng support is enabled in Freescale test images however its modules
> were not being build due lacking of tracing support in the
> kernel. This patch enables the needed kernel features to allow the
> modules to be build and thus making lttng usable.
>
> Change-Id: Ifa5fd3a5206502d8b100ce6211d2cbb69b9c6f3b
> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>

Much better now:

Reviewed-by: Fabio Estevam <fabio.estevam@freescale.com>
Otavio Salvador - July 5, 2013, 3:12 p.m.
On Wed, Jul 3, 2013 at 4:50 PM, Fabio Estevam <festevam@gmail.com> wrote:
> On Wed, Jul 3, 2013 at 10:45 AM, Otavio Salvador
> <otavio@ossystems.com.br> wrote:
>> lttng support is enabled in Freescale test images however its modules
>> were not being build due lacking of tracing support in the
>> kernel. This patch enables the needed kernel features to allow the
>> modules to be build and thus making lttng usable.
>>
>> Change-Id: Ifa5fd3a5206502d8b100ce6211d2cbb69b9c6f3b
>> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
>
> Much better now:
>
> Reviewed-by: Fabio Estevam <fabio.estevam@freescale.com>

I will give this a try in more boards before merging it.

--
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://projetos.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750

Patch

diff --git a/recipes-kernel/linux/linux-imx-3.0.35/mx6dl/defconfig b/recipes-kernel/linux/linux-imx-3.0.35/mx6dl/defconfig
index 2d1ac2e..d709519 100644
--- a/recipes-kernel/linux/linux-imx-3.0.35/mx6dl/defconfig
+++ b/recipes-kernel/linux/linux-imx-3.0.35/mx6dl/defconfig
@@ -6,6 +6,7 @@  CONFIG_LOG_BUF_SHIFT=14
 CONFIG_CGROUPS=y
 CONFIG_EMBEDDED=y
 CONFIG_PERF_EVENTS=y
+CONFIG_KPROBES=y
 CONFIG_MODULES=y
 CONFIG_MODULE_UNLOAD=y
 CONFIG_MODULE_FORCE_UNLOAD=y
@@ -279,8 +280,9 @@  CONFIG_NLS_ASCII=m
 CONFIG_NLS_ISO8859_1=y
 CONFIG_NLS_UTF8=m
 CONFIG_MAGIC_SYSRQ=y
-CONFIG_DEBUG_FS=y
 CONFIG_SYSCTL_SYSCALL_CHECK=y
+# CONFIG_EVENT_POWER_TRACING_DEPRECATED is not set
+CONFIG_FTRACE=y
 # CONFIG_CRYPTO_MANAGER_DISABLE_TESTS is not set
 CONFIG_CRYPTO_TEST=m
 CONFIG_CRYPTO_CCM=y
diff --git a/recipes-kernel/linux/linux-imx-3.0.35/mx6q/defconfig b/recipes-kernel/linux/linux-imx-3.0.35/mx6q/defconfig
index 2d1ac2e..542e949 100644
--- a/recipes-kernel/linux/linux-imx-3.0.35/mx6q/defconfig
+++ b/recipes-kernel/linux/linux-imx-3.0.35/mx6q/defconfig
@@ -6,6 +6,7 @@  CONFIG_LOG_BUF_SHIFT=14
 CONFIG_CGROUPS=y
 CONFIG_EMBEDDED=y
 CONFIG_PERF_EVENTS=y
+CONFIG_KPROBES=y
 CONFIG_MODULES=y
 CONFIG_MODULE_UNLOAD=y
 CONFIG_MODULE_FORCE_UNLOAD=y
@@ -281,6 +282,8 @@  CONFIG_NLS_UTF8=m
 CONFIG_MAGIC_SYSRQ=y
 CONFIG_DEBUG_FS=y
 CONFIG_SYSCTL_SYSCALL_CHECK=y
+# CONFIG_EVENT_POWER_TRACING_DEPRECATED is not set
+CONFIG_FTRACE=y
 # CONFIG_CRYPTO_MANAGER_DISABLE_TESTS is not set
 CONFIG_CRYPTO_TEST=m
 CONFIG_CRYPTO_CCM=y
diff --git a/recipes-kernel/linux/linux-imx-3.0.35/mx6sl/defconfig b/recipes-kernel/linux/linux-imx-3.0.35/mx6sl/defconfig
index db3069f..b8f88f7 100644
--- a/recipes-kernel/linux/linux-imx-3.0.35/mx6sl/defconfig
+++ b/recipes-kernel/linux/linux-imx-3.0.35/mx6sl/defconfig
@@ -7,6 +7,7 @@  CONFIG_LOG_BUF_SHIFT=14
 CONFIG_CGROUPS=y
 CONFIG_EMBEDDED=y
 CONFIG_PERF_EVENTS=y
+CONFIG_KPROBES=y
 CONFIG_MODULES=y
 CONFIG_MODULE_UNLOAD=y
 CONFIG_MODULE_FORCE_UNLOAD=y
@@ -257,6 +258,7 @@  CONFIG_NLS_ISO8859_1=y
 CONFIG_NLS_UTF8=m
 CONFIG_DEBUG_FS=y
 CONFIG_SYSCTL_SYSCALL_CHECK=y
+CONFIG_FTRACE=y
 CONFIG_CRYPTO_AUTHENC=m
 CONFIG_CRYPTO_TEST=m
 CONFIG_CRYPTO_CBC=y