summaryrefslogtreecommitdiff
path: root/include/trace
diff options
context:
space:
mode:
authorGuoju Fang <fangguoju@gmail.com>2020-01-24 01:01:38 +0800
committerJens Axboe <axboe@kernel.dk>2020-01-23 11:40:02 -0700
commitd44330b7f13e7f243f7d0e0426741219708ff7de (patch)
treee4f55739b8d9a345aaeb23b92902c814f45a8104 /include/trace
parent2aa8c529387c25606fdc1484154b92f8bfbc5746 (diff)
bcache: print written and keys in trace_bcache_btree_write
It's useful to dump written block and keys on btree write, this patch add them into trace_bcache_btree_write. Signed-off-by: Guoju Fang <fangguoju@gmail.com> Signed-off-by: Coly Li <colyli@suse.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/trace')
-rw-r--r--include/trace/events/bcache.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/trace/events/bcache.h b/include/trace/events/bcache.h
index e4526f85c19d..0bddea663b3b 100644
--- a/include/trace/events/bcache.h
+++ b/include/trace/events/bcache.h
@@ -275,7 +275,8 @@ TRACE_EVENT(bcache_btree_write,
__entry->keys = b->keys.set[b->keys.nsets].data->keys;
),
- TP_printk("bucket %zu", __entry->bucket)
+ TP_printk("bucket %zu written block %u + %u",
+ __entry->bucket, __entry->block, __entry->keys)
);
DEFINE_EVENT(btree_node, bcache_btree_node_alloc,