diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2022-08-27 19:23:38 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-23 00:09:39 +0300 |
commit | ce56bf7fc23b6c2cf6edfbdfba1805c1842641ca (patch) | |
tree | 2a206db5f53d22142b6dd9fae6325901838cd7fe /fs/bcachefs/trace.h | |
parent | 5f1dd9a633dd0aa8429742cdba08d9566f49177b (diff) | |
download | linux-ce56bf7fc23b6c2cf6edfbdfba1805c1842641ca.tar.xz |
bcachefs: Improve trans_restart_journal_preres_get tracepoint
It now includes journal_flags.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/trace.h')
-rw-r--r-- | fs/bcachefs/trace.h | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/fs/bcachefs/trace.h b/fs/bcachefs/trace.h index 472175e8c2e3..2c1661ab807b 100644 --- a/fs/bcachefs/trace.h +++ b/fs/bcachefs/trace.h @@ -781,10 +781,28 @@ DEFINE_EVENT(transaction_event, trans_restart_journal_res_get, TP_ARGS(trans, caller_ip) ); -DEFINE_EVENT(transaction_event, trans_restart_journal_preres_get, + +TRACE_EVENT(trans_restart_journal_preres_get, TP_PROTO(struct btree_trans *trans, - unsigned long caller_ip), - TP_ARGS(trans, caller_ip) + unsigned long caller_ip, + unsigned flags), + TP_ARGS(trans, caller_ip, flags), + + TP_STRUCT__entry( + __array(char, trans_fn, 32 ) + __field(unsigned long, caller_ip ) + __field(unsigned, flags ) + ), + + TP_fast_assign( + strlcpy(__entry->trans_fn, trans->fn, sizeof(__entry->trans_fn)); + __entry->caller_ip = caller_ip; + __entry->flags = flags; + ), + + TP_printk("%s %pS %x", __entry->trans_fn, + (void *) __entry->caller_ip, + __entry->flags) ); DEFINE_EVENT(transaction_event, trans_restart_journal_reclaim, |