[lkml]   [2012]   [Jan]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] block: add missing block_bio_complete() tracepoint
On Sun, Jan 29, 2012 at 06:41:33PM +0900, Namhyung Kim wrote:
> The block_bio_complete() TP has been missed so long, so that bio-based
> drivers haven't been able to trace its IO behavior. Add it.
> In some rare cases, such as loop_switch, @bio->bi_bdev can be NULL.
> Thus convert it to TRACE_EVENT_CONDITION() as Steven suggested.
> From now on, request-based drivers will also get BLK_TA_COMPLETEs for
> all bio's in requests. This needs to be handled in userland properly.
> Also remove external use of the TP in DM and unexport it.
> Signed-off-by: Namhyung Kim <>
> Cc: Tejun Heo <>
> Cc: Steven Rostedt <>
> Cc:

I like the smiplicity change but do we know how we can filter this out
from userland? Also, what's the reason not to do it from blktrace.c?
What would be the downside of doing that?



 \ /
  Last update: 2012-01-29 20:27    [W:0.110 / U:1.724 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site