mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "K.Prasad" <prasad@linux.vnet.ibm.com>
To: "Andrew Morton" <akpm@linux-foundation.org>, zanussi@comcast.net
Cc: prasad@linux.vnet.ibm.com, linux-kernel@vger.kernel.org,
	dwilder@us.ibm.com, hch@infradead.org
Subject: Re: [RFC Patch 1/1] trace_printk and trace_dump interface - v2
Date: Fri, 23 May 2008 10:07:50 +0530	[thread overview]
Message-ID: <op.ubla5cik03j166@prasadkr_t60p.in.ibm.com> (raw)
In-Reply-To: <20080520131225.46175b3b.akpm@linux-foundation.org>

On Tue, May 20, 2008 at 01:12:25PM -0700, Andrew Morton wrote:
> On Wed, 21 May 2008 01:23:09 +0530
> "K.Prasad" <prasad@linux.vnet.ibm.com> wrote:
>>> The name 'trace' (previously GTSC), I gather that it was the chosen
> after
> > much deliberation (http://tinyurl.com/6odoh4), however I'm open to the
> > idea of changing the name (say dbg_printk/dbg_dump?).
> >> Kindly let me know of your suggestions for this, and I will change  
> them
> > during the next version.
> Well I was just putting it out there for consideration.  Yes, I think
> the whole idea of consuming the "trace_*" namespace in this patchset
> was ill-advised.
Since "trace_*" uses relay infrastructure underneath, I am thinking, if it
would be acceptable to rename them to "relay_*", say relay_printk() and
relay_dump(). I would be glad to hear from the 'relay' folks about this
thought.

> Also, I don't know how to move forward with the whole feature - I
> haven't seen a lot of interest from others and I haven't seen much
> discussion of how this feature differs from all the other tracing
> things which have been floating about.
More than a tracing mechanism, this is a tool that aids in tracing, by
providing a powerful function that directs its output onto the debugfs
mount path which could be later harnessed by user-space applications
too. A potential in-kernel user could be the 'marker' handlers which
more often would be interested in logging data.

> And even if the proposed patches presently offer unique and useful
> features, will one of the other tracing implementations (eg: ltt) later
> grow to close that gap?
> I'm also a bit dubious about the whole thing based on past experience
> with kernel-developer-only in-kernel tools.  People just don't use them
> much.  One example: fault injection.

Among the other enhancements that we were contemplating for this
mechanism, to make it more powerful and unique, is the ability to
a)Define callback functions typically invoked everytime before accessing/
   printing each variable (which may say, acquire a lock or prefix a
   timestamp) by adding fields to the trace_printk_data structure.
b)Provide sequencing information for the output, along with ability to
   prefix the output with essential data such as PID, Timestamp, CPUID,
   etc.

Thanks for letting us know your thoughts on this.

--K.Prasad

  reply	other threads:[~2008-05-23  4:38 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-16 17:01 [Patch 0/1] Enhancements to 'trace' infrastructure " K.Prasad
2008-05-16 17:04 ` [RFC Patch 1/1] trace_printk and trace_dump interface " K.Prasad
2008-05-17  2:22   ` K.Prasad
2008-05-19 23:21     ` Andrew Morton
2008-05-20 19:53       ` K.Prasad
2008-05-20 20:12         ` Andrew Morton
2008-05-23  4:37           ` K.Prasad [this message]
2008-05-28 18:16             ` K.Prasad
2008-05-28 18:37               ` [RFC Patch 0/1] Merging Documentation/trace.txt with Documentation/filesystems/relay.txt K.Prasad
2008-05-28 18:48               ` [RFC Patch 2/2] Renaming lib/trace.[ch] files to kernel/relay_debugfs.[ch] and enhancements K.Prasad
2008-05-19 20:02   ` [RFC Patch 1/1] trace_printk and trace_dump interface - v2 David Wilder

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=op.ubla5cik03j166@prasadkr_t60p.in.ibm.com \
    --to=prasad@linux.vnet.ibm.com \
    --cc=akpm@linux-foundation.org \
    --cc=dwilder@us.ibm.com \
    --cc=hch@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=zanussi@comcast.net \
    /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®