2020-04-22 19:03:46 +00:00
|
|
|
/* SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
* Copyright(C) 2020 Marvell International Ltd.
|
|
|
|
*/
|
|
|
|
|
2020-04-29 13:46:49 +00:00
|
|
|
#include <rte_trace_point_register.h>
|
2020-04-22 19:03:46 +00:00
|
|
|
|
2021-10-18 23:36:08 +00:00
|
|
|
#include "eventdev_trace.h"
|
2020-04-22 19:03:46 +00:00
|
|
|
|
|
|
|
/* Eventdev trace points */
|
2020-07-04 15:14:08 +00:00
|
|
|
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_configure,
|
|
|
|
lib.eventdev.configure)
|
2020-04-22 19:03:46 +00:00
|
|
|
|
2020-07-04 15:14:08 +00:00
|
|
|
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_queue_setup,
|
|
|
|
lib.eventdev.queue.setup)
|
2020-04-22 19:03:46 +00:00
|
|
|
|
2020-07-04 15:14:08 +00:00
|
|
|
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_port_setup,
|
|
|
|
lib.eventdev.port.setup)
|
2020-04-22 19:03:46 +00:00
|
|
|
|
2020-07-04 15:14:08 +00:00
|
|
|
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_port_link,
|
|
|
|
lib.eventdev.port.link)
|
2020-04-22 19:03:46 +00:00
|
|
|
|
2020-07-04 15:14:08 +00:00
|
|
|
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_port_unlink,
|
|
|
|
lib.eventdev.port.unlink)
|
2020-04-22 19:03:46 +00:00
|
|
|
|
2020-07-04 15:14:08 +00:00
|
|
|
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_start,
|
|
|
|
lib.eventdev.start)
|
2020-04-22 19:03:46 +00:00
|
|
|
|
2020-07-04 15:14:08 +00:00
|
|
|
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_stop,
|
|
|
|
lib.eventdev.stop)
|
2020-04-22 19:03:46 +00:00
|
|
|
|
2020-07-04 15:14:08 +00:00
|
|
|
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_close,
|
|
|
|
lib.eventdev.close)
|
2020-04-22 19:03:46 +00:00
|
|
|
|
2020-07-04 15:14:08 +00:00
|
|
|
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_enq_burst,
|
|
|
|
lib.eventdev.enq.burst)
|
2020-04-22 19:03:46 +00:00
|
|
|
|
2020-07-04 15:14:08 +00:00
|
|
|
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_deq_burst,
|
|
|
|
lib.eventdev.deq.burst)
|
2020-04-22 19:03:46 +00:00
|
|
|
|
2021-11-01 18:40:14 +00:00
|
|
|
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_maintain,
|
|
|
|
lib.eventdev.maintain)
|
|
|
|
|
2020-07-04 15:14:08 +00:00
|
|
|
/* Eventdev Rx adapter trace points */
|
|
|
|
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_create,
|
|
|
|
lib.eventdev.rx.adapter.create)
|
2020-04-22 19:03:46 +00:00
|
|
|
|
2020-07-04 15:14:08 +00:00
|
|
|
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_free,
|
|
|
|
lib.eventdev.rx.adapter.free)
|
2020-04-22 19:03:46 +00:00
|
|
|
|
2020-07-04 15:14:08 +00:00
|
|
|
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_queue_add,
|
|
|
|
lib.eventdev.rx.adapter.queue.add)
|
2020-04-22 19:03:46 +00:00
|
|
|
|
2020-07-04 15:14:08 +00:00
|
|
|
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_queue_del,
|
|
|
|
lib.eventdev.rx.adapter.queue.del)
|
2020-04-22 19:03:46 +00:00
|
|
|
|
2020-07-04 15:14:08 +00:00
|
|
|
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_start,
|
|
|
|
lib.eventdev.rx.adapter.start)
|
2020-04-22 19:03:46 +00:00
|
|
|
|
2020-07-04 15:14:08 +00:00
|
|
|
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_stop,
|
|
|
|
lib.eventdev.rx.adapter.stop)
|
2020-04-22 19:03:46 +00:00
|
|
|
|
2020-07-04 15:14:08 +00:00
|
|
|
/* Eventdev Tx adapter trace points */
|
|
|
|
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_create,
|
|
|
|
lib.eventdev.tx.adapter.create)
|
2020-04-22 19:03:46 +00:00
|
|
|
|
2020-07-04 15:14:08 +00:00
|
|
|
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_free,
|
|
|
|
lib.eventdev.tx.adapter.free)
|
2020-04-22 19:03:46 +00:00
|
|
|
|
2020-07-04 15:14:08 +00:00
|
|
|
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_queue_add,
|
|
|
|
lib.eventdev.tx.adapter.queue.add)
|
2020-04-22 19:03:46 +00:00
|
|
|
|
2020-07-04 15:14:08 +00:00
|
|
|
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_queue_del,
|
|
|
|
lib.eventdev.tx.adapter.queue.del)
|
2020-04-22 19:03:46 +00:00
|
|
|
|
2020-07-04 15:14:08 +00:00
|
|
|
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_start,
|
|
|
|
lib.eventdev.tx.adapter.start)
|
2020-04-22 19:03:46 +00:00
|
|
|
|
2020-07-04 15:14:08 +00:00
|
|
|
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_stop,
|
|
|
|
lib.eventdev.tx.adapter.stop)
|
2020-04-22 19:03:46 +00:00
|
|
|
|
2020-07-04 15:14:08 +00:00
|
|
|
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_enqueue,
|
|
|
|
lib.eventdev.tx.adapter.enq)
|
2020-04-22 19:03:46 +00:00
|
|
|
|
2020-07-04 15:14:08 +00:00
|
|
|
/* Eventdev Timer adapter trace points */
|
|
|
|
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_adapter_create,
|
|
|
|
lib.eventdev.timer.create)
|
2020-04-22 19:03:46 +00:00
|
|
|
|
2020-07-04 15:14:08 +00:00
|
|
|
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_adapter_start,
|
|
|
|
lib.eventdev.timer.start)
|
2020-04-22 19:03:46 +00:00
|
|
|
|
2020-07-04 15:14:08 +00:00
|
|
|
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_adapter_stop,
|
|
|
|
lib.eventdev.timer.stop)
|
2020-04-22 19:03:46 +00:00
|
|
|
|
2020-07-04 15:14:08 +00:00
|
|
|
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_adapter_free,
|
|
|
|
lib.eventdev.timer.free)
|
2020-04-22 19:03:46 +00:00
|
|
|
|
2020-07-04 15:14:08 +00:00
|
|
|
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_arm_burst,
|
|
|
|
lib.eventdev.timer.burst)
|
2020-04-22 19:03:46 +00:00
|
|
|
|
2020-07-04 15:14:08 +00:00
|
|
|
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_arm_tmo_tick_burst,
|
|
|
|
lib.eventdev.timer.tick.burst)
|
2020-04-22 19:03:46 +00:00
|
|
|
|
2020-07-04 15:14:08 +00:00
|
|
|
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_cancel_burst,
|
|
|
|
lib.eventdev.timer.cancel)
|
2020-04-22 19:03:46 +00:00
|
|
|
|
2020-07-04 15:14:08 +00:00
|
|
|
/* Eventdev Crypto adapter trace points */
|
|
|
|
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_create,
|
|
|
|
lib.eventdev.crypto.create)
|
2020-04-22 19:03:46 +00:00
|
|
|
|
2020-07-04 15:14:08 +00:00
|
|
|
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_free,
|
|
|
|
lib.eventdev.crypto.free)
|
2020-04-22 19:03:46 +00:00
|
|
|
|
2020-07-04 15:14:08 +00:00
|
|
|
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_queue_pair_add,
|
|
|
|
lib.eventdev.crypto.queue.add)
|
2020-04-22 19:03:46 +00:00
|
|
|
|
2020-07-04 15:14:08 +00:00
|
|
|
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_queue_pair_del,
|
|
|
|
lib.eventdev.crypto.queue.del)
|
2020-04-22 19:03:46 +00:00
|
|
|
|
2020-07-04 15:14:08 +00:00
|
|
|
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_start,
|
|
|
|
lib.eventdev.crypto.start)
|
2020-04-22 19:03:46 +00:00
|
|
|
|
2020-07-04 15:14:08 +00:00
|
|
|
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_stop,
|
|
|
|
lib.eventdev.crypto.stop)
|
eventdev: introduce crypto adapter enqueue API
In case an event from a previous stage is required to be forwarded
to a crypto adapter and PMD supports internal event port in crypto
adapter, exposed via capability
RTE_EVENT_CRYPTO_ADAPTER_CAP_INTERNAL_PORT_OP_FWD, we do not have
a way to check in the API rte_event_enqueue_burst(), whether it is
for crypto adapter or for eth tx adapter.
Hence we need a new API similar to rte_event_eth_tx_adapter_enqueue(),
which can send to a crypto adapter.
Note that RTE_EVENT_TYPE_* cannot be used to make that decision,
as it is meant for event source and not event destination.
And event port designated for crypto adapter is designed to be used
for OP_NEW mode.
Hence, in order to support an event PMD which has an internal event port
in crypto adapter (RTE_EVENT_CRYPTO_ADAPTER_OP_FORWARD mode), exposed
via capability RTE_EVENT_CRYPTO_ADAPTER_CAP_INTERNAL_PORT_OP_FWD,
application should use rte_event_crypto_adapter_enqueue() API to enqueue
events.
When internal port is not available(RTE_EVENT_CRYPTO_ADAPTER_OP_NEW mode),
application can use API rte_event_enqueue_burst() as it was doing earlier,
i.e. retrieve event port used by crypto adapter and bind its event queues
to that port and enqueue events using the API rte_event_enqueue_burst().
Signed-off-by: Akhil Goyal <gakhil@marvell.com>
Acked-by: Abhinandan Gujjar <abhinandan.gujjar@intel.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
2021-04-15 09:13:49 +00:00
|
|
|
|
|
|
|
RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_enqueue,
|
|
|
|
lib.eventdev.crypto.enq)
|