• Steven Rostedt's avatar
    function-graph: calculate function depth within function graph tracer · 2fbcdb35
    Steven Rostedt authored
    Currently, the function graph tracer depends on the trace_printk
    to record the depth. All the information is already there in the trace
    to calculate function depth, with the exception of having the printk
    be the first item. But as soon as a entry or exit is reached, then
    we know the depth.
    
    This patch changes the iter->private data from recording a per cpu
    last_pid, to a structure that holds both the last_pid and the current
    depth. This data is used to determine the function depth for the
    printks.
    Signed-off-by: default avatarSteven Rostedt <srostedt@redhat.com>
    2fbcdb35
trace_functions_graph.c 20.3 KB