From: Zhaolei Date: Wed, 25 Mar 2009 04:06:05 +0000 (+0800) Subject: ftrace: Using FTRACE_WARN_ON() to check "freed record" in ftrace_release() X-Git-Tag: v2.6.30-rc1~2^2~13^3~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a4efa42450762cbfa5c5712aa4cc9f06924c9fd;p=pandora-kernel.git 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 Signed-off-by: Zhao Lei Signed-off-by: Steven Rostedt --- Reading git-diff-tree failed