]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcf5c188e481b2197015d0c5416dfcb0b3325d650
tree51b2b123022cdf573f1621a37e12dd2d747311dc
parent6e047c97efb79fc4f780ae062895ea7fdc779640
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