All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jiri Olsa <jolsa@redhat.com>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: linux-kernel@vger.kernel.org,
	Frederic Weisbecker <fweisbec@gmail.com>,
	Ingo Molnar <mingo@elte.hu>
Subject: Re: [PATCHv3 0/2] tracing: function graph output for preempt/irqs-off tracers
Date: Mon, 29 Mar 2010 13:17:01 +0200	[thread overview]
Message-ID: <20100329111701.GC1715@jolsa> (raw)
In-Reply-To: <1269615239.19685.78.camel@gandalf.stny.rr.com>

On Fri, Mar 26, 2010 at 10:53:59AM -0400, Steven Rostedt wrote:
> On Fri, 2010-03-26 at 13:32 +0100, Jiri Olsa wrote:

SNIP

> 
> Getting better, but I still have some issues ;-)
> 
> Without graph, header looks like this: (old way)
> 
> # tracer: irqsoff
> #
> # irqsoff latency trace v1.1.5 on 2.6.34-rc2
> # --------------------------------------------------------------------
> # latency: 326 us, #73/73, CPU#1 | (M:preempt VP:0, KP:0, SP:0 HP:0
> #P:4)
> #    -----------------
> #    | task: swapper-0 (uid:0 nice:0 policy:0 rt_prio:0)
> #    -----------------
> #  => started at: save_args
> #  => ended at:   __do_softirq
> #
> #
> #                  _------=> CPU#            
> #                 / _-----=> irqs-off        
> #                | / _----=> need-resched    
> #                || / _---=> hardirq/softirq 
> #                ||| / _--=> preempt-depth   
> #                |||| /_--=> lock-depth       
> #                |||||/     delay             
> #  cmd     pid   |||||| time  |   caller      
> #     \   /      ||||||   \   |   /           
>   <idle>-0       1d..1.    1us+: trace_hardirqs_off_thunk <-save_args
> 
> 
> Lots of good info.

right, I missed the print_trace_header call..

SNIP

>  # echo 0 > /debug/tracing/tracing_enabled
>  # echo 0 > /debug/tracing/option/display-graph
>  # cat /debug/tracing/trace
> 
> # tracer: irqsoff
> irqbalan-2672    0d..2.   55us+: Unknown type 13
> irqbalan-2672    0d.h2.   62us+: Unknown type 13

I forgot the max_tr buffer is actually the one displayed,
so it needs reset as well when the display-graph option
is switched on/off.


> 
> 
> I think you can still do the "event" part, without effecting the way the
> function graph outputs normally. I would not have given up on that
> method.  You don't need to worry about it processing other events,
> because when you register it to write as an event, it will only be
> called when a function graph event was found. It will not be processing
> other events. Only when the tracer itself overrides the default writing
> will it do so.

The events would be called only for TRACE_GRAPH_RET, TRACE_GRAPH_ENT entries and
not for others, thats right.

However it's the graph ouput code that outputs other events' text
within "/*" and "*/".

So using the event way, all other events would be printed as normal
events(standard lines not alligned) with the standard header...
not like comments, as they are in the function_graph tracer.

I thought it'd be good for graph output to stay the same in irqsoff
tracer as in function_graph tracer.. if that is not the concern
the event way would be probably nicer :)

I'm sending updated patchset with above 2 fixies right away,
I can do/resend the event way later if needed.

thanks,
jirka

  reply	other threads:[~2010-03-29 11:17 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-26 12:32 [PATCHv3 0/2] tracing: function graph output for preempt/irqs-off tracers Jiri Olsa
2010-03-26 12:32 ` [PATCHv3 1/2] tracing: graph output support for irqsoff tracer Jiri Olsa
2010-03-26 12:32 ` [PATCHv3 2/2] tracing: graph output support for preemptirqsoff/preemptoff tracers Jiri Olsa
2010-03-26 14:53 ` [PATCHv3 0/2] tracing: function graph output for preempt/irqs-off tracers Steven Rostedt
2010-03-29 11:17   ` Jiri Olsa [this message]
2010-03-29 15:09     ` Steven Rostedt
2010-03-29 15:21       ` Jiri Olsa
2010-03-29 15:41         ` Steven Rostedt
2010-03-31  7:37           ` Jiri Olsa
2010-03-31  8:01             ` Frederic Weisbecker
2010-03-31 10:36               ` Jiri Olsa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100329111701.GC1715@jolsa \
    --to=jolsa@redhat.com \
    --cc=fweisbec@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=rostedt@goodmis.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.