tracing: Do not reset *pos in set_ftrace_filter
authorSteven Rostedt <srostedt@redhat.com>
Thu, 9 Sep 2010 12:43:22 +0000 (08:43 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 14 Sep 2010 15:42:29 +0000 (11:42 -0400)
commit2bccfffd1538f3523847583213567e2f7ce00926
tree7062e0bfc46f66efa2ec3231a6c718a901a0a80c
parentbfa88ea7ee9e6b4fd673e45a8cc0a8e0b7ef4761
tracing: Do not reset *pos in set_ftrace_filter

After the filtered functions are read, the probed functions are read
from the hash in set_ftrace_filter. When the hashed probed functions
are read, the *pos passed in is reset. Instead of modifying the pos
given to the read function, just record the pos where the filtered
functions ended and subtract from that.

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