From c05914a1ab6604895e9456bdf892230d4f88f1c2 Mon Sep 17 00:00:00 2001 From: Vijayanand Jitta Date: Fri, 2 Oct 2020 02:00:48 +0530 Subject: [PATCH] tracing: Add CONFIG_KPROBES_QGKI config Add CONFIG_KPROBES_QGKI which enables the kprobe debug module on QGKI builds. Change-Id: I2e216c1d0561183ccc4284ce9a75bf7be45f2798 Signed-off-by: Vijayanand Jitta --- kernel/trace/Kconfig | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/kernel/trace/Kconfig b/kernel/trace/Kconfig index b075c9cf7c7d..f539a0f1d370 100644 --- a/kernel/trace/Kconfig +++ b/kernel/trace/Kconfig @@ -513,6 +513,19 @@ config KPROBE_EVENTS This option is also required by perf-probe subcommand of perf tools. If you want to use perf tools, this option is strongly recommended. +config KPROBES_QGKI + bool "Enable kprobe debug module on QGKI" + depends on KPROBES + depends on QGKI + default y + help + This enables the kprobe debug module on QGKI builds + which aids in dynamic debugging. + + This module can be used to insert kprobe at any offset + within a function and get required data and also provides + additional debug functionalities on top of normal kprobes. + config KPROBE_EVENTS_ON_NOTRACE bool "Do NOT protect notrace function from kprobe events" depends on KPROBE_EVENTS