From: Ingo Molnar <mingo@elte.hu>
To: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>, Jason Baron <jbaron@redhat.com>,
rostedt@goodmis.org, linux-kernel@vger.kernel.org
Subject: Re: [RFC PATCH] dynamic debug - adding ring buffer storage support
Date: Tue, 5 Jan 2010 07:05:37 +0100 [thread overview]
Message-ID: <20100105060537.GA17310@elte.hu> (raw)
In-Reply-To: <20091230225011.GJ6322@nowhere>
* Frederic Weisbecker <fweisbec@gmail.com> wrote:
> On Mon, Dec 28, 2009 at 10:24:02AM +0100, Ingo Molnar wrote:
> > > that way you need to enable tracing as well... but thats ok I guess :)
> > >
> > > I was investigating trace events for this, but did not find a way
> > > to put variable length argument inside... and I overlooked the
> > > trace_printk, I'll look on it and see how it fits, thanks
> > >
> > > also having separate ring buffer makes the 'trace'/'trace_pipe' code
> > > really simple (suprissingly) compared to ftrace, and I thought
> > > on this place it could last for some time.. ;)
> >
> > I think what we want is a unified channel of events, of which printk (and
> > dynamic-printk) is one form. I.e. we should add printk events and
> > dynamic-printk events as well, which would show up in /debug/tracing/events/
> > in a standard ftrace event form and would be accessible to tooling that way.
> >
> > For printk a single event would be enough i suspect (we dont want a separate
> > event for every printk), and for dynamic-printk we want to map the existing
> > dyn-printk topologies into /debug/tracing/events, to preserve the distinctions
> > and controls available there.
> >
> > This way in the long run we'd have one unified facility.
> >
> > Ingo
>
>
> That said, I sometimes dream about one event per printk.
Yeah - but it's only really useful if we could properly encode/extract the
record format as well.
The one person's printk would become another person's programmable tracepoint.
> Too bad that would bloat the memory.
Should be optional of course, and then developers/distros pick instrumentation
landscape winners/losers. To most people memory overhead is not a big issue,
if the result is sufficiently useful.
Ingo
prev parent reply other threads:[~2010-01-05 6:05 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-22 11:32 [RFC PATCH] dynamic debug - adding ring buffer storage support Jiri Olsa
2009-12-22 12:06 ` Andi Kleen
2009-12-22 15:28 ` Jiri Olsa
2009-12-22 15:39 ` Jason Baron
2009-12-22 16:13 ` Jiri Olsa
2009-12-28 9:24 ` Ingo Molnar
2009-12-30 22:50 ` Frederic Weisbecker
2009-12-31 1:44 ` Steven Rostedt
2010-01-05 15:14 ` Jason Baron
2010-01-05 6:05 ` Ingo Molnar [this message]
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=20100105060537.GA17310@elte.hu \
--to=mingo@elte.hu \
--cc=fweisbec@gmail.com \
--cc=jbaron@redhat.com \
--cc=jolsa@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--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