As vregion rehash is happening in delayed work, add some visibility to the process using a few tracepoints.
Showing the changes to include/trace (1 of 2 files). Show all
Unified · Split
| @@ -11,6 +11,7 @@ · 10 unmodified lines | |||
| 11 | 11 | ||
| 12 | struct mlxsw_sp; | 12 | struct mlxsw_sp; |
| 13 | struct mlxsw_sp_acl_atcam_region; | 13 | struct mlxsw_sp_acl_atcam_region; |
| 14 | struct mlxsw_sp_acl_tcam_vregion; | ||
| 14 | 15 | ||
| 15 | TRACE_EVENT(mlxsw_sp_acl_atcam_entry_add_ctcam_spill, | 16 | TRACE_EVENT(mlxsw_sp_acl_atcam_entry_add_ctcam_spill, |
| 16 | TP_PROTO(const struct mlxsw_sp *mlxsw_sp, | 17 | TP_PROTO(const struct mlxsw_sp *mlxsw_sp, |
| @@ -32,6 +33,66 @@ TRACE_EVENT(mlxsw_sp_acl_atcam_entry_add_ctcam_spill, · 15 unmodified lines | |||
| 32 | __entry->mlxsw_sp, __entry->aregion) | 33 | __entry->mlxsw_sp, __entry->aregion) |
| 33 | ); | 34 | ); |
| 34 | 35 | ||
| 36 | TRACE_EVENT(mlxsw_sp_acl_tcam_vregion_rehash, | ||
| 37 | TP_PROTO(const struct mlxsw_sp *mlxsw_sp, | ||
| 38 | const struct mlxsw_sp_acl_tcam_vregion *vregion), | ||
| 39 | |||
| 40 | TP_ARGS(mlxsw_sp, vregion), | ||
| 41 | |||
| 42 | TP_STRUCT__entry( | ||
| 43 | __field(const void *, mlxsw_sp) | ||
| 44 | __field(const void *, vregion) | ||
| 45 | ), | ||
| 46 | |||
| 47 | TP_fast_assign( | ||
| 48 | __entry->mlxsw_sp = mlxsw_sp; | ||
| 49 | __entry->vregion = vregion; | ||
| 50 | ), | ||
| 51 | |||
| 52 | TP_printk("mlxsw_sp %p, vregion %p", | ||
| 53 | __entry->mlxsw_sp, __entry->vregion) | ||
| 54 | ); | ||
| 55 | |||
| 56 | TRACE_EVENT(mlxsw_sp_acl_tcam_vregion_migrate, | ||
| 57 | TP_PROTO(const struct mlxsw_sp *mlxsw_sp, | ||
| 58 | const struct mlxsw_sp_acl_tcam_vregion *vregion), | ||
| 59 | |||
| 60 | TP_ARGS(mlxsw_sp, vregion), | ||
| 61 | |||
| 62 | TP_STRUCT__entry( | ||
| 63 | __field(const void *, mlxsw_sp) | ||
| 64 | __field(const void *, vregion) | ||
| 65 | ), | ||
| 66 | |||
| 67 | TP_fast_assign( | ||
| 68 | __entry->mlxsw_sp = mlxsw_sp; | ||
| 69 | __entry->vregion = vregion; | ||
| 70 | ), | ||
| 71 | |||
| 72 | TP_printk("mlxsw_sp %p, vregion %p", | ||
| 73 | __entry->mlxsw_sp, __entry->vregion) | ||
| 74 | ); | ||
| 75 | |||
| 76 | TRACE_EVENT(mlxsw_sp_acl_tcam_vregion_rehash_dis, | ||
| 77 | TP_PROTO(const struct mlxsw_sp *mlxsw_sp, | ||
| 78 | const struct mlxsw_sp_acl_tcam_vregion *vregion), | ||
| 79 | |||
| 80 | TP_ARGS(mlxsw_sp, vregion), | ||
| 81 | |||
| 82 | TP_STRUCT__entry( | ||
| 83 | __field(const void *, mlxsw_sp) | ||
| 84 | __field(const void *, vregion) | ||
| 85 | ), | ||
| 86 | |||
| 87 | TP_fast_assign( | ||
| 88 | __entry->mlxsw_sp = mlxsw_sp; | ||
| 89 | __entry->vregion = vregion; | ||
| 90 | ), | ||
| 91 | |||
| 92 | TP_printk("mlxsw_sp %p, vregion %p", | ||
| 93 | __entry->mlxsw_sp, __entry->vregion) | ||
| 94 | ); | ||
| 95 | |||
| 35 | #endif /* _MLXSW_TRACEPOINT_H */ | 96 | #endif /* _MLXSW_TRACEPOINT_H */ |
| 36 | 97 | ||
| 37 | /* This part must be outside protection */ | 98 | /* This part must be outside protection */ |