@@ -228,20 +228,20 @@ DECLARE_EVENT_CLASS(xprtrdma_frwr_done,
228
228
TP_ARGS (wc , frwr ),
229
229
230
230
TP_STRUCT__entry (
231
- __field (const void * , mr )
231
+ __field (u32 , mr_id )
232
232
__field (unsigned int , status )
233
233
__field (unsigned int , vendor_err )
234
234
),
235
235
236
236
TP_fast_assign (
237
- __entry -> mr = container_of ( frwr , struct rpcrdma_mr , frwr ) ;
237
+ __entry -> mr_id = frwr -> fr_mr -> res . id ;
238
238
__entry -> status = wc -> status ;
239
239
__entry -> vendor_err = __entry -> status ? wc -> vendor_err : 0 ;
240
240
),
241
241
242
242
TP_printk (
243
- "mr=%p : %s (%u/0x%x)" ,
244
- __entry -> mr , rdma_show_wc_status (__entry -> status ),
243
+ "mr.id=%u : %s (%u/0x%x)" ,
244
+ __entry -> mr_id , rdma_show_wc_status (__entry -> status ),
245
245
__entry -> status , __entry -> vendor_err
246
246
)
247
247
);
@@ -274,23 +274,25 @@ DECLARE_EVENT_CLASS(xprtrdma_mr,
274
274
TP_ARGS (mr ),
275
275
276
276
TP_STRUCT__entry (
277
- __field (const void * , mr )
277
+ __field (u32 , mr_id )
278
+ __field (int , nents )
278
279
__field (u32 , handle )
279
280
__field (u32 , length )
280
281
__field (u64 , offset )
281
282
__field (u32 , dir )
282
283
),
283
284
284
285
TP_fast_assign (
285
- __entry -> mr = mr ;
286
+ __entry -> mr_id = mr -> frwr .fr_mr -> res .id ;
287
+ __entry -> nents = mr -> mr_nents ;
286
288
__entry -> handle = mr -> mr_handle ;
287
289
__entry -> length = mr -> mr_length ;
288
290
__entry -> offset = mr -> mr_offset ;
289
291
__entry -> dir = mr -> mr_dir ;
290
292
),
291
293
292
- TP_printk ("mr=%p %u@0x%016llx:0x%08x (%s)" ,
293
- __entry -> mr , __entry -> length ,
294
+ TP_printk ("mr.id=%u nents=%d %u@0x%016llx:0x%08x (%s)" ,
295
+ __entry -> mr_id , __entry -> nents , __entry -> length ,
294
296
(unsigned long long )__entry -> offset , __entry -> handle ,
295
297
xprtrdma_show_direction (__entry -> dir )
296
298
)
@@ -920,17 +922,17 @@ TRACE_EVENT(xprtrdma_frwr_alloc,
920
922
TP_ARGS (mr , rc ),
921
923
922
924
TP_STRUCT__entry (
923
- __field (const void * , mr )
925
+ __field (u32 , mr_id )
924
926
__field (int , rc )
925
927
),
926
928
927
929
TP_fast_assign (
928
- __entry -> mr = mr ;
929
- __entry -> rc = rc ;
930
+ __entry -> mr_id = mr -> frwr . fr_mr -> res . id ;
931
+ __entry -> rc = rc ;
930
932
),
931
933
932
- TP_printk ("mr=%p : rc=%d" ,
933
- __entry -> mr , __entry -> rc
934
+ TP_printk ("mr.id=%u : rc=%d" ,
935
+ __entry -> mr_id , __entry -> rc
934
936
)
935
937
);
936
938
@@ -943,7 +945,8 @@ TRACE_EVENT(xprtrdma_frwr_dereg,
943
945
TP_ARGS (mr , rc ),
944
946
945
947
TP_STRUCT__entry (
946
- __field (const void * , mr )
948
+ __field (u32 , mr_id )
949
+ __field (int , nents )
947
950
__field (u32 , handle )
948
951
__field (u32 , length )
949
952
__field (u64 , offset )
@@ -952,16 +955,17 @@ TRACE_EVENT(xprtrdma_frwr_dereg,
952
955
),
953
956
954
957
TP_fast_assign (
955
- __entry -> mr = mr ;
958
+ __entry -> mr_id = mr -> frwr .fr_mr -> res .id ;
959
+ __entry -> nents = mr -> mr_nents ;
956
960
__entry -> handle = mr -> mr_handle ;
957
961
__entry -> length = mr -> mr_length ;
958
962
__entry -> offset = mr -> mr_offset ;
959
963
__entry -> dir = mr -> mr_dir ;
960
964
__entry -> rc = rc ;
961
965
),
962
966
963
- TP_printk ("mr=%p %u@0x%016llx:0x%08x (%s): rc=%d" ,
964
- __entry -> mr , __entry -> length ,
967
+ TP_printk ("mr.id=%u nents=%d %u@0x%016llx:0x%08x (%s): rc=%d" ,
968
+ __entry -> mr_id , __entry -> nents , __entry -> length ,
965
969
(unsigned long long )__entry -> offset , __entry -> handle ,
966
970
xprtrdma_show_direction (__entry -> dir ),
967
971
__entry -> rc
@@ -977,21 +981,21 @@ TRACE_EVENT(xprtrdma_frwr_sgerr,
977
981
TP_ARGS (mr , sg_nents ),
978
982
979
983
TP_STRUCT__entry (
980
- __field (const void * , mr )
984
+ __field (u32 , mr_id )
981
985
__field (u64 , addr )
982
986
__field (u32 , dir )
983
987
__field (int , nents )
984
988
),
985
989
986
990
TP_fast_assign (
987
- __entry -> mr = mr ;
991
+ __entry -> mr_id = mr -> frwr . fr_mr -> res . id ;
988
992
__entry -> addr = mr -> mr_sg -> dma_address ;
989
993
__entry -> dir = mr -> mr_dir ;
990
994
__entry -> nents = sg_nents ;
991
995
),
992
996
993
- TP_printk ("mr=%p dma addr=0x%llx (%s) sg_nents=%d" ,
994
- __entry -> mr , __entry -> addr ,
997
+ TP_printk ("mr.id=%u DMA addr=0x%llx (%s) sg_nents=%d" ,
998
+ __entry -> mr_id , __entry -> addr ,
995
999
xprtrdma_show_direction (__entry -> dir ),
996
1000
__entry -> nents
997
1001
)
@@ -1006,23 +1010,23 @@ TRACE_EVENT(xprtrdma_frwr_maperr,
1006
1010
TP_ARGS (mr , num_mapped ),
1007
1011
1008
1012
TP_STRUCT__entry (
1009
- __field (const void * , mr )
1013
+ __field (u32 , mr_id )
1010
1014
__field (u64 , addr )
1011
1015
__field (u32 , dir )
1012
1016
__field (int , num_mapped )
1013
1017
__field (int , nents )
1014
1018
),
1015
1019
1016
1020
TP_fast_assign (
1017
- __entry -> mr = mr ;
1021
+ __entry -> mr_id = mr -> frwr . fr_mr -> res . id ;
1018
1022
__entry -> addr = mr -> mr_sg -> dma_address ;
1019
1023
__entry -> dir = mr -> mr_dir ;
1020
1024
__entry -> num_mapped = num_mapped ;
1021
1025
__entry -> nents = mr -> mr_nents ;
1022
1026
),
1023
1027
1024
- TP_printk ("mr=%p dma addr=0x%llx (%s) nents=%d of %d" ,
1025
- __entry -> mr , __entry -> addr ,
1028
+ TP_printk ("mr.id=%u DMA addr=0x%llx (%s) nents=%d of %d" ,
1029
+ __entry -> mr_id , __entry -> addr ,
1026
1030
xprtrdma_show_direction (__entry -> dir ),
1027
1031
__entry -> num_mapped , __entry -> nents
1028
1032
)
@@ -1031,7 +1035,7 @@ TRACE_EVENT(xprtrdma_frwr_maperr,
1031
1035
DEFINE_MR_EVENT (localinv );
1032
1036
DEFINE_MR_EVENT (map );
1033
1037
DEFINE_MR_EVENT (unmap );
1034
- DEFINE_MR_EVENT (remoteinv );
1038
+ DEFINE_MR_EVENT (reminv );
1035
1039
DEFINE_MR_EVENT (recycle );
1036
1040
1037
1041
TRACE_EVENT (xprtrdma_dma_maperr ,
0 commit comments