Skip to contentSkip to conversation

linux.mk: enable options for ktap

PATCH New Anders Darander 3 participants 7 messages Dec 16, 2013 – Dec 17, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 linux.mk: enable options for ktap

Certain tracing related options are required to be able to build ktapvm.ko, enable those.

Enable CONFIG_FUNTCTION_TRACER as otherwise, CONFIG_EVENT_TRACING won't stick. (Some tracer needs to be enabled for this).

---

This is a followup to the introduction of the ktap package, as was discussed in
http://permalink.gmane.org/gmane.comp.lib.uclibc.buildroot/72000.

 linux/linux.mk | 5 +++++
 1 file changed, 5 insertions(+)
linux/linux.mk +5 -0
index 33931e5..5af167d 100644
@@ -184,6 +184,11 @@ define LINUX_CONFIGURE_CMDS
 		$(call KCONFIG_ENABLE_OPT,CONFIG_DEVTMPFS_MOUNT,$(@D)/.config))
 	$(if $(BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV),
 		$(call KCONFIG_SET_OPT,CONFIG_UEVENT_HELPER_PATH,\"/sbin/mdev\",$(@D)/.config))
+	$(if $(BR2_PACKAGE_KTAP),
+		$(call KCONFIG_ENABLE_OPT,CONFIG_DEBUG_FS,$(@D)/.config)
+		$(call KCONFIG_ENABLE_OPT,CONFIG_EVENT_TRACING,$(@D)/.config)
+		$(call KCONFIG_ENABLE_OPT,CONFIG_PERF_EVENTS,$(@D)/.config)
+		$(call KCONFIG_ENABLE_OPT,CONFIG_FUNCTION_TRACER,$(@D)/.config))
 	$(if $(BR2_PACKAGE_SYSTEMD),
 		$(call KCONFIG_ENABLE_OPT,CONFIG_CGROUPS,$(@D)/.config))
 	$(if $(BR2_LINUX_KERNEL_APPENDED_DTB),
Signature · 1 line
1.8.5.1
#1 lore raw

PATCH 1/1 linux.mk: enable options for ktap

Quoted 21 lines · Anders Darander

Certain tracing related options are required to be able to build ktapvm.ko, enable those.

Enable CONFIG_FUNTCTION_TRACER as otherwise, CONFIG_EVENT_TRACING won't stick. (Some tracer needs to be enabled for this).

---

This is a followup to the introduction of the ktap package, as was discussed in
http://permalink.gmane.org/gmane.comp.lib.uclibc.buildroot/72000.

 linux/linux.mk | 5 +++++
 1 file changed, 5 insertions(+)
linux/linux.mk +0 -0
index 33931e5..5af167d 100644
@@ -184,6 +184,11 @@ define LINUX_CONFIGURE_CMDS
                $(call KCONFIG_ENABLE_OPT,CONFIG_DEVTMPFS_MOUNT,$(@D)/.config))
        $(if $(BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV),

linux/linux.mk define LINUX_CONFIGURE_CMDS

Quoted 10 lines
linux/linux.mk +5 -1
                $(call KCONFIG_SET_OPT,CONFIG_UEVENT_HELPER_PATH,\"/sbin/mdev\",$(@D)/.config))
+       $(if $(BR2_PACKAGE_KTAP),
+               $(call KCONFIG_ENABLE_OPT,CONFIG_DEBUG_FS,$(@D)/.config)
+               $(call KCONFIG_ENABLE_OPT,CONFIG_EVENT_TRACING,$(@D)/.config)
+               $(call KCONFIG_ENABLE_OPT,CONFIG_PERF_EVENTS,$(@D)/.config)
+               $(call KCONFIG_ENABLE_OPT,CONFIG_FUNCTION_TRACER,$(@D)/.config))
        $(if $(BR2_PACKAGE_SYSTEMD),
                $(call KCONFIG_ENABLE_OPT,CONFIG_CGROUPS,$(@D)/.config))
        $(if $(BR2_LINUX_KERNEL_APPENDED_DTB),
--

Should we update the help text in ktap to indicate that the mentioned configs are enabled automatically if the kernel is built by buildroot?

#2 lore raw

PATCH 1/1 linux.mk: enable options for ktap

Quoted 27 lines · Thomas De Schampheleire
Quoted 26 lines · Anders Darander

Certain tracing related options are required to be able to build ktapvm.ko, enable those.

Enable CONFIG_FUNTCTION_TRACER as otherwise, CONFIG_EVENT_TRACING won't stick. (Some tracer needs to be enabled for this).

---

This is a followup to the introduction of the ktap package, as was discussed in
http://permalink.gmane.org/gmane.comp.lib.uclibc.buildroot/72000.

 linux/linux.mk | 5 +++++
 1 file changed, 5 insertions(+)
linux/linux.mk +4 -0
index 33931e5..5af167d 100644
@@ -184,6 +184,11 @@ define LINUX_CONFIGURE_CMDS
                $(call KCONFIG_ENABLE_OPT,CONFIG_DEVTMPFS_MOUNT,$(@D)/.config))
        $(if $(BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV),
                $(call KCONFIG_SET_OPT,CONFIG_UEVENT_HELPER_PATH,\"/sbin/mdev\",$(@D)/.config))
+       $(if $(BR2_PACKAGE_KTAP),
+               $(call KCONFIG_ENABLE_OPT,CONFIG_DEBUG_FS,$(@D)/.config)
+               $(call KCONFIG_ENABLE_OPT,CONFIG_EVENT_TRACING,$(@D)/.config)
+               $(call KCONFIG_ENABLE_OPT,CONFIG_PERF_EVENTS,$(@D)/.config)
Quoted 8 lines

linux/linux.mk define LINUX_CONFIGURE_CMDS

Quoted 5 lines
linux/linux.mk +1 -1
+               $(call KCONFIG_ENABLE_OPT,CONFIG_FUNCTION_TRACER,$(@D)/.config))
        $(if $(BR2_PACKAGE_SYSTEMD),
                $(call KCONFIG_ENABLE_OPT,CONFIG_CGROUPS,$(@D)/.config))
        $(if $(BR2_LINUX_KERNEL_APPENDED_DTB),
--

Should we update the help text in ktap to indicate that the mentioned configs are enabled automatically if the kernel is built by buildroot?

What does everyone else think?

We've got three options:

1) Let it be as it is today
2) Change the text to state that those options are automatically enabled
3) Do as e.g. systemd does, which enables cgroups without mentioning in Config.in. I.e. remove the discussion of those options from ktap/Config.in.

I'm indifferent to either of these solutions.

Cheers,
Anders

Signature · 2 lines
Anders Darander
ChargeStorm AB / eStorm AB
#3 lore raw

PATCH 1/1 linux.mk: enable options for ktap

Quoted 41 lines · Anders Darander
Quoted 27 lines · Thomas De Schampheleire
Quoted 26 lines · Anders Darander

Certain tracing related options are required to be able to build ktapvm.ko, enable those.

Enable CONFIG_FUNTCTION_TRACER as otherwise, CONFIG_EVENT_TRACING won't stick. (Some tracer needs to be enabled for this).

---

This is a followup to the introduction of the ktap package, as was discussed in
http://permalink.gmane.org/gmane.comp.lib.uclibc.buildroot/72000.

 linux/linux.mk | 5 +++++
 1 file changed, 5 insertions(+)
linux/linux.mk +4 -0
index 33931e5..5af167d 100644
@@ -184,6 +184,11 @@ define LINUX_CONFIGURE_CMDS
                $(call KCONFIG_ENABLE_OPT,CONFIG_DEVTMPFS_MOUNT,$(@D)/.config))
        $(if $(BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV),
                $(call KCONFIG_SET_OPT,CONFIG_UEVENT_HELPER_PATH,\"/sbin/mdev\",$(@D)/.config))
+       $(if $(BR2_PACKAGE_KTAP),
+               $(call KCONFIG_ENABLE_OPT,CONFIG_DEBUG_FS,$(@D)/.config)
+               $(call KCONFIG_ENABLE_OPT,CONFIG_EVENT_TRACING,$(@D)/.config)
+               $(call KCONFIG_ENABLE_OPT,CONFIG_PERF_EVENTS,$(@D)/.config)
Quoted 8 lines

linux/linux.mk define LINUX_CONFIGURE_CMDS

Quoted 5 lines
linux/linux.mk +1 -1
+               $(call KCONFIG_ENABLE_OPT,CONFIG_FUNCTION_TRACER,$(@D)/.config))
        $(if $(BR2_PACKAGE_SYSTEMD),
                $(call KCONFIG_ENABLE_OPT,CONFIG_CGROUPS,$(@D)/.config))
        $(if $(BR2_LINUX_KERNEL_APPENDED_DTB),
--

Should we update the help text in ktap to indicate that the mentioned configs are enabled automatically if the kernel is built by buildroot?

What does everyone else think?

We've got three options:

Quoted 7 lines

1) Let it be as it is today
2) Change the text to state that those options are automatically enabled
3) Do as e.g. systemd does, which enables cgroups without mentioning in Config.in. I.e. remove the discussion of those options from ktap/Config.in.

I'm indifferent to either of these solutions.

Let's indeed see what others think, but my opinion:
- it's good that ktap/Config.in mentions the options, so that users with an external toolchain are notified
- it would be good to reassure users that do have a buildroot-built kernel that everything is fine for them.

So I prefer option 2.

Best regards,
Thomas

#4 lore raw

PATCH 1/1 linux.mk: enable options for ktap

Quoted 10 lines
Quoted 10 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas De Schampheleire <[email protected]> writes:

We've got three options:

1) Let it be as it is today
2) Change the text to state that those options are automatically enabled
3) Do as e.g. systemd does, which enables cgroups without mentioning in Config.in. I.e. remove the discussion of those options from ktap/Config.in.

