]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
ftrace: add readpos to struct trace_seq; add trace_seq_to_user()
authorPekka Paalanen <pq@iki.fi>
Mon, 12 May 2008 19:21:02 +0000 (21:21 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 23 May 2008 20:02:13 +0000 (22:02 +0200)
commit6c6c27969a4c6024e6c8838829546c02aaddca18
tree95158673881e53373ec4e7d92ff0c0e0f34be30f
parent2bb6f8d6389cbfadd657e7dc069f6986abf35e4f
ftrace: add readpos to struct trace_seq; add trace_seq_to_user()

Refactor code from tracing_read_pipe() and create trace_seq_to_user().
Moved trace_seq_reset() call before iter->trace->read() call so that
when all leftover data is returned, trace_seq is reset automatically.

Signed-off-by: Pekka Paalanen <pq@iki.fi>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/trace/trace.c
kernel/trace/trace.h