From 07663d068cfaddb8ba4287a1c8cf4a8456873cb6 Mon Sep 17 00:00:00 2001 From: Kenji Hosokawa Date: Wed, 6 May 2020 23:05:53 +0900 Subject: linux: Enable kernel configs for SystemTap 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 Change-Id: Ida74b9ee9de0be3c06683e3a04ad424d5ae3e9e6 --- meta-agl-bsp/recipes-kernel/linux/linux-agl.inc | 4 ++++ meta-agl-bsp/recipes-kernel/linux/linux/systemtap.cfg | 9 +++++++++ 2 files changed, 13 insertions(+) create mode 100644 meta-agl-bsp/recipes-kernel/linux/linux/systemtap.cfg diff --git a/meta-agl-bsp/recipes-kernel/linux/linux-agl.inc b/meta-agl-bsp/recipes-kernel/linux/linux-agl.inc index 176878e6d..96ed8fdf6 100644 --- a/meta-agl-bsp/recipes-kernel/linux/linux-agl.inc +++ b/meta-agl-bsp/recipes-kernel/linux/linux-agl.inc @@ -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 index 000000000..4886c27f1 --- /dev/null +++ b/meta-agl-bsp/recipes-kernel/linux/linux/systemtap.cfg @@ -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 + -- cgit 1.2.3-korg