1*a97cfe4dSJiri Pirko /* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */ 2*a97cfe4dSJiri Pirko /* Copyright (c) 2019 Mellanox Technologies. All rights reserved */ 3*a97cfe4dSJiri Pirko 4*a97cfe4dSJiri Pirko #undef TRACE_SYSTEM 5*a97cfe4dSJiri Pirko #define TRACE_SYSTEM mlxsw 6*a97cfe4dSJiri Pirko 7*a97cfe4dSJiri Pirko #if !defined(_MLXSW_TRACEPOINT_H) || defined(TRACE_HEADER_MULTI_READ) 8*a97cfe4dSJiri Pirko #define _MLXSW_TRACEPOINT_H 9*a97cfe4dSJiri Pirko 10*a97cfe4dSJiri Pirko #include <linux/tracepoint.h> 11*a97cfe4dSJiri Pirko 12*a97cfe4dSJiri Pirko struct mlxsw_sp; 13*a97cfe4dSJiri Pirko struct mlxsw_sp_acl_atcam_region; 14*a97cfe4dSJiri Pirko 15*a97cfe4dSJiri Pirko TRACE_EVENT(mlxsw_sp_acl_atcam_entry_add_ctcam_spill, 16*a97cfe4dSJiri Pirko TP_PROTO(const struct mlxsw_sp *mlxsw_sp, 17*a97cfe4dSJiri Pirko const struct mlxsw_sp_acl_atcam_region *aregion), 18*a97cfe4dSJiri Pirko 19*a97cfe4dSJiri Pirko TP_ARGS(mlxsw_sp, aregion), 20*a97cfe4dSJiri Pirko 21*a97cfe4dSJiri Pirko TP_STRUCT__entry( 22*a97cfe4dSJiri Pirko __field(const void *, mlxsw_sp) 23*a97cfe4dSJiri Pirko __field(const void *, aregion) 24*a97cfe4dSJiri Pirko ), 25*a97cfe4dSJiri Pirko 26*a97cfe4dSJiri Pirko TP_fast_assign( 27*a97cfe4dSJiri Pirko __entry->mlxsw_sp = mlxsw_sp; 28*a97cfe4dSJiri Pirko __entry->aregion = aregion; 29*a97cfe4dSJiri Pirko ), 30*a97cfe4dSJiri Pirko 31*a97cfe4dSJiri Pirko TP_printk("mlxsw_sp %p, aregion %p", 32*a97cfe4dSJiri Pirko __entry->mlxsw_sp, __entry->aregion) 33*a97cfe4dSJiri Pirko ); 34*a97cfe4dSJiri Pirko 35*a97cfe4dSJiri Pirko #endif /* _MLXSW_TRACEPOINT_H */ 36*a97cfe4dSJiri Pirko 37*a97cfe4dSJiri Pirko /* This part must be outside protection */ 38*a97cfe4dSJiri Pirko #include <trace/define_trace.h> 39