linux.mk: enable options for ktap
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
@@ -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
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_TRACERas otherwise,CONFIG_EVENT_TRACINGwon't stick. (Some tracer needs to be enabled for this).Signed-off-by Anders Darander <[email protected]>---
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@@ -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?
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_TRACERas otherwise,CONFIG_EVENT_TRACINGwon't stick. (Some tracer needs to be enabled for this).Signed-off-by Anders Darander <[email protected]>---
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@@ -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
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_TRACERas otherwise,CONFIG_EVENT_TRACINGwon't stick. (Some tracer needs to be enabled for this).Signed-off-by Anders Darander <[email protected]>---
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@@ -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
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
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 notifiedI guess you mean 'external kernel'? ktap depends on
BR2_LINUX_KERNELso 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
PATCH 1/1 linux.mk: enable options for ktap
In reply to Anders DaranderQuoted 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_TRACERas otherwise,CONFIG_EVENT_TRACINGwon't stick. (Some tracer needs to be enabled for this).Signed-off-by Anders Darander <[email protected]>---
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard