From: Ingo Molnar <mingo@elte.hu>
To: Theodore Tso <tytso@mit.edu>,
Steven Rostedt <rostedt@goodmis.org>,
Linux Kernel Developers List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH, RFC 0/3] Improvements to the tracing documentation
Date: Mon, 13 Apr 2009 23:31:24 +0200 [thread overview]
Message-ID: <20090413213124.GB8514@elte.hu> (raw)
In-Reply-To: <20090412172344.GC10547@mit.edu>
* Theodore Tso <tytso@mit.edu> wrote:
> On Sun, Apr 12, 2009 at 03:01:05PM +0200, Ingo Molnar wrote:
> > Btw., you mention ext4 and jbd2 new-style tracepoints in the text.
> > Does this mean you already have them coded up (i havent seen any
> > patch posting from you), just that you cannot push it upstream yet
> > because ext4 can be a module? We'll have modular new-style
> > tracepoints soon.
>
> Yes, I coded them up recently. I wanted to do some performance
> measurements, and being able to interleave the ext4 tracepoint
> logs with the block I/o tracer was definitely handy. Also, not
> having to fight with balky userspace tools (whether it is
> out-of-tree kernel support code, or random graphical userspace
> libraries when I could really care less about a GUI interface) was
> definitely a big win.
Cool. [ And i guess you'll like the per tracepoint filter
expressions too :-) ]
> I only had two real problems. One is that the block I/O tracer
> only traces "real" devices, and not device mapper devices --- I
> could user the blktrace userspace tool, but then the results
> wouldn't be properly interleaved with the ext4 tracepoint logs.
Ok - i forwarded your mail to Li Zefan and he already posted a draft
patch to attempt to solve this. "Cannot trace the primary block
device my filesystem is using" is IMO a showstopper in your tracing
work-flow critical path, so it needs some sort of quick solution.
> The second is that ext4 has its localized header files in
> fs/ext4/*.h, and not in include/linux/*.h, and that was
> problematic given that the trace code snippets in
> include/trace/ext4_event_types.h needed access to some internal
> ext4 data structures. I ultimately solved the latter by creating
> a include/linux/ext4_tracing_types.h, but I suspect this problem
> will go away when you have modular new-style tracepoints --- if
> not, I'd appreciately greatly if folks could consider whether or
> not this support could be added.
I'd expect these problems to go away with Steve's module support and
TRACE_EVENT()-simplification/cleanup series, yes.
> I'll attach the patches as replies to this mail thread so you can
> see what I've done. Any comments of anything I might have done
> "wrong" would be greatly appreciated.
I dont think you can do anything "wrong" at this stage - the event
tracer is still fresh out of the oven. It was shaped based on the
needs of a few select core kernel non-modular subsystems (scheduler,
irqs, etc.). Feedback from people like you with non-trivial
independent tracing bits (you have a handful of useful-looking
markers in ext4) is very much needed to shape and complete it.
So we'll sure try to address all your feedback and it would be
extremely useful if you labeled all the steps that you found
unintuitive, unnecessary, over-complicated or redundant or painful
in any way. Please dont hold any of your punches ;-)
Ingo
next prev parent reply other threads:[~2009-04-13 21:31 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-11 19:51 Theodore Ts'o
2009-04-11 19:51 ` [PATCH, RFC 1/3] tracing: Update documentation references in kernel/trace/Kconfig Theodore Ts'o
2009-04-11 19:51 ` [PATCH, RFC 2/3] tracing: Document the event tracing system Theodore Ts'o
2009-04-11 19:51 ` [PATCH, RFC 3/3] tracing: Add documentation for the power tracer Theodore Ts'o
2009-04-11 20:44 ` Joe Perches
2009-04-11 21:48 ` Arjan van de Ven
2009-04-12 9:28 ` [tip:tracing/core] " Theodore Ts'o
2009-04-12 13:00 ` Theodore Ts'o
2009-04-12 9:27 ` [tip:tracing/core] tracing: Document the event tracing system Theodore Ts'o
2009-04-12 9:40 ` Cyrill Gorcunov
2009-04-12 13:00 ` Theodore Ts'o
2009-04-12 9:25 ` [PATCH, RFC 0/3] Improvements to the tracing documentation Ingo Molnar
2009-04-12 12:15 ` Theodore Tso
2009-04-12 13:01 ` Ingo Molnar
2009-04-12 17:23 ` Theodore Tso
2009-04-12 17:32 ` [PATCH 1/2] jbd2: Convert instrumentation from markers to tracepoints Theodore Ts'o
2009-04-12 17:32 ` [PATCH 2/2] ext4: " Theodore Ts'o
2009-04-13 21:37 ` Ingo Molnar
2009-04-13 21:31 ` Ingo Molnar [this message]
2009-04-13 22:35 ` [PATCH, RFC 0/3] Improvements to the tracing documentation Theodore Tso
2009-04-13 22:55 ` Ingo Molnar
2009-04-13 23:39 ` Theodore Tso
2009-04-13 23:47 ` Ingo Molnar
2009-04-14 5:22 ` Tom Zanussi
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=20090413213124.GB8514@elte.hu \
--to=mingo@elte.hu \
--cc=linux-kernel@vger.kernel.org \
--cc=rostedt@goodmis.org \
--cc=tytso@mit.edu \
/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
all inboxes | Powered by JetHome®