@@ -200,6 +200,50 @@ TRACE_EVENT(nfs4_cb_seqid_err,
200
200
)
201
201
);
202
202
203
+ TRACE_EVENT (nfs4_cb_offload ,
204
+ TP_PROTO (
205
+ const struct nfs_fh * cb_fh ,
206
+ const nfs4_stateid * cb_stateid ,
207
+ uint64_t cb_count ,
208
+ int cb_error ,
209
+ int cb_how_stable
210
+ ),
211
+
212
+ TP_ARGS (cb_fh , cb_stateid , cb_count , cb_error ,
213
+ cb_how_stable ),
214
+
215
+ TP_STRUCT__entry (
216
+ __field (unsigned long , error )
217
+ __field (u32 , fhandle )
218
+ __field (loff_t , cb_count )
219
+ __field (int , cb_how )
220
+ __field (int , cb_stateid_seq )
221
+ __field (u32 , cb_stateid_hash )
222
+ ),
223
+
224
+ TP_fast_assign (
225
+ __entry -> error = cb_error < 0 ? - cb_error : 0 ;
226
+ __entry -> fhandle = nfs_fhandle_hash (cb_fh );
227
+ __entry -> cb_stateid_seq =
228
+ be32_to_cpu (cb_stateid -> seqid );
229
+ __entry -> cb_stateid_hash =
230
+ nfs_stateid_hash (cb_stateid );
231
+ __entry -> cb_count = cb_count ;
232
+ __entry -> cb_how = cb_how_stable ;
233
+ ),
234
+
235
+ TP_printk (
236
+ "error=%ld (%s) fhandle=0x%08x cb_stateid=%d:0x%08x "
237
+ "cb_count=%llu cb_how=%s" ,
238
+ - __entry -> error ,
239
+ show_nfs4_status (__entry -> error ),
240
+ __entry -> fhandle ,
241
+ __entry -> cb_stateid_seq , __entry -> cb_stateid_hash ,
242
+ __entry -> cb_count ,
243
+ show_nfs_stable_how (__entry -> cb_how )
244
+ )
245
+ );
246
+
203
247
#endif /* CONFIG_NFS_V4_1 */
204
248
205
249
TRACE_EVENT (nfs4_setup_sequence ,
0 commit comments