diff options
author | Zhaolei <zhaolei@cn.fujitsu.com> | 2009-03-25 05:06:05 +0100 |
---|---|---|
committer | Steven Rostedt <srostedt@redhat.com> | 2009-03-25 22:45:36 +0100 |
commit | 2a4efa42450762cbfa5c5712aa4cc9f06924c9fd (patch) | |
tree | 70af0a079541af99dec634fc89ce317dee2f1a33 /kernel/trace/trace_output.h | |
parent | init,cpuset: fix initialize order (diff) | |
download | linux-2a4efa42450762cbfa5c5712aa4cc9f06924c9fd.tar.xz linux-2a4efa42450762cbfa5c5712aa4cc9f06924c9fd.zip |
ftrace: Using FTRACE_WARN_ON() to check "freed record" in ftrace_release()
"Because when we call ftrace_free_rec we change the rec->ip to point to the
next record in the chain. Something is very wrong if rec->ip >= s &&
rec->ip < e and the record is already free."
"Note, use FTRACE_WARN_ON() macro. This way it shuts down ftrace if it is
hit and helps to avoid further damage later."
-- Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Diffstat (limited to 'kernel/trace/trace_output.h')
0 files changed, 0 insertions, 0 deletions