diff options
-rw-r--r-- | fs/bcachefs/rebalance.c | 2 | ||||
-rw-r--r-- | fs/bcachefs/trace.h | 17 |
2 files changed, 19 insertions, 0 deletions
diff --git a/fs/bcachefs/rebalance.c b/fs/bcachefs/rebalance.c index db2139c0545d..d29ef862bd81 100644 --- a/fs/bcachefs/rebalance.c +++ b/fs/bcachefs/rebalance.c @@ -171,6 +171,8 @@ static struct bkey_s_c next_rebalance_extent(struct btree_trans *trans, return bkey_s_c_null; } + trace_rebalance_extent(c); + return k; } 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 */ |