From: Andi Kleen <andi@firstfloor.org>
To: "David J. Wilder" <dwilder@us.ibm.com>
Cc: linux-kernel@vger.kernel.org, akpm@linux-foundation.org,
randy.dunlap@oracle.com, hch@infradead.org,
systemtap@sources.redhat.com
Subject: Re: [patch 1/3] Trace code and documentation
Date: 04 Oct 2007 11:24:26 +0200 [thread overview]
Message-ID: <p73odff5j1x.fsf@bingen.suse.de> (raw)
In-Reply-To: <1191342800.31351.9.camel@lc4eb748232119.ibm.com>
"David J. Wilder" <dwilder@us.ibm.com> writes:
> @@ -0,0 +1,160 @@
> +Trace Setup and Control
> +=======================
> +In the kernel, the trace interface provides a simple mechanism for
> +starting and managing data channels (traces) to user space.
Wasn't relayfs supposed to do that already? Why do you need another
wrapper around it?
Is this also really still faster than a printk below log level
(without console driver overhead). If not then why not just
use printk?
Especially your example is worrying. It essentially defines a new
printk. I think there is a case for a fast logging subsystem because
printk() is admittedly a little slow [somewhat slow below log level
and incredible slow above it]
But fast means binary items (not sprintf), no global locks, not
multiple layers, per CPU etc.. But your example and this patch has all
this and I bet it is not very fast.
Is the result (e.g. the trace example module) still any faster
than printk below log level? If not then why bother.
Adding another slow logger would be just a waste of time imho.
It just means that everybody who needs a fast logger just need
to reimplement their own anyways. And the people who can tolerate
slow loggers are probably already adequately served by
printk. Also there is already direct relayfs.
-Andi
next prev parent reply other threads:[~2007-10-04 9:37 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-02 16:33 [patch 1/3] Trace code and documentation David J. Wilder
2007-10-02 17:05 ` Randy Dunlap
2007-10-04 9:24 ` Andi Kleen [this message]
2007-10-04 19:19 ` David Wilder
2007-10-04 21:19 ` Andi Kleen
2007-10-04 23:12 ` David Wilder
-- strict thread matches above, loose matches on Subject: below --
2007-10-02 18:55 David J. Wilder
2007-09-26 18:22 David J. Wilder
2007-09-26 18:37 ` Randy Dunlap
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=p73odff5j1x.fsf@bingen.suse.de \
--to=andi@firstfloor.org \
--cc=akpm@linux-foundation.org \
--cc=dwilder@us.ibm.com \
--cc=hch@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=randy.dunlap@oracle.com \
--cc=systemtap@sources.redhat.com \
/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