Skip to content

Commit

Permalink
bcache: print written and keys in trace_bcache_btree_write
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Guoju Fang authored and Jens Axboe committed Jan 23, 2020
1 parent 2aa8c52 commit d44330b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/trace/events/bcache.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d44330b

Please sign in to comment.