ebaee64097
Invert the current trace point headers logic by making rte_trace_point_register.h include rte_trace_point.h. There is no more need for a RTE_TRACE_POINT_REGISTER_SELECT special macro since including rte_trace_point_register.h itself means we want to register trace points. The unexplained "provider" notion is removed from the documentation and rte_trace_point_provider.h is merged into rte_trace_point.h. Signed-off-by: David Marchand <david.marchand@redhat.com> Acked-by: Jerin Jacob <jerinj@marvell.com>
44 lines
1.2 KiB
C
44 lines
1.2 KiB
C
/* SPDX-License-Identifier: BSD-3-Clause
|
|
* Copyright(C) 2020 Marvell International Ltd.
|
|
*/
|
|
|
|
#include <rte_trace_point_register.h>
|
|
|
|
#include <rte_ethdev_trace.h>
|
|
|
|
RTE_TRACE_POINT_DEFINE(rte_ethdev_trace_configure);
|
|
RTE_TRACE_POINT_DEFINE(rte_ethdev_trace_rxq_setup);
|
|
RTE_TRACE_POINT_DEFINE(rte_ethdev_trace_txq_setup);
|
|
RTE_TRACE_POINT_DEFINE(rte_ethdev_trace_start);
|
|
RTE_TRACE_POINT_DEFINE(rte_ethdev_trace_stop);
|
|
RTE_TRACE_POINT_DEFINE(rte_ethdev_trace_close);
|
|
RTE_TRACE_POINT_DEFINE(rte_ethdev_trace_rx_burst);
|
|
RTE_TRACE_POINT_DEFINE(rte_ethdev_trace_tx_burst);
|
|
|
|
RTE_INIT(ethdev_trace_init)
|
|
{
|
|
RTE_TRACE_POINT_REGISTER(rte_ethdev_trace_configure,
|
|
lib.ethdev.configure);
|
|
|
|
RTE_TRACE_POINT_REGISTER(rte_ethdev_trace_rxq_setup,
|
|
lib.ethdev.rxq.setup);
|
|
|
|
RTE_TRACE_POINT_REGISTER(rte_ethdev_trace_txq_setup,
|
|
lib.ethdev.txq.setup);
|
|
|
|
RTE_TRACE_POINT_REGISTER(rte_ethdev_trace_start,
|
|
lib.ethdev.start);
|
|
|
|
RTE_TRACE_POINT_REGISTER(rte_ethdev_trace_stop,
|
|
lib.ethdev.stop);
|
|
|
|
RTE_TRACE_POINT_REGISTER(rte_ethdev_trace_close,
|
|
lib.ethdev.close);
|
|
|
|
RTE_TRACE_POINT_REGISTER(rte_ethdev_trace_rx_burst,
|
|
lib.ethdev.rx.burst);
|
|
|
|
RTE_TRACE_POINT_REGISTER(rte_ethdev_trace_tx_burst,
|
|
lib.ethdev.tx.burst);
|
|
}
|