diff options
author | Kenji Hosokawa <khosokawa@jp.adit-jv.com> | 2020-05-06 23:05:53 +0900 |
---|---|---|
committer | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2020-05-12 13:20:55 +0000 |
commit | 07663d068cfaddb8ba4287a1c8cf4a8456873cb6 (patch) | |
tree | 0831a5bf6612f11b1e8bfd3708cc03c89dcd7ca6 | |
parent | 406020ff1b649c4a02248cef5e82abf5315d44d6 (diff) |
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 <khosokawa@jp.adit-jv.com>
Change-Id: Ida74b9ee9de0be3c06683e3a04ad424d5ae3e9e6
-rw-r--r-- | meta-agl-bsp/recipes-kernel/linux/linux-agl.inc | 4 | ||||
-rw-r--r-- | meta-agl-bsp/recipes-kernel/linux/linux/systemtap.cfg | 9 |
2 files changed, 13 insertions, 0 deletions
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 + |