summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2012-01-31 20:40:01 +0100
committerPeter Korsgaard <jacmet@sunsite.dk>2012-01-31 23:42:45 +0100
commit16891da22d99ec73696aa22c7564083146d664ec (patch)
treefd552159dff40b2f2810f8d39ed2612215dd86f9 /package
parent971e0b0c5faa579b6d07c39bdfacf6c7d8a9b176 (diff)
downloadbuildroot-novena-16891da22d99ec73696aa22c7564083146d664ec.tar.gz
buildroot-novena-16891da22d99ec73696aa22c7564083146d664ec.zip
lttng-modules: new package
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package')
-rw-r--r--package/Config.in1
-rw-r--r--package/lttng-modules/Config.in18
-rw-r--r--package/lttng-modules/lttng-modules.mk15
3 files changed, 34 insertions, 0 deletions
diff --git a/package/Config.in b/package/Config.in
index d15e9344f..d437e6e2f 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -24,6 +24,7 @@ source "package/kexec/Config.in"
source "package/lmbench/Config.in"
source "package/lsof/Config.in"
source "package/ltp-testsuite/Config.in"
+source "package/lttng-modules/Config.in"
source "package/ltrace/Config.in"
source "package/memstat/Config.in"
source "package/netperf/Config.in"
diff --git a/package/lttng-modules/Config.in b/package/lttng-modules/Config.in
new file mode 100644
index 000000000..2a0f938b8
--- /dev/null
+++ b/package/lttng-modules/Config.in
@@ -0,0 +1,18 @@
+config BR2_PACKAGE_LTTNG_MODULES
+ bool "lttng-modules"
+ depends on BR2_LINUX_KERNEL
+ help
+ Kernel modules for the LTTng 2.0 kernel tracing
+ infrastructure.
+
+ Your kernel must have CONFIG_TRACEPOINTS enabled for this
+ package to build something useful. You may also want to have
+ CONFIG_PERF_EVENTS to access perf event counters from
+ ltt-ng. Note that system call tracing is only available on
+ architectures that support CONFIG_HAVE_SYSCALL_TRACEPOINTS.
+
+ The packaged version is compatible with kernel 2.6.38,
+ 2.6.39, 3.0 and 3.1.0. See
+ http://lttng.org/files/bundles/20111214/README.compatible.kernels.txt
+
+ http://lttng.org
diff --git a/package/lttng-modules/lttng-modules.mk b/package/lttng-modules/lttng-modules.mk
new file mode 100644
index 000000000..1820c8fdd
--- /dev/null
+++ b/package/lttng-modules/lttng-modules.mk
@@ -0,0 +1,15 @@
+LTTNG_MODULES_VERSION = 2.0-pre11
+LTTNG_MODULES_SITE = http://lttng.org/files/bundles/20111214/
+LTTNG_MODULES_SOURCE = lttng-modules-$(LTTNG_MODULES_VERSION).tar.bz2
+
+LTTNG_MODULES_DEPENDENCIES = linux
+
+define LTTNG_MODULES_BUILD_CMDS
+ $(MAKE) -C $(@D) $(LINUX_MAKE_FLAGS) KERNELDIR=$(LINUX_DIR)
+endef
+
+define LTTNG_MODULES_INSTALL_TARGET_CMDS
+ $(MAKE) -C $(@D) $(LINUX_MAKE_FLAGS) KERNELDIR=$(LINUX_DIR) modules_install
+endef
+
+$(eval $(call GENTARGETS))