Quoted 5 lines
Quoted 1 line

I'm indifferent to either of these solutions.

Let's indeed see what others think, but my opinion:
- it's good that ktap/Config.in mentions the options, so that users with an external toolchain are notified

I guess you mean 'external kernel'? ktap depends on BR2_LINUX_KERNEL so it only works when buildroot builds the kernel.

Quoted 2 lines

- it would be good to reassure users that do have a buildroot-built kernel that everything is fine for them.

Agreed, I've added a comment explaining that.

Signature · 1 line
Bye, Peter Korsgaard
#5 lore raw

PATCH 1/1 linux.mk: enable options for ktap

Quoted 10 lines · Peter Korsgaard
Quoted 10 lines
Quoted 10 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas De Schampheleire <[email protected]> writes:

We've got three options:

1) Let it be as it is today
2) Change the text to state that those options are automatically enabled
3) Do as e.g. systemd does, which enables cgroups without mentioning in Config.in. I.e. remove the discussion of those options from ktap/Config.in.

Quoted 8 lines
Quoted 5 lines
Quoted 1 line

I'm indifferent to either of these solutions.

Let's indeed see what others think, but my opinion:
- it's good that ktap/Config.in mentions the options, so that users with an external toolchain are notified

I guess you mean 'external kernel'? ktap depends on BR2_LINUX_KERNEL so it only works when buildroot builds the kernel.

Yes I did mean that, but forgot that ktap always required a buildroot kernel.

Quoted 5 lines
Quoted 3 lines

- it would be good to reassure users that do have a buildroot-built kernel that everything is fine for them.

Agreed, I've added a comment explaining that.

Ok, thanks.
Thomas

#6 lore raw

PATCH 1/1 linux.mk: enable options for ktap

In reply to Anders Darander
Quoted 9 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Anders" == Anders Darander <[email protected]> writes:

Certain tracing related options are required to be able to build ktapvm.ko, enable those. Enable CONFIG_FUNTCTION_TRACER as otherwise, CONFIG_EVENT_TRACING won't stick. (Some tracer needs to be enabled for this).

---

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard