@@ -60,24 +60,24 @@ TRACE_EVENT(xe_bo_move,
60
60
TP_STRUCT__entry (
61
61
__field (struct xe_bo * , bo )
62
62
__field (size_t , size )
63
- __field ( u32 , new_placement )
64
- __field ( u32 , old_placement )
63
+ __string ( new_placement_name , xe_mem_type_to_name [ new_placement ] )
64
+ __string ( old_placement_name , xe_mem_type_to_name [ old_placement ] )
65
65
__string (device_id , __dev_name_bo (bo ))
66
66
__field (bool , move_lacks_source )
67
67
),
68
68
69
69
TP_fast_assign (
70
70
__entry -> bo = bo ;
71
71
__entry -> size = bo -> size ;
72
- __entry -> new_placement = new_placement ;
73
- __entry -> old_placement = old_placement ;
72
+ __assign_str ( new_placement_name ) ;
73
+ __assign_str ( old_placement_name ) ;
74
74
__assign_str (device_id );
75
75
__entry -> move_lacks_source = move_lacks_source ;
76
76
),
77
77
TP_printk ("move_lacks_source:%s, migrate object %p [size %zu] from %s to %s device_id:%s" ,
78
78
__entry -> move_lacks_source ? "yes" : "no" , __entry -> bo , __entry -> size ,
79
- xe_mem_type_to_name [ __entry -> old_placement ] ,
80
- xe_mem_type_to_name [ __entry -> new_placement ] , __get_str (device_id ))
79
+ __get_str ( old_placement_name ) ,
80
+ __get_str ( new_placement_name ) , __get_str (device_id ))
81
81
);
82
82
83
83
DECLARE_EVENT_CLASS (xe_vma ,
0 commit comments