Initial Commit
- initial default booting image
This commit is contained in:
43
package/lttng-modules/Config.in
Normal file
43
package/lttng-modules/Config.in
Normal file
@@ -0,0 +1,43 @@
|
||||
config BR2_PACKAGE_LTTNG_MODULES
|
||||
bool "lttng-modules"
|
||||
depends on BR2_LINUX_KERNEL
|
||||
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0
|
||||
help
|
||||
Linux kernel modules for the LTTng 2.x kernel tracing
|
||||
infrastructure.
|
||||
|
||||
Make sure your target kernel has the following config
|
||||
options enabled:
|
||||
|
||||
* CONFIG_MODULES: loadable module support (not strictly
|
||||
required when built into the kernel)
|
||||
* CONFIG_KALLSYMS: this is necessary until the few
|
||||
required missing symbols are exported to GPL
|
||||
modules from mainline
|
||||
* CONFIG_HIGH_RES_TIMERS: needed for LTTng 2.x
|
||||
clock source
|
||||
* CONFIG_TRACEPOINTS: kernel tracepoint instrumentation
|
||||
(enabled as a side-effect of any of the
|
||||
perf/ftrace/blktrace instrumentation features)
|
||||
* CONFIG_KPROBES (5.7+): use kallsyms for kernel 5.7 and
|
||||
newer.
|
||||
|
||||
The following kernel configuration options will
|
||||
affect the features available from LTTng:
|
||||
|
||||
* CONFIG_HAVE_SYSCALL_TRACEPOINTS: system call tracing
|
||||
* CONFIG_PERF_EVENTS: performance counters
|
||||
* CONFIG_EVENT_TRACING: needed to allow block layer tracing
|
||||
* CONFIG_KPROBES: dynamic probes
|
||||
* CONFIG_KRETPROBES: dynamic function entry/return probes
|
||||
* CONFIG_KALLSYMS_ALL: state dump of mapping between block
|
||||
device number and name
|
||||
|
||||
http://lttng.org
|
||||
|
||||
comment "lttng-modules needs a Linux kernel to be built"
|
||||
depends on !BR2_LINUX_KERNEL
|
||||
|
||||
comment "lttng-modules needs a toolchain w/ headers >= 3.0"
|
||||
depends on BR2_LINUX_KERNEL
|
||||
depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0
|
||||
8
package/lttng-modules/lttng-modules.hash
Normal file
8
package/lttng-modules/lttng-modules.hash
Normal file
@@ -0,0 +1,8 @@
|
||||
# From https://lttng.org/files/lttng-modules/lttng-modules-2.14.3.tar.bz2.sha256
|
||||
sha256 35a1875ad96e8b4b6aa8729f59af350bfc788ba65c6856deaa84d33acc0f28c2 lttng-modules-2.14.3.tar.bz2
|
||||
|
||||
# Hash for license files
|
||||
sha256 fa6f36630bb1e0c571d34b2bbdf188d08495c9dbf58f28cac112f303fc1f58fb LICENSES/LGPL-2.1-only.txt
|
||||
sha256 aaf135472f81c5b4a0dca9367e5bb5e9750032b5bebe5442b36e4c0a47430df3 LICENSES/GPL-2.0-only.txt
|
||||
sha256 b85dcd3e453d05982552c52b5fc9e0bdd6d23c6f8e844b984a88af32570b0cc0 LICENSES/MIT.txt
|
||||
sha256 04c0f62f5088b9f794f803730878da9fe1ddc9a91f1b83b045b720e05adcf7af LICENSE
|
||||
24
package/lttng-modules/lttng-modules.mk
Normal file
24
package/lttng-modules/lttng-modules.mk
Normal file
@@ -0,0 +1,24 @@
|
||||
################################################################################
|
||||
#
|
||||
# lttng-modules
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LTTNG_MODULES_VERSION = 2.14.3
|
||||
LTTNG_MODULES_SITE = http://lttng.org/files/lttng-modules
|
||||
LTTNG_MODULES_SOURCE = lttng-modules-$(LTTNG_MODULES_VERSION).tar.bz2
|
||||
LTTNG_MODULES_LICENSE = LGPL-2.1/GPL-2.0 (kernel modules), MIT (lib/bitfield.h, lib/prio_heap/*)
|
||||
LTTNG_MODULES_LICENSE_FILES = \
|
||||
LICENSES/GPL-2.0-only.txt \
|
||||
LICENSES/LGPL-2.1-only.txt \
|
||||
LICENSES/MIT.txt \
|
||||
LICENSE
|
||||
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))
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user