mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
ftrace: Add trampolines to enabled_functions debug file
The enabled_functions is used to help debug the dynamic function tracing. Adding what trampolines are attached to files is useful for debugging. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
This commit is contained in:
parent
79922b8009
commit
9674b2fada
1 changed files with 14 additions and 2 deletions
|
@ -2903,10 +2903,22 @@ static int t_show(struct seq_file *m, void *v)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
seq_printf(m, "%ps", (void *)rec->ip);
|
seq_printf(m, "%ps", (void *)rec->ip);
|
||||||
if (iter->flags & FTRACE_ITER_ENABLED)
|
if (iter->flags & FTRACE_ITER_ENABLED) {
|
||||||
seq_printf(m, " (%ld)%s",
|
seq_printf(m, " (%ld)%s",
|
||||||
ftrace_rec_count(rec),
|
ftrace_rec_count(rec),
|
||||||
rec->flags & FTRACE_FL_REGS ? " R" : "");
|
rec->flags & FTRACE_FL_REGS ? " R" : " ");
|
||||||
|
if (rec->flags & FTRACE_FL_TRAMP_EN) {
|
||||||
|
struct ftrace_ops *ops;
|
||||||
|
|
||||||
|
ops = ftrace_find_tramp_ops_curr(rec);
|
||||||
|
if (ops && ops->trampoline)
|
||||||
|
seq_printf(m, "\ttramp: %pS",
|
||||||
|
(void *)ops->trampoline);
|
||||||
|
else
|
||||||
|
seq_printf(m, "\ttramp: ERROR!");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
seq_printf(m, "\n");
|
seq_printf(m, "\n");
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue