Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */
0002 /* Copyright (c) 2019 Mellanox Technologies. All rights reserved */
0003 
0004 #undef TRACE_SYSTEM
0005 #define TRACE_SYSTEM mlxsw
0006 
0007 #if !defined(_MLXSW_TRACEPOINT_H) || defined(TRACE_HEADER_MULTI_READ)
0008 #define _MLXSW_TRACEPOINT_H
0009 
0010 #include <linux/tracepoint.h>
0011 
0012 struct mlxsw_sp;
0013 struct mlxsw_sp_acl_atcam_region;
0014 struct mlxsw_sp_acl_tcam_vregion;
0015 
0016 TRACE_EVENT(mlxsw_sp_acl_atcam_entry_add_ctcam_spill,
0017     TP_PROTO(const struct mlxsw_sp *mlxsw_sp,
0018          const struct mlxsw_sp_acl_atcam_region *aregion),
0019 
0020     TP_ARGS(mlxsw_sp, aregion),
0021 
0022     TP_STRUCT__entry(
0023         __field(const void *, mlxsw_sp)
0024         __field(const void *, aregion)
0025     ),
0026 
0027     TP_fast_assign(
0028         __entry->mlxsw_sp = mlxsw_sp;
0029         __entry->aregion = aregion;
0030     ),
0031 
0032     TP_printk("mlxsw_sp %p, aregion %p",
0033           __entry->mlxsw_sp, __entry->aregion)
0034 );
0035 
0036 TRACE_EVENT(mlxsw_sp_acl_tcam_vregion_rehash,
0037     TP_PROTO(const struct mlxsw_sp *mlxsw_sp,
0038          const struct mlxsw_sp_acl_tcam_vregion *vregion),
0039 
0040     TP_ARGS(mlxsw_sp, vregion),
0041 
0042     TP_STRUCT__entry(
0043         __field(const void *, mlxsw_sp)
0044         __field(const void *, vregion)
0045     ),
0046 
0047     TP_fast_assign(
0048         __entry->mlxsw_sp = mlxsw_sp;
0049         __entry->vregion = vregion;
0050     ),
0051 
0052     TP_printk("mlxsw_sp %p, vregion %p",
0053           __entry->mlxsw_sp, __entry->vregion)
0054 );
0055 
0056 TRACE_EVENT(mlxsw_sp_acl_tcam_vregion_migrate,
0057     TP_PROTO(const struct mlxsw_sp *mlxsw_sp,
0058          const struct mlxsw_sp_acl_tcam_vregion *vregion),
0059 
0060     TP_ARGS(mlxsw_sp, vregion),
0061 
0062     TP_STRUCT__entry(
0063         __field(const void *, mlxsw_sp)
0064         __field(const void *, vregion)
0065     ),
0066 
0067     TP_fast_assign(
0068         __entry->mlxsw_sp = mlxsw_sp;
0069         __entry->vregion = vregion;
0070     ),
0071 
0072     TP_printk("mlxsw_sp %p, vregion %p",
0073           __entry->mlxsw_sp, __entry->vregion)
0074 );
0075 
0076 TRACE_EVENT(mlxsw_sp_acl_tcam_vregion_migrate_end,
0077     TP_PROTO(const struct mlxsw_sp *mlxsw_sp,
0078          const struct mlxsw_sp_acl_tcam_vregion *vregion),
0079 
0080     TP_ARGS(mlxsw_sp, vregion),
0081 
0082     TP_STRUCT__entry(
0083         __field(const void *, mlxsw_sp)
0084         __field(const void *, vregion)
0085     ),
0086 
0087     TP_fast_assign(
0088         __entry->mlxsw_sp = mlxsw_sp;
0089         __entry->vregion = vregion;
0090     ),
0091 
0092     TP_printk("mlxsw_sp %p, vregion %p",
0093           __entry->mlxsw_sp, __entry->vregion)
0094 );
0095 
0096 TRACE_EVENT(mlxsw_sp_acl_tcam_vregion_rehash_rollback_failed,
0097     TP_PROTO(const struct mlxsw_sp *mlxsw_sp,
0098          const struct mlxsw_sp_acl_tcam_vregion *vregion),
0099 
0100     TP_ARGS(mlxsw_sp, vregion),
0101 
0102     TP_STRUCT__entry(
0103         __field(const void *, mlxsw_sp)
0104         __field(const void *, vregion)
0105     ),
0106 
0107     TP_fast_assign(
0108         __entry->mlxsw_sp = mlxsw_sp;
0109         __entry->vregion = vregion;
0110     ),
0111 
0112     TP_printk("mlxsw_sp %p, vregion %p",
0113           __entry->mlxsw_sp, __entry->vregion)
0114 );
0115 
0116 #endif /* _MLXSW_TRACEPOINT_H */
0117 
0118 /* This part must be outside protection */
0119 #include <trace/define_trace.h>