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
# 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)}"
--- /dev/null
+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
+