diff options
Diffstat (limited to 'include/trace/events/bcache.h')
-rw-r--r-- | include/trace/events/bcache.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/include/trace/events/bcache.h b/include/trace/events/bcache.h index c9952b36fcea..5ebda976ea93 100644 --- a/include/trace/events/bcache.h +++ b/include/trace/events/bcache.h | |||
@@ -305,6 +305,39 @@ DEFINE_EVENT(bkey, bcache_gc_copy_collision, | |||
305 | TP_ARGS(k) | 305 | TP_ARGS(k) |
306 | ); | 306 | ); |
307 | 307 | ||
308 | TRACE_EVENT(bcache_btree_insert_key, | ||
309 | TP_PROTO(struct btree *b, struct bkey *k, unsigned op, unsigned status), | ||
310 | TP_ARGS(b, k, op, status), | ||
311 | |||
312 | TP_STRUCT__entry( | ||
313 | __field(u64, btree_node ) | ||
314 | __field(u32, btree_level ) | ||
315 | __field(u32, inode ) | ||
316 | __field(u64, offset ) | ||
317 | __field(u32, size ) | ||
318 | __field(u8, dirty ) | ||
319 | __field(u8, op ) | ||
320 | __field(u8, status ) | ||
321 | ), | ||
322 | |||
323 | TP_fast_assign( | ||
324 | __entry->btree_node = PTR_BUCKET_NR(b->c, &b->key, 0); | ||
325 | __entry->btree_level = b->level; | ||
326 | __entry->inode = KEY_INODE(k); | ||
327 | __entry->offset = KEY_OFFSET(k); | ||
328 | __entry->size = KEY_SIZE(k); | ||
329 | __entry->dirty = KEY_DIRTY(k); | ||
330 | __entry->op = op; | ||
331 | __entry->status = status; | ||
332 | ), | ||
333 | |||
334 | TP_printk("%u for %u at %llu(%u): %u:%llu len %u dirty %u", | ||
335 | __entry->status, __entry->op, | ||
336 | __entry->btree_node, __entry->btree_level, | ||
337 | __entry->inode, __entry->offset, | ||
338 | __entry->size, __entry->dirty) | ||
339 | ); | ||
340 | |||
308 | DECLARE_EVENT_CLASS(btree_split, | 341 | DECLARE_EVENT_CLASS(btree_split, |
309 | TP_PROTO(struct btree *b, unsigned keys), | 342 | TP_PROTO(struct btree *b, unsigned keys), |
310 | TP_ARGS(b, keys), | 343 | TP_ARGS(b, keys), |