|
@@ -206,15 +206,16 @@ TRACE_EVENT(block_bio_bounce,
|
|
|
* block_bio_complete - completed all work on the block operation
|
|
|
* @q: queue holding the block operation
|
|
|
* @bio: block operation completed
|
|
|
+ * @error: io error value
|
|
|
*
|
|
|
* This tracepoint indicates there is no further work to do on this
|
|
|
* block IO operation @bio.
|
|
|
*/
|
|
|
TRACE_EVENT(block_bio_complete,
|
|
|
|
|
|
- TP_PROTO(struct request_queue *q, struct bio *bio),
|
|
|
+ TP_PROTO(struct request_queue *q, struct bio *bio, int error),
|
|
|
|
|
|
- TP_ARGS(q, bio),
|
|
|
+ TP_ARGS(q, bio, error),
|
|
|
|
|
|
TP_STRUCT__entry(
|
|
|
__field( dev_t, dev )
|
|
@@ -228,6 +229,7 @@ TRACE_EVENT(block_bio_complete,
|
|
|
__entry->dev = bio->bi_bdev->bd_dev;
|
|
|
__entry->sector = bio->bi_sector;
|
|
|
__entry->nr_sector = bio->bi_size >> 9;
|
|
|
+ __entry->error = error;
|
|
|
blk_fill_rwbs(__entry->rwbs, bio->bi_rw, bio->bi_size);
|
|
|
),
|
|
|
|