Skip to content

Commit 30c94bb

Browse files
HuangShijie2024rostedt
authored andcommitted
tracepoint: Print the function symbol when tracepoint_debug is set
When tracepoint_debug is set, we may get the output in kernel log: [ 380.013843] Probe 0 : 00000000f0d68cda It is not readable, so change to print the function symbol. After this patch, the output may becomes: [ 55.225555] Probe 0 : perf_trace_sched_wakeup_template+0x0/0x20 Link: https://lore.kernel.org/20250307033858.4134-1-shijie@os.amperecomputing.com Signed-off-by: Huang Shijie <shijie@os.amperecomputing.com> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
1 parent 502d2e7 commit 30c94bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/tracepoint.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ static void debug_print_probes(struct tracepoint_func *funcs)
127127
return;
128128

129129
for (i = 0; funcs[i].func; i++)
130-
printk(KERN_DEBUG "Probe %d : %p\n", i, funcs[i].func);
130+
printk(KERN_DEBUG "Probe %d : %pSb\n", i, funcs[i].func);
131131
}
132132

133133
static struct tracepoint_func *

0 commit comments

Comments
 (0)