]> bbs.cooldavid.org Git - net-next-2.6.git/commit
tracing: make trace pipe recognize latency format flag
authorSteven Rostedt <srostedt@redhat.com>
Mon, 1 Jun 2009 19:16:05 +0000 (15:16 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 2 Jun 2009 03:26:02 +0000 (23:26 -0400)
commit112f38a7e36e9d688b389507136bf3af3e6d159b
treee63fd02a143c57b5a786351e4f2643f2104e2346
parent1d080d6c3141623c92caaebe20e847cb99ccbb60
tracing: make trace pipe recognize latency format flag

The trace_pipe did not recognize the latency format flag and would produce
different output than the trace file. The problem was partly due that
the trace flags in the iterator was not set as well as the trace_pipe
zeros out part of the iterator (including the flags) to be able to use
the same routines as the trace file. trace_flags of the iterator should
not cause any problems when not zeroed out by for trace_pipe.

Reported-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
include/linux/ftrace_event.h
kernel/trace/trace.c