Fix: Add kernel configuration for lttng clock plugin
A message that is not in the archive (sent off-list or not yet received): [email protected]
Mathieu Desnoyers
AppliedMerged into lttng-modules master and stable-2.8, thanks!
Mathieu
Quoted 83 lines · ----- On Jul 22, 2016, at 10:10 AM, Anders Wallin [email protected] wrote:
Only one lttng clock plugin can be used when building the lttng-modules in the kernel. To make it possible to use a custom clock plugin it must be possible to unconfigure the test clock plugin
Signed-off-by Anders Wallin <[email protected]>---
Kconfig | 2 ++ Makefile | 6 +++--- tests/Kbuild | 2 +- tests/Kconfig | 8 ++++++++ 4 files changed, 14 insertions(+), 4 deletions(-)create mode 100644 tests/Kconfig
Kconfig +2
-0@@ -10,3 +10,5 @@ config LTTNG the Linux kernel image, choose Y. If unsure, say N. + +source "lttng/tests/Kconfig"Makefile +0
-0@@ -107,15 +107,15 @@ CFLAGS = $(EXTCFLAGS)default: modules
modules:
Makefile +1
-1- $(MAKE) -C $(KERNELDIR) M=$(PWD) CONFIG_LTTNG=m modules + $(MAKE) -C $(KERNELDIR) M=$(PWD) CONFIG_LTTNG=m
CONFIG_LTTNG_CLOCK_PLUGIN_TEST=mmodules
modules_install:Makefile +1
-1- $(MAKE) -C $(KERNELDIR) M=$(PWD) CONFIG_LTTNG=m modules_install + $(MAKE) -C $(KERNELDIR) M=$(PWD) CONFIG_LTTNG=m
CONFIG_LTTNG_CLOCK_PLUGIN_TEST=mmodules_installclean:
$(MAKE) -C $(KERNELDIR) M=$(PWD) clean%.i: %.c
Makefile +1
-1- $(MAKE) -C $(KERNELDIR) M=$(PWD) CONFIG_LTTNG=m $@ + $(MAKE) -C $(KERNELDIR) M=$(PWD) CONFIG_LTTNG=m
CONFIG_LTTNG_CLOCK_PLUGIN_TEST=m$@endif # KERNELRELEASE
tests/Kbuild +0
-0@@ -7,7 +7,7 @@ ccflags-y += -I$(TOP_LTTNG_MODULES_DIR)obj-$(CONFIG_LTTNG) += lttng-test.o
lttng-test-objs :=probes/lttng-test.otests/Kbuild +1
-1-obj-$(CONFIG_LTTNG) += lttng-clock-plugin-test.o +obj-$(CONFIG_LTTNG_CLOCK_PLUGIN_TEST) += lttng-clock-plugin-test.olttng-clock-plugin-test-objs :=
clock-plugin/lttng-clock-plugin-test.o# vim:syntax=make
tests/Kconfig new file +8
-1@@ -0,0 +1,8 @@ +config LTTNG_CLOCK_PLUGIN_TEST + tristate "Use Test plugin as trace clock" + depends on LTTNG + help + Use the test clock as trace clock. This plugin freezes the + time with 1 KHz for regression test. + It's recommended to build this as a module to work with the + lttng-tools test suite. --2.9.2
_______________________________________________
lttng-dev mailing list
[email protected]
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
Signature · 7 lines
Mathieu Desnoyers EfficiOS Inc. http://www.efficios.com _______________________________________________ lttng-dev mailing list [email protected] https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev