android_kernel_xiaomi_sm8350/kernel/trace
Abhishek Sagar 76094a2cf4 ftrace: distinguish kretprobe'd functions in trace logs
Tracing functions via ftrace which have a kretprobe installed on them, can produce misleading output in their trace logs. E.g, consider the correct trace of the following sequence:

do_IRQ()
{
~
  irq_enter();
~
}

Trace log (sample):
<idle>-0     [00] 4154504455.781616: irq_enter <- do_IRQ

But if irq_enter() has a kretprobe installed on it, the return value stored on the stack at each invocation is modified to divert the return to a kprobe trampoline function called kretprobe_trampoline(). So with this the trace would (currently) look like:

<idle>-0     [00] 4154504455.781616: irq_enter <- kretprobe_trampoline

Now this is quite misleading to the end user, as it suggests something that didn't actually happen. So just to avoid such misinterpretations, the inlined patch aims to output such a log as:

<idle>-0     [00] 4154504455.781616: irq_enter <- [unknown/kretprobe'd]

Signed-off-by: Abhishek Sagar <sagar.abhishek@gmail.com>
Acked-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2008-06-02 12:41:19 +02:00
..
ftrace.c ftrace: fix updating of ftrace_update_cnt 2008-05-26 22:52:10 +02:00
Kconfig ftrace: add have dynamic ftrace config for archs 2008-05-23 22:49:18 +02:00
Makefile ftrace: fix dynamic ftrace selftest 2008-05-23 21:13:23 +02:00
trace_functions.c ftrace: fix up cmdline recording 2008-05-26 22:51:49 +02:00
trace_irqsoff.c ftrace: remove printks from irqsoff trace 2008-05-26 22:51:27 +02:00
trace_sched_switch.c ftrace: fix up cmdline recording 2008-05-26 22:51:49 +02:00
trace_sched_wakeup.c ftrace: add function tracing to wake up tracing 2008-05-26 22:51:22 +02:00
trace_selftest_dynamic.c ftrace: fix dynamic ftrace selftest 2008-05-23 21:13:23 +02:00
trace_selftest.c ftrace: limit use of check pages 2008-05-26 22:39:45 +02:00
trace.c ftrace: distinguish kretprobe'd functions in trace logs 2008-06-02 12:41:19 +02:00
trace.h ftrace: fix up cmdline recording 2008-05-26 22:51:49 +02:00