diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-02-20 22:41:03 +0100 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 23:09:54 +0200 |
commit | e151580d3072e7326732edcaf2a77ea423c695f5 (patch) | |
tree | ef9e75a7c1e7e3b1fe7d71eecde8c271bbcc5de3 /fs/bcachefs/trace.h | |
parent | bcachefs: __bch2_btree_insert uses BTREE_INSERT_CACHED (diff) | |
download | linux-e151580d3072e7326732edcaf2a77ea423c695f5.tar.xz linux-e151580d3072e7326732edcaf2a77ea423c695f5.zip |
bcachefs: Add tracepoint & counter for btree split race
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/trace.h')
-rw-r--r-- | fs/bcachefs/trace.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/bcachefs/trace.h b/fs/bcachefs/trace.h index 30b10908ced0..f608baec294a 100644 --- a/fs/bcachefs/trace.h +++ b/fs/bcachefs/trace.h @@ -837,6 +837,12 @@ DEFINE_EVENT(transaction_event, trans_restart_injected, TP_ARGS(trans, caller_ip) ); +DEFINE_EVENT(transaction_event, trans_restart_split_race, + TP_PROTO(struct btree_trans *trans, + unsigned long caller_ip), + TP_ARGS(trans, caller_ip) +); + DEFINE_EVENT(transaction_event, trans_blocked_journal_reclaim, TP_PROTO(struct btree_trans *trans, unsigned long caller_ip), |