From 0990efaeeab14de1e3e3bf2791808afebadd1cc4 Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Tue, 5 Jul 2022 17:27:44 -0400 Subject: bcachefs: btree_trans_too_many_iters() is now a transaction restart All transaction restarts need a tracepoint - this is essential for debugging Signed-off-by: Kent Overstreet --- fs/bcachefs/trace.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'fs/bcachefs/trace.h') diff --git a/fs/bcachefs/trace.h b/fs/bcachefs/trace.h index 65c38aa38359..a52da91f279e 100644 --- a/fs/bcachefs/trace.h +++ b/fs/bcachefs/trace.h @@ -755,6 +755,12 @@ DEFINE_EVENT(transaction_event, trans_restart_key_cache_raced, TP_ARGS(trans_fn, caller_ip) ); +DEFINE_EVENT(transaction_event, trans_restart_too_many_iters, + TP_PROTO(const char *trans_fn, + unsigned long caller_ip), + TP_ARGS(trans_fn, caller_ip) +); + DECLARE_EVENT_CLASS(transaction_restart_iter, TP_PROTO(const char *trans_fn, unsigned long caller_ip, -- cgit v1.2.3