diff options
author | Steven Rostedt (Red Hat) <rostedt@goodmis.org> | 2015-12-01 12:24:45 -0500 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2015-12-23 14:27:17 -0500 |
commit | 030f4e1cb86f059185572fd1678a55b5e8ff0d08 (patch) | |
tree | 7cf4388e686c9f26fda061c0203f67d4dcb00c76 /kernel/trace/trace.h | |
parent | b8ec330a63eb39127f5cfcae5f8524e969ef9f94 (diff) | |
download | op-kernel-dev-030f4e1cb86f059185572fd1678a55b5e8ff0d08.zip op-kernel-dev-030f4e1cb86f059185572fd1678a55b5e8ff0d08.tar.gz |
ftrace: Fix output of enabled_functions for showing tramp
When showing all tramps registered to a ftrace record in the file
enabled_functions, it exits the loop with ops == NULL. But then it is
suppose to show the function on the ops->trampoline and
add_trampoline_func() is called with the given ops. But because ops is now
NULL (to exit the loop), it always shows the static trampoline instead of
the one that is really registered to the record.
The call to add_trampoline_func() that shows the trampoline for the given
ops needs to be called at every iteration.
Fixes: 39daa7b9e895 "ftrace: Show all tramps registered to a record on ftrace_bug()"
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace.h')
0 files changed, 0 insertions, 0 deletions