]> 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)
commit0297596cb2849cf4dea1925c105edbb423234b07
tree51b2b123022cdf573f1621a37e12dd2d747311dc
parentf87cce885e3079ca9634ac531fd88f8767c778c1
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