ftrace: Assign iter->hash to filter or notrace hashes on seq read
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Wed, 29 Mar 2017 18:55:49 +0000 (14:55 -0400)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 31 Mar 2017 22:00:36 +0000 (18:00 -0400)
commitc20489dad156dd9919ebd854bbace46dbd2576a3
tree40e4de91b732a352d9bd55617e63b14b286992cc
parentc1bc5919f6741cc4b0c83e3058b3d65d76c943e3
ftrace: Assign iter->hash to filter or notrace hashes on seq read

Instead of testing if the hash to use is the filter_hash or the notrace_hash
at each iteration, do the test at open, and set the iter->hash to point to
the corresponding filter or notrace hash. Then use that directly instead of
testing which hash needs to be used each iteration.

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