public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: David Wilder <dwilder@us.ibm.com>
To: Christoph Hellwig <hch@infradead.org>,
	David Wilder <dwilder@us.ibm.com>,
	linux-kernel@vger.kernel.org, akpm@linux-foundation.org
Subject: Re: [Patch 1/2] Trace code and documentation (resend)
Date: Mon, 24 Sep 2007 09:32:05 -0700	[thread overview]
Message-ID: <46F7E685.4020609@us.ibm.com> (raw)
In-Reply-To: <20070924154114.GA25368@infradead.org>

Christoph Hellwig wrote:
> On Mon, Sep 24, 2007 at 08:38:34AM -0700, David Wilder wrote:
>>> NACK, don't put code into Documentation/.  Put it into kernel as it's
>>> actually useful kernel code.  
>> Are you suggesting moving the example code into kernel? Or complaining 
>> about example code in /Documentation?
> 
> Both.  example code should be integrated with the build system so it
> gets built.

I agree, but I have not seen this done before, can you point me at an 
example of how to structure this?

> 
>> And add clone,exec and exit while you're at it.
>>
>> Hu?  A syscall tracer sounds like a nice idea but that is not what I am 
>> trying to accomplish.  I will let Systemtap handle that.
> 
> Systemtap doesn't help anyone as it's not in the tree.  I haven't even
> asked you to provide a full system call tracing modulem but provide at
> least one that's useful for a certain use-case (looking at processes)
> instead of almost useless code.
> 

I don't have a problem adding additional trace points to the example 
code.  However, anyone trying to use the code for some real purpose will 
want to tweak the code based on their needs, at a minimum to select what 
data to trace.  I don't think we gain much by adding more to the example 
other than to make it more complicated.  I am strong believer in keeping 
example code as simple as possible.

If you are suggesting adding a separate feature for process tracing (not 
just an example) that is a good idea also.  But is should be a separate 
patch, not part of the trace patch.

      parent reply	other threads:[~2007-09-24 16:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-22  4:23 [Patch 1/2] Trace code and documentation (resend) David J. Wilder
2007-09-22  9:35 ` Christoph Hellwig
2007-09-24 15:38   ` David Wilder
2007-09-24 15:41     ` Christoph Hellwig
2007-09-24 16:13       ` Randy Dunlap
2007-09-24 16:32       ` David Wilder [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=46F7E685.4020609@us.ibm.com \
    --to=dwilder@us.ibm.com \
    --cc=akpm@linux-foundation.org \
    --cc=hch@infradead.org \
    --cc=linux-kernel@vger.kernel.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