linux: Enable kernel configs for SystemTap 59/24459/4
authorKenji Hosokawa <khosokawa@jp.adit-jv.com>
Wed, 6 May 2020 14:05:53 +0000 (23:05 +0900)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Tue, 12 May 2020 13:20:55 +0000 (13:20 +0000)
Some of required kernel configs to use SystemTap are not enabled by
default. It is nessesary to rebuld and replace kernei before using it.
This commit will avoid it.

v2: Make the change conditional to 'agl-devel' and not apply in production.

Bug-AGL: SPEC-3360

Signed-off-by: Kenji Hosokawa <khosokawa@jp.adit-jv.com>
Change-Id: Ida74b9ee9de0be3c06683e3a04ad424d5ae3e9e6

meta-agl-bsp/recipes-kernel/linux/linux-agl.inc
meta-agl-bsp/recipes-kernel/linux/linux/systemtap.cfg [new file with mode: 0644]

index 176878e..96ed8fd 100644 (file)
@@ -114,3 +114,7 @@ KERNEL_CONFIG_FRAGMENTS_append = " ${WORKDIR}/rtc.cfg"
 # netfilter options
 SRC_URI_append = " file://netfilter.cfg"
 KERNEL_CONFIG_FRAGMENTS_append = " ${WORKDIR}/netfilter.cfg"
+
+# Enable support for SystemTap
+SRC_URI_append = " ${@bb.utils.contains('DISTRO_FEATURES', 'agl-devel', 'file://systemtap.cfg', '', d)}"
+KERNEL_CONFIG_FRAGMENTS_append = " ${@bb.utils.contains('DISTRO_FEATURES', 'agl-devel', '${WORKDIR}/systemtap.cfg', '', d)}"
diff --git a/meta-agl-bsp/recipes-kernel/linux/linux/systemtap.cfg b/meta-agl-bsp/recipes-kernel/linux/linux/systemtap.cfg
new file mode 100644 (file)
index 0000000..4886c27
--- /dev/null
@@ -0,0 +1,9 @@
+CONFIG_KPROBES=y
+CONFIG_UPROBES=y
+CONFIG_UPROBE_EVENTS=y
+CONFIG_FTRACE=y
+CONFIG_KPROBE_EVENTS=y
+CONFIG_RELAY=y
+CONFIG_DEBUG_FS=y
+CONFIG_DEBUG_INFO=y
+