ftrace: Convert graph filter to use hash tables
authorNamhyung Kim <namhyung@kernel.org>
Fri, 20 Jan 2017 02:44:47 +0000 (11:44 +0900)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 20 Jan 2017 19:50:58 +0000 (14:50 -0500)
commitb9b0c831bed2682c2e3e9f5420fb6985549ef020
tree51b2b123022cdf573f1621a37e12dd2d747311dc
parent4046bf023b0647d09704a32d9fe8aecbcee3e4c3
ftrace: Convert graph filter to use hash tables

Use ftrace_hash instead of a static array of a fixed size.  This is
useful when a graph filter pattern matches to a large number of
functions.  Now hash lookup is done with preemption disabled to protect
from the hash being changed/freed.

Link: http://lkml.kernel.org/r/20170120024447.26097-3-namhyung@kernel.org
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/ftrace.c
kernel/trace/trace.h