numam-dpdk/lib/librte_eventdev/eventdev_trace_points.c
David Marchand ebaee64097 trace: simplify trace point headers
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>
2020-05-06 13:50:32 +02:00

174 lines
6.2 KiB
C

/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(C) 2020 Marvell International Ltd.
*/
#include <rte_trace_point_register.h>
#include "rte_eventdev_trace.h"
/* Eventdev trace points */
RTE_TRACE_POINT_DEFINE(rte_eventdev_trace_configure);
RTE_TRACE_POINT_DEFINE(rte_eventdev_trace_queue_setup);
RTE_TRACE_POINT_DEFINE(rte_eventdev_trace_port_setup);
RTE_TRACE_POINT_DEFINE(rte_eventdev_trace_port_link);
RTE_TRACE_POINT_DEFINE(rte_eventdev_trace_port_unlink);
RTE_TRACE_POINT_DEFINE(rte_eventdev_trace_start);
RTE_TRACE_POINT_DEFINE(rte_eventdev_trace_stop);
RTE_TRACE_POINT_DEFINE(rte_eventdev_trace_close);
RTE_TRACE_POINT_DEFINE(rte_eventdev_trace_enq_burst);
RTE_TRACE_POINT_DEFINE(rte_eventdev_trace_deq_burst);
/* Eventdev Rx adapter trace points */
RTE_TRACE_POINT_DEFINE(rte_eventdev_trace_eth_rx_adapter_create);
RTE_TRACE_POINT_DEFINE(rte_eventdev_trace_eth_rx_adapter_free);
RTE_TRACE_POINT_DEFINE(rte_eventdev_trace_eth_rx_adapter_queue_add);
RTE_TRACE_POINT_DEFINE(rte_eventdev_trace_eth_rx_adapter_queue_del);
RTE_TRACE_POINT_DEFINE(rte_eventdev_trace_eth_rx_adapter_start);
RTE_TRACE_POINT_DEFINE(rte_eventdev_trace_eth_rx_adapter_stop);
/* Eventdev Tx adapter trace points */
RTE_TRACE_POINT_DEFINE(rte_eventdev_trace_eth_tx_adapter_create);
RTE_TRACE_POINT_DEFINE(rte_eventdev_trace_eth_tx_adapter_free);
RTE_TRACE_POINT_DEFINE(rte_eventdev_trace_eth_tx_adapter_queue_add);
RTE_TRACE_POINT_DEFINE(rte_eventdev_trace_eth_tx_adapter_queue_del);
RTE_TRACE_POINT_DEFINE(rte_eventdev_trace_eth_tx_adapter_start);
RTE_TRACE_POINT_DEFINE(rte_eventdev_trace_eth_tx_adapter_stop);
RTE_TRACE_POINT_DEFINE(rte_eventdev_trace_eth_tx_adapter_enqueue);
/* Eventdev Timer adapter trace points */
RTE_TRACE_POINT_DEFINE(rte_eventdev_trace_timer_adapter_create);
RTE_TRACE_POINT_DEFINE(rte_eventdev_trace_timer_adapter_start);
RTE_TRACE_POINT_DEFINE(rte_eventdev_trace_timer_adapter_stop);
RTE_TRACE_POINT_DEFINE(rte_eventdev_trace_timer_adapter_free);
RTE_TRACE_POINT_DEFINE(rte_eventdev_trace_timer_arm_burst);
RTE_TRACE_POINT_DEFINE(rte_eventdev_trace_timer_arm_tmo_tick_burst);
RTE_TRACE_POINT_DEFINE(rte_eventdev_trace_timer_cancel_burst);
/* Eventdev Crypto adapter trace points */
RTE_TRACE_POINT_DEFINE(rte_eventdev_trace_crypto_adapter_create);
RTE_TRACE_POINT_DEFINE(rte_eventdev_trace_crypto_adapter_free);
RTE_TRACE_POINT_DEFINE(rte_eventdev_trace_crypto_adapter_queue_pair_add);
RTE_TRACE_POINT_DEFINE(rte_eventdev_trace_crypto_adapter_queue_pair_del);
RTE_TRACE_POINT_DEFINE(rte_eventdev_trace_crypto_adapter_start);
RTE_TRACE_POINT_DEFINE(rte_eventdev_trace_crypto_adapter_stop);
RTE_INIT(eventdev_trace_init)
{
/* Eventdev trace points */
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_configure,
lib.eventdev.configure);
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_queue_setup,
lib.eventdev.queue.setup);
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_port_setup,
lib.eventdev.port.setup);
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_port_link,
lib.eventdev.port.link);
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_port_unlink,
lib.eventdev.port.unlink);
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_start,
lib.eventdev.start);
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_stop,
lib.eventdev.stop);
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_close,
lib.eventdev.close);
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_enq_burst,
lib.eventdev.enq.burst);
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_deq_burst,
lib.eventdev.deq.burst);
/* Eventdev Rx adapter trace points */
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_create,
lib.eventdev.rx.adapter.create);
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_free,
lib.eventdev.rx.adapter.free);
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_queue_add,
lib.eventdev.rx.adapter.queue.add);
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_queue_del,
lib.eventdev.rx.adapter.queue.del);
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_start,
lib.eventdev.rx.adapter.start);
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_stop,
lib.eventdev.rx.adapter.stop);
/* Eventdev Tx adapter trace points */
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_create,
lib.eventdev.tx.adapter.create);
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_free,
lib.eventdev.tx.adapter.free);
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_queue_add,
lib.eventdev.tx.adapter.queue.add);
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_queue_del,
lib.eventdev.tx.adapter.queue.del);
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_start,
lib.eventdev.tx.adapter.start);
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_stop,
lib.eventdev.tx.adapter.stop);
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_enqueue,
lib.eventdev.tx.adapter.enq);
/* Eventdev Timer adapter trace points */
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_adapter_create,
lib.eventdev.timer.create);
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_adapter_start,
lib.eventdev.timer.start);
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_adapter_stop,
lib.eventdev.timer.stop);
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_adapter_free,
lib.eventdev.timer.free);
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_arm_burst,
lib.eventdev.timer.burst);
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_arm_tmo_tick_burst,
lib.eventdev.timer.tick.burst);
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_cancel_burst,
lib.eventdev.timer.cancel);
/* Eventdev Crypto adapter trace points */
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_create,
lib.eventdev.crypto.create);
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_free,
lib.eventdev.crypto.free);
RTE_TRACE_POINT_REGISTER(
rte_eventdev_trace_crypto_adapter_queue_pair_add,
lib.eventdev.crypto.queue.add);
RTE_TRACE_POINT_REGISTER(
rte_eventdev_trace_crypto_adapter_queue_pair_del,
lib.eventdev.crypto.queue.del);
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_start,
lib.eventdev.crypto.start);
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_stop,
lib.eventdev.crypto.stop);
}