]> git.baikalelectronics.ru Git - kernel.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)
commit3fdf2fba2da8b3c577b17fe085596635534e0547
treee63fd02a143c57b5a786351e4f2643f2104e2346
parent029a894fd4b4bd703b0f9dd18c4c6b0f4317c9f1
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