Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] package/lttng-modules: enable CONFIG_FTRACE in kernel configuration
@ 2022-10-12 20:23 Thomas Petazzoni via buildroot
  2022-10-12 20:23 ` [Buildroot] [PATCH 2/2] package/lttng-modules: bump to 2.13.7 Thomas Petazzoni via buildroot
  2022-11-14 21:31 ` [Buildroot] [PATCH 1/2] package/lttng-modules: enable CONFIG_FTRACE in kernel configuration Thomas Petazzoni via buildroot
  0 siblings, 2 replies; 3+ messages in thread
From: Thomas Petazzoni via buildroot @ 2022-10-12 20:23 UTC (permalink / raw)
  To: buildroot; +Cc: Clément Léger, Philippe Proulx, Thomas Petazzoni

The build of lttng-modules will fail if the kernel does not have
CONFIG_TRACEPOINTS enabled. However, CONFIG_TRACEPOINTS is a
prompt-less option, and the most generic option that does enable
CONFIG_TRACEPOINTS is CONFIG_FTRACE.

In addition, CONFIG_FTRACE will also enable CONFIG_STACKTRACE, which
is needed on CPU architectures that don't provide the STACKWALK
mechanism in the kernel, as is the case on ARM 32-bit for example.

Therefore, let's enable CONFIG_FTRACE when building lttng-modules.

Cc: Clément Léger <clement.leger@bootlin.com>
Reported-by: Clément Léger <clement.leger@bootlin.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
---
 package/lttng-modules/lttng-modules.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/lttng-modules/lttng-modules.mk b/package/lttng-modules/lttng-modules.mk
index d527bc19ef..97cda53f08 100644
--- a/package/lttng-modules/lttng-modules.mk
+++ b/package/lttng-modules/lttng-modules.mk
@@ -14,6 +14,7 @@ LTTNG_MODULES_MODULE_MAKE_OPTS = CONFIG_LTTNG=m CONFIG_LTTNG_CLOCK_PLUGIN_TEST=m
 
 define LTTNG_MODULES_LINUX_CONFIG_FIXUPS
 	$(call KCONFIG_ENABLE_OPT,CONFIG_KPROBES)
+	$(call KCONFIG_ENABLE_OPT,CONFIG_FTRACE)
 endef
 
 $(eval $(kernel-module))
-- 
2.37.3

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-11-14 21:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-12 20:23 [Buildroot] [PATCH 1/2] package/lttng-modules: enable CONFIG_FTRACE in kernel configuration Thomas Petazzoni via buildroot
2022-10-12 20:23 ` [Buildroot] [PATCH 2/2] package/lttng-modules: bump to 2.13.7 Thomas Petazzoni via buildroot
2022-11-14 21:31 ` [Buildroot] [PATCH 1/2] package/lttng-modules: enable CONFIG_FTRACE in kernel configuration Thomas Petazzoni via buildroot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox