2019-01-30 16:58:34 +08:00
|
|
|
/* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */
|
|
|
|
/* Copyright (c) 2019 Mellanox Technologies. All rights reserved */
|
|
|
|
|
|
|
|
#undef TRACE_SYSTEM
|
|
|
|
#define TRACE_SYSTEM mlxsw
|
|
|
|
|
|
|
|
#if !defined(_MLXSW_TRACEPOINT_H) || defined(TRACE_HEADER_MULTI_READ)
|
|
|
|
#define _MLXSW_TRACEPOINT_H
|
|
|
|
|
|
|
|
#include <linux/tracepoint.h>
|
|
|
|
|
|
|
|
struct mlxsw_sp;
|
|
|
|
struct mlxsw_sp_acl_atcam_region;
|
2019-02-07 19:22:55 +08:00
|
|
|
struct mlxsw_sp_acl_tcam_vregion;
|
2019-01-30 16:58:34 +08:00
|
|
|
|
|
|
|
TRACE_EVENT(mlxsw_sp_acl_atcam_entry_add_ctcam_spill,
|
|
|
|
TP_PROTO(const struct mlxsw_sp *mlxsw_sp,
|
|
|
|
const struct mlxsw_sp_acl_atcam_region *aregion),
|
|
|
|
|
|
|
|
TP_ARGS(mlxsw_sp, aregion),
|
|
|
|
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
__field(const void *, mlxsw_sp)
|
|
|
|
__field(const void *, aregion)
|
|
|
|
),
|
|
|
|
|
|
|
|
TP_fast_assign(
|
|
|
|
__entry->mlxsw_sp = mlxsw_sp;
|
|
|
|
__entry->aregion = aregion;
|
|
|
|
),
|
|
|
|
|
|
|
|
TP_printk("mlxsw_sp %p, aregion %p",
|
|
|
|
__entry->mlxsw_sp, __entry->aregion)
|
|
|
|
);
|
|
|
|
|
2019-02-07 19:22:55 +08:00
|
|
|
TRACE_EVENT(mlxsw_sp_acl_tcam_vregion_rehash,
|
|
|
|
TP_PROTO(const struct mlxsw_sp *mlxsw_sp,
|
|
|
|
const struct mlxsw_sp_acl_tcam_vregion *vregion),
|
|
|
|
|
|
|
|
TP_ARGS(mlxsw_sp, vregion),
|
|
|
|
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
__field(const void *, mlxsw_sp)
|
|
|
|
__field(const void *, vregion)
|
|
|
|
),
|
|
|
|
|
|
|
|
TP_fast_assign(
|
|
|
|
__entry->mlxsw_sp = mlxsw_sp;
|
|
|
|
__entry->vregion = vregion;
|
|
|
|
),
|
|
|
|
|
|
|
|
TP_printk("mlxsw_sp %p, vregion %p",
|
|
|
|
__entry->mlxsw_sp, __entry->vregion)
|
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_EVENT(mlxsw_sp_acl_tcam_vregion_migrate,
|
|
|
|
TP_PROTO(const struct mlxsw_sp *mlxsw_sp,
|
|
|
|
const struct mlxsw_sp_acl_tcam_vregion *vregion),
|
|
|
|
|
|
|
|
TP_ARGS(mlxsw_sp, vregion),
|
|
|
|
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
__field(const void *, mlxsw_sp)
|
|
|
|
__field(const void *, vregion)
|
|
|
|
),
|
|
|
|
|
|
|
|
TP_fast_assign(
|
|
|
|
__entry->mlxsw_sp = mlxsw_sp;
|
|
|
|
__entry->vregion = vregion;
|
|
|
|
),
|
|
|
|
|
|
|
|
TP_printk("mlxsw_sp %p, vregion %p",
|
|
|
|
__entry->mlxsw_sp, __entry->vregion)
|
|
|
|
);
|
|
|
|
|
2019-02-24 14:46:33 +08:00
|
|
|
TRACE_EVENT(mlxsw_sp_acl_tcam_vregion_migrate_end,
|
|
|
|
TP_PROTO(const struct mlxsw_sp *mlxsw_sp,
|
|
|
|
const struct mlxsw_sp_acl_tcam_vregion *vregion),
|
|
|
|
|
|
|
|
TP_ARGS(mlxsw_sp, vregion),
|
|
|
|
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
__field(const void *, mlxsw_sp)
|
|
|
|
__field(const void *, vregion)
|
|
|
|
),
|
|
|
|
|
|
|
|
TP_fast_assign(
|
|
|
|
__entry->mlxsw_sp = mlxsw_sp;
|
|
|
|
__entry->vregion = vregion;
|
|
|
|
),
|
|
|
|
|
|
|
|
TP_printk("mlxsw_sp %p, vregion %p",
|
|
|
|
__entry->mlxsw_sp, __entry->vregion)
|
|
|
|
);
|
|
|
|
|
2019-03-31 14:49:41 +08:00
|
|
|
TRACE_EVENT(mlxsw_sp_acl_tcam_vregion_rehash_rollback_failed,
|
2019-02-07 19:22:55 +08:00
|
|
|
TP_PROTO(const struct mlxsw_sp *mlxsw_sp,
|
|
|
|
const struct mlxsw_sp_acl_tcam_vregion *vregion),
|
|
|
|
|
|
|
|
TP_ARGS(mlxsw_sp, vregion),
|
|
|
|
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
__field(const void *, mlxsw_sp)
|
|
|
|
__field(const void *, vregion)
|
|
|
|
),
|
|
|
|
|
|
|
|
TP_fast_assign(
|
|
|
|
__entry->mlxsw_sp = mlxsw_sp;
|
|
|
|
__entry->vregion = vregion;
|
|
|
|
),
|
|
|
|
|
|
|
|
TP_printk("mlxsw_sp %p, vregion %p",
|
|
|
|
__entry->mlxsw_sp, __entry->vregion)
|
|
|
|
);
|
|
|
|
|
2019-01-30 16:58:34 +08:00
|
|
|
#endif /* _MLXSW_TRACEPOINT_H */
|
|
|
|
|
|
|
|
/* This part must be outside protection */
|
|
|
|
#include <trace/define_trace.h>
|