tracing: Keep track of set_ftrace_filter position and allow lseek again
authorSteven Rostedt <srostedt@redhat.com>
Fri, 10 Sep 2010 15:47:43 +0000 (11:47 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 14 Sep 2010 18:46:01 +0000 (14:46 -0400)
commit98c4fd046f07156ca6055677e8f03d4280be16c1
treebf461479713dbbaf79b0bf1a50a3ba0f30a2f17c
parent4aeb69672d011fac5c8df671f3ca89f7987c104e
tracing: Keep track of set_ftrace_filter position and allow lseek again

This patch keeps track of the index within the elements of
set_ftrace_filter and if the position goes backwards, it nicely
resets and starts from the beginning again.

This allows for lseek and pread to work properly now.

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