diff options
| author | Ari Parkkila <ari.parkkila@qt.io> | 2024-12-20 09:04:28 +0200 |
|---|---|---|
| committer | Ari Parkkila <ari.parkkila@qt.io> | 2025-01-20 10:24:42 +0200 |
| commit | 680878bb2de7ad020a94b879532586b9d5238b79 (patch) | |
| tree | b0d415d9a99c5ebc01560fe3a4d04f807a687dd4 | |
| parent | a2b3df1b44a1c9c9d6d105946bf2c5b91235270a (diff) | |
Enable linux kernel tracing
Enable selection of kernel features for profiler, ftracer, probes
and BPF.
Task-number: QTBUG-127698
Change-Id: I764350fade338b574b47ab8b4be1acf594314e40
Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
| -rw-r--r-- | recipes-kernel/linux/files/profiling.cfg | 11 | ||||
| -rw-r--r-- | recipes-kernel/linux/linux-qcom-custom_%.bbappend | 7 |
2 files changed, 18 insertions, 0 deletions
diff --git a/recipes-kernel/linux/files/profiling.cfg b/recipes-kernel/linux/files/profiling.cfg new file mode 100644 index 0000000..67e88e0 --- /dev/null +++ b/recipes-kernel/linux/files/profiling.cfg @@ -0,0 +1,11 @@ +CONFIG_GENERIC_TRACER=y +CONFIG_HAVE_DYNAMIC_FTRACE=y +CONFIG_HAVE_FUNCTION_TRACER=y +CONFIG_FUNCTION_TRACER=y +CONFIG_FTRACE=y +CONFIG_KPROBES=y +CONFIG_KPROBE_EVENTS=y +CONFIG_UPROBE_EVENTS=y +CONFIG_BPF_EVENTS=y +CONFIG_BPF_SYSCALL=y +CONFIG_DYNAMIC_FTRACE=y diff --git a/recipes-kernel/linux/linux-qcom-custom_%.bbappend b/recipes-kernel/linux/linux-qcom-custom_%.bbappend new file mode 100644 index 0000000..9eefc51 --- /dev/null +++ b/recipes-kernel/linux/linux-qcom-custom_%.bbappend @@ -0,0 +1,7 @@ +FILESEXTRAPATHS:prepend := "${THISDIR}/files:" + +SRC_URI += "\ + file://profiling.cfg \ +" + +KERNEL_CONFIG_FRAGMENTS:append = " ${WORKDIR}/profiling.cfg" |
