From: Frederic Weisbecker <fweisbec@gmail.com>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: Ingo Molnar <mingo@elte.hu>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Pekka Enberg <penberg@cs.helsinki.fi>
Subject: Re: [PATCH 2/2] tracing/branch-tracer: adapt to the stat tracing API
Date: Thu, 8 Jan 2009 10:05:02 +0100 [thread overview]
Message-ID: <20090108090501.GB6560@nowhere> (raw)
In-Reply-To: <alpine.DEB.1.10.0901072344260.2429@gandalf.stny.rr.com>
On Wed, Jan 07, 2009 at 11:49:49PM -0500, Steven Rostedt wrote:
>
>
> On Sat, 27 Dec 2008, Frederic Weisbecker wrote:
>
> > This patch adapts the branch tracer to the tracing API.
> > This is not really for inclusion but more likely a proof of concept because
> > the branch tracer implements two "stat tracing" that were split in two files.
> >
> > So I added an option to the branch tracer: stat_all_branch.
> > If it is set, then trace_stat will output all of the branches entries stats.
> > Otherwise, it will print the annotated branches.
> >
> > Its is a kind of quick trick, waiting for a better solution.
> > By default, the annotated branches stat are sorted by incorrect branch prediction
> > percentage.
> >
>
> OK, I have not had a chance to look at this code since it was sent when I
> was on Holiday. But I do not think that the only way to see the output of
> a histogram is to set it in the current_tracer. If I have the branch
> tracer on, I would have to run it to see the output of the histogram.
>
> The histogram starts recording at boot up. Although the branch tracer is
> dependent on the histograms, the histogram is not dependent on the branch
> tracer. This code is making the histogram dependent on the trace. It took
> me a while to figure out how to see my histogram.
>
> With the new patches (after the compile issue is solved) we could have a
> register_histogram or something that would put the file in the trace_stats
> directory. This would separate the need of coupling the tracers with the
> histogram even when they are not coupled.
>
> -- Steve
You're right, that's a better and more scalable idea.
Should I do it on top of the current patches (when the compile is fixed?).
That will be more easy...
Thanks.
next prev parent reply other threads:[~2009-01-08 9:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-27 22:25 [PATCH 2/2] tracing/branch-tracer: adapt to the stat tracing API Frederic Weisbecker
2009-01-08 4:49 ` Steven Rostedt
2009-01-08 9:05 ` Frederic Weisbecker [this message]
2009-01-08 14:25 ` Steven Rostedt
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=20090108090501.GB6560@nowhere \
--to=fweisbec@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=penberg@cs.helsinki.fi \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox