lkml.org 
[lkml]   [2009]   [Feb]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] tracing/function-graph-tracer: handle the leaf functions from trace_pipe


On Fri, 6 Feb 2009, Frederic Weisbecker wrote:

> When one cat on the trace file, the leaf functions are printed without brackets:
>
> function();
>
> whereas in the trace_pipe file we'll see the following:
>
> function() {
> }
>
> This is because the ring_buffer handling is not the same between those two files.
> On the trace file, when an entry is printed, the iterator advanced and then we can
> check the next entry.
>
> There is no iterator with trace_pipe, the current entry to print has been peeked
> and not consumed. So checking the next entry will still return the current one while
> we don't consume it.
>
> This patch introduces a new value for the output callbacks to ask the tracing
> core to not consume the current entry after printing it.
> We need it because we will have to consume the current entry ourself to check the next one.
>
> Now the trace_pipe is able to handle well the leaf functions.
>
> Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>

Acked-by: Steven Rostedt <srostedt@redhat.com>

Thanks Frederic,

-- Steve



\
 
 \ /
  Last update: 2009-02-06 19:03    [W:0.038 / U:0.164 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site