Skip to content

Commit 4fce641

Browse files
zabbochriskirby1
authored andcommitted
Update tracing with cluster lock changes
Signed-off-by: Zach Brown <zab@versity.com>
1 parent c9aee90 commit 4fce641

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

kmod/src/scoutfs_trace.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1098,6 +1098,7 @@ DECLARE_EVENT_CLASS(scoutfs_lock_class,
10981098
__field(unsigned char, invalidate_pending)
10991099
__field(int, mode)
11001100
__field(int, invalidating_mode)
1101+
__field(unsigned int, refcount)
11011102
__field(unsigned int, waiters_cw)
11021103
__field(unsigned int, waiters_pr)
11031104
__field(unsigned int, waiters_ex)
@@ -1116,18 +1117,19 @@ DECLARE_EVENT_CLASS(scoutfs_lock_class,
11161117
__entry->invalidate_pending = lck->invalidate_pending;
11171118
__entry->mode = lck->mode;
11181119
__entry->invalidating_mode = lck->invalidating_mode;
1120+
__entry->refcount = atomic_read(&lck->refcount);
11191121
__entry->waiters_pr = lck->waiters[SCOUTFS_LOCK_READ];
11201122
__entry->waiters_ex = lck->waiters[SCOUTFS_LOCK_WRITE];
11211123
__entry->waiters_cw = lck->waiters[SCOUTFS_LOCK_WRITE_ONLY];
11221124
__entry->users_pr = lck->users[SCOUTFS_LOCK_READ];
11231125
__entry->users_ex = lck->users[SCOUTFS_LOCK_WRITE];
11241126
__entry->users_cw = lck->users[SCOUTFS_LOCK_WRITE_ONLY];
11251127
),
1126-
TP_printk(SCSBF" start "SK_FMT" end "SK_FMT" mode %u invmd %u reqp %u invp %u refg %llu wris %llu dts %llu waiters: pr %u ex %u cw %u users: pr %u ex %u cw %u",
1128+
TP_printk(SCSBF" start "SK_FMT" end "SK_FMT" mode %u invmd %u reqp %u invp %u refg %llu rfcnt %d wris %llu dts %llu waiters: pr %u ex %u cw %u users: pr %u ex %u cw %u",
11271129
SCSB_TRACE_ARGS, sk_trace_args(start), sk_trace_args(end),
11281130
__entry->mode, __entry->invalidating_mode, __entry->request_pending,
1129-
__entry->invalidate_pending, __entry->refresh_gen, __entry->write_seq,
1130-
__entry->dirty_trans_seq,
1131+
__entry->invalidate_pending, __entry->refresh_gen, __entry->refcount,
1132+
__entry->write_seq, __entry->dirty_trans_seq,
11311133
__entry->waiters_pr, __entry->waiters_ex, __entry->waiters_cw,
11321134
__entry->users_pr, __entry->users_ex, __entry->users_cw)
11331135
);

0 commit comments

Comments
 (0)