diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-11-24 21:52:17 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-11-24 21:52:17 -0500 |
commit | cb5d3f606bceec82f958fd23f84ae87923e2384e (patch) | |
tree | 807880de8d6bbeba624b3b8911bd80c38944fc44 /fs/bcachefs/trace.h | |
parent | 33fd11bd17115ef6770c251413ca15bce42b1196 (diff) |
bcachefs: Add rebalance tracepoint WIPdurability
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/trace.h')
-rw-r--r-- | fs/bcachefs/trace.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/fs/bcachefs/trace.h b/fs/bcachefs/trace.h index 7b24e7fe3b53..d4b7679d27c6 100644 --- a/fs/bcachefs/trace.h +++ b/fs/bcachefs/trace.h @@ -1366,6 +1366,23 @@ TRACE_EVENT(write_buffer_flush_slowpath, TP_printk("%zu/%zu", __entry->slowpath, __entry->total) ); +/* what are we trying to do and why? */ +TRACE_EVENT(rebalance_extent, + TP_PROTO(struct bch_fs *c), + TP_ARGS(c), + + TP_STRUCT__entry( + __field(dev_t, dev ) + ), + + TP_fast_assign( + __entry->dev = c->dev; + ), + + TP_printk("%d,%d", + MAJOR(__entry->dev), MINOR(__entry->dev)) +); + #endif /* _TRACE_BCACHEFS_H */ /* This part must be outside protection */ |