]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ftrace: Add warning if tramp hash does not match nr_trampolines
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Thu, 24 Jul 2014 15:26:11 +0000 (11:26 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Thu, 24 Jul 2014 15:26:11 +0000 (11:26 -0400)
commitdc6f03f26f570104a2bb03f9d1deb588026d7c75
treed2834b5e90000dee36132694395e0911e6c3f16e
parent2a0343baa4cc0d4e618898f8bdae8136bbb6e1b2
ftrace: Add warning if tramp hash does not match nr_trampolines

After adding all the records to the tramp_hash, add a check that makes
sure that the number of records added matches the number of records
expected to match and do a WARN_ON and disable ftrace if they do
not match.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/ftrace.c