WIP FPC-III support
[linux/fpc-iii.git] / include / trace / events / mlxsw.h
blob19a25ed323a506f92c9867bcf259f5c74a2b1e27
1 /* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */
2 /* Copyright (c) 2019 Mellanox Technologies. All rights reserved */
4 #undef TRACE_SYSTEM
5 #define TRACE_SYSTEM mlxsw
7 #if !defined(_MLXSW_TRACEPOINT_H) || defined(TRACE_HEADER_MULTI_READ)
8 #define _MLXSW_TRACEPOINT_H
10 #include <linux/tracepoint.h>
12 struct mlxsw_sp;
13 struct mlxsw_sp_acl_atcam_region;
14 struct mlxsw_sp_acl_tcam_vregion;
16 TRACE_EVENT(mlxsw_sp_acl_atcam_entry_add_ctcam_spill,
17 TP_PROTO(const struct mlxsw_sp *mlxsw_sp,
18 const struct mlxsw_sp_acl_atcam_region *aregion),
20 TP_ARGS(mlxsw_sp, aregion),
22 TP_STRUCT__entry(
23 __field(const void *, mlxsw_sp)
24 __field(const void *, aregion)
27 TP_fast_assign(
28 __entry->mlxsw_sp = mlxsw_sp;
29 __entry->aregion = aregion;
32 TP_printk("mlxsw_sp %p, aregion %p",
33 __entry->mlxsw_sp, __entry->aregion)
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),
40 TP_ARGS(mlxsw_sp, vregion),
42 TP_STRUCT__entry(
43 __field(const void *, mlxsw_sp)
44 __field(const void *, vregion)
47 TP_fast_assign(
48 __entry->mlxsw_sp = mlxsw_sp;
49 __entry->vregion = vregion;
52 TP_printk("mlxsw_sp %p, vregion %p",
53 __entry->mlxsw_sp, __entry->vregion)
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),
60 TP_ARGS(mlxsw_sp, vregion),
62 TP_STRUCT__entry(
63 __field(const void *, mlxsw_sp)
64 __field(const void *, vregion)
67 TP_fast_assign(
68 __entry->mlxsw_sp = mlxsw_sp;
69 __entry->vregion = vregion;
72 TP_printk("mlxsw_sp %p, vregion %p",
73 __entry->mlxsw_sp, __entry->vregion)
76 TRACE_EVENT(mlxsw_sp_acl_tcam_vregion_migrate_end,
77 TP_PROTO(const struct mlxsw_sp *mlxsw_sp,
78 const struct mlxsw_sp_acl_tcam_vregion *vregion),
80 TP_ARGS(mlxsw_sp, vregion),
82 TP_STRUCT__entry(
83 __field(const void *, mlxsw_sp)
84 __field(const void *, vregion)
87 TP_fast_assign(
88 __entry->mlxsw_sp = mlxsw_sp;
89 __entry->vregion = vregion;
92 TP_printk("mlxsw_sp %p, vregion %p",
93 __entry->mlxsw_sp, __entry->vregion)
96 TRACE_EVENT(mlxsw_sp_acl_tcam_vregion_rehash_rollback_failed,
97 TP_PROTO(const struct mlxsw_sp *mlxsw_sp,
98 const struct mlxsw_sp_acl_tcam_vregion *vregion),
100 TP_ARGS(mlxsw_sp, vregion),
102 TP_STRUCT__entry(
103 __field(const void *, mlxsw_sp)
104 __field(const void *, vregion)
107 TP_fast_assign(
108 __entry->mlxsw_sp = mlxsw_sp;
109 __entry->vregion = vregion;
112 TP_printk("mlxsw_sp %p, vregion %p",
113 __entry->mlxsw_sp, __entry->vregion)
116 #endif /* _MLXSW_TRACEPOINT_H */
118 /* This part must be outside protection */
119 #include <trace/define_trace.h>