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)
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

Simple merge