Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux: Kernel

[PATCH] add block IO documentation to tracepoint docbook

 

 

Linux kernel RSS feed   Index | Next | Previous | View Threaded


wcohen at redhat

Jul 1, 2009, 12:53 PM

Post #1 of 6 (161 views)
Permalink
[PATCH] add block IO documentation to tracepoint docbook

The following patch adds block IO tracepoint documentation to the tracepoint
docbook.

Signed-off-by: William Cohen <wcohen [at] xxxxxxxxx>
Attachments: blk_trace_doc3.patch (9.42 KB)


randy.dunlap at oracle

Jul 1, 2009, 3:02 PM

Post #2 of 6 (160 views)
Permalink
Re: [PATCH] add block IO documentation to tracepoint docbook [In reply to]

On Wed, 01 Jul 2009 15:53:49 -0400 William Cohen wrote:

> The following patch adds block IO tracepoint documentation to the tracepoint
> docbook.
>
> Signed-off-by: William Cohen <wcohen [at] xxxxxxxxx>

You probably need to cc: someone to merge this unless you already have
that worked out...

and the S-O-B: needs a real email address in it.


---
~Randy
LPC 2009, Sept. 23-25, Portland, Oregon
http://linuxplumbersconf.org/2009/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo [at] vger
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/


lizf at cn

Jul 1, 2009, 11:30 PM

Post #3 of 6 (149 views)
Permalink
Re: [PATCH] add block IO documentation to tracepoint docbook [In reply to]

More CCed

William Cohen wrote:
> The following patch adds block IO tracepoint documentation to the tracepoint
> docbook.
>
> Signed-off-by: William Cohen <wcohen [at] xxxxxxxxx>

Nice, thanks!

Acked-by: Li Zefan <lizf [at] cn>

> +/**
> + * block_rq_abort - Abort Block Operation Request

Is it necessary to uppercase the first letter of every word?

> + * @q: queue containing the block operation request
> + * @rq: block IO operation request
> + *
> + * Called immediately after pending block IO operation request @rq in
> + * queue @q is aborted. The fields in the operation request @rq
> + * can be examined to determine which device and sectors the pending
> + * operation would access.
> + */
> TRACE_EVENT(block_rq_abort,
>
> TP_PROTO(struct request_queue *q, struct request *rq),


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo [at] vger
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/


hch at infradead

Jul 2, 2009, 3:01 AM

Post #4 of 6 (146 views)
Permalink
Re: [PATCH] add block IO documentation to tracepoint docbook [In reply to]

On Wed, Jul 01, 2009 at 03:53:49PM -0400, William Cohen wrote:
> +/**
> + * block_rq_abort - Abort Block Operation Request
> + * @q: queue containing the block operation request
> + * @rq: block IO operation request
> + *
> + * Called immediately after pending block IO operation request @rq in
> + * queue @q is aborted. The fields in the operation request @rq
> + * can be examined to determine which device and sectors the pending
> + * operation would access.
> + */
> TRACE_EVENT(block_rq_abort,

Um, what's the point? These are not function, but rather trace points.
The paramters don't actually get exported in the trace files, but the
printk ring buffer format and the format string do. So please document
the formats, and if possible make sure this documentation actually
appears in debugfs in the trace subdirectory so people get it very easily.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo [at] vger
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/


wcohen at redhat

Jul 7, 2009, 8:13 PM

Post #5 of 6 (133 views)
Permalink
Re: [PATCH] add block IO documentation to tracepoint docbook [In reply to]

Christoph Hellwig wrote:
> On Wed, Jul 01, 2009 at 03:53:49PM -0400, William Cohen wrote:
>> +/**
>> + * block_rq_abort - Abort Block Operation Request
>> + * @q: queue containing the block operation request
>> + * @rq: block IO operation request
>> + *
>> + * Called immediately after pending block IO operation request @rq in
>> + * queue @q is aborted. The fields in the operation request @rq
>> + * can be examined to determine which device and sectors the pending
>> + * operation would access.
>> + */
>> TRACE_EVENT(block_rq_abort,
>
> Um, what's the point? These are not function, but rather trace points.
> The paramters don't actually get exported in the trace files, but the
> printk ring buffer format and the format string do. So please document
> the formats, and if possible make sure this documentation actually
> appears in debugfs in the trace subdirectory so people get it very easily.
>


There is already documentation for the irq tracepoints (irq_handler_entry,
irq_handler_exit, softirq_entry, and softirq_exit) in
include/trace/events/irq.h. This was added around the end of April 2009. Threads
discussing those patches:

http://lkml.indiana.edu/hypermail/linux/kernel/0904.3/02647.html
http://lkml.indiana.edu/hypermail/linux/kernel/0904.3/02650.html
http://lkml.indiana.edu/hypermail/linux/kernel/0904.3/02648.html
http://lkml.indiana.edu/hypermail/linux/kernel/0904.3/02651.html

In those previous threads there was no discussion about documenting the printk
ring buffer. The comments in include/linux/tracepoint.h states that functions
with those parameters are generated for the tracespoints. ftrace appears to be
built on top of that mechanism.

It would be nice to have something that describes the format of ftrace output
available in debugfs. However, there are other things that use the tracepoints
in addition to ftrace and the tracepoint comments are trying to describe what
exactly those events cause those tracepoints to occur. traces/log are useful,
but there are cases where people might prefer not to post-process a large log
file to debug a problem.

-Will
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo [at] vger
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/


wcohen at redhat

Jul 8, 2009, 5:46 AM

Post #6 of 6 (131 views)
Permalink
Re: [PATCH] add block IO documentation to tracepoint docbook [In reply to]

Li Zefan wrote:
> More CCed
>
> William Cohen wrote:
>> The following patch adds block IO tracepoint documentation to the tracepoint
>> docbook.
>>
>> Signed-off-by: William Cohen <wcohen [at] xxxxxxxxx>
>
> Nice, thanks!
>
> Acked-by: Li Zefan <lizf [at] cn>
>
>> +/**
>> + * block_rq_abort - Abort Block Operation Request
>
> Is it necessary to uppercase the first letter of every word?

I was assuming that it was a title. However, lower case would be okay.

-Will
>
>> + * @q: queue containing the block operation request
>> + * @rq: block IO operation request
>> + *
>> + * Called immediately after pending block IO operation request @rq in
>> + * queue @q is aborted. The fields in the operation request @rq
>> + * can be examined to determine which device and sectors the pending
>> + * operation would access.
>> + */
>> TRACE_EVENT(block_rq_abort,
>>
>> TP_PROTO(struct request_queue *q, struct request *rq),
>
>

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo [at] vger
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

Linux kernel RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.