DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] eventdev: add trace points
@ 2022-12-19 14:11 Amit Prakash Shukla
  2023-01-03  5:57 ` Gujjar, Abhinandan S
  2023-01-30 10:13 ` [PATCH v2] " Amit Prakash Shukla
  0 siblings, 2 replies; 14+ messages in thread
From: Amit Prakash Shukla @ 2022-12-19 14:11 UTC (permalink / raw)
  To: Jerin Jacob, Abhinandan Gujjar, Naga Harish K S V, Erik Gabriel Carrillo
  Cc: dev, Amit Prakash Shukla

Add trace points for cryptodev functions.

Signed-off-by: Amit Prakash Shukla <amitprakashs@marvell.com>
---
 lib/eventdev/eventdev_trace.h           | 502 ++++++++++++++++++++++--
 lib/eventdev/eventdev_trace_points.c    | 123 ++++++
 lib/eventdev/rte_event_crypto_adapter.c |  18 +-
 lib/eventdev/rte_event_eth_rx_adapter.c |  16 +
 lib/eventdev/rte_event_eth_tx_adapter.c |   4 +
 lib/eventdev/rte_event_ring.c           |   9 +
 lib/eventdev/rte_event_timer_adapter.c  |   6 +
 lib/eventdev/rte_eventdev.c             |  50 ++-
 lib/eventdev/version.map                |  47 +++
 9 files changed, 731 insertions(+), 44 deletions(-)

diff --git a/lib/eventdev/eventdev_trace.h b/lib/eventdev/eventdev_trace.h
index d48cd58850..9443bbfa83 100644
--- a/lib/eventdev/eventdev_trace.h
+++ b/lib/eventdev/eventdev_trace.h
@@ -21,6 +21,9 @@ extern "C" {
 #include "rte_event_crypto_adapter.h"
 #include "rte_event_eth_rx_adapter.h"
 #include "rte_event_timer_adapter.h"
+#include "eventdev_pmd.h"
+#include "cryptodev_pmd.h"
+#include "ethdev_driver.h"
 
 RTE_TRACE_POINT(
 	rte_eventdev_trace_configure,
@@ -63,6 +66,7 @@ RTE_TRACE_POINT(
 	rte_trace_point_emit_u16(port_conf->enqueue_depth);
 	rte_trace_point_emit_u32(port_conf->event_port_cfg);
 	rte_trace_point_emit_int(rc);
+	rte_trace_point_emit_ptr(port_conf);
 )
 
 RTE_TRACE_POINT(
@@ -106,9 +110,9 @@ RTE_TRACE_POINT(
 
 RTE_TRACE_POINT(
 	rte_eventdev_trace_eth_rx_adapter_create,
-	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint8_t dev_id, void *conf_cb,
+	RTE_TRACE_POINT_ARGS(uint8_t adapter_id, uint8_t dev_id, void *conf_cb,
 		void *conf_arg),
-	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_u8(adapter_id);
 	rte_trace_point_emit_u8(dev_id);
 	rte_trace_point_emit_ptr(conf_cb);
 	rte_trace_point_emit_ptr(conf_arg);
@@ -116,17 +120,17 @@ RTE_TRACE_POINT(
 
 RTE_TRACE_POINT(
 	rte_eventdev_trace_eth_rx_adapter_free,
-	RTE_TRACE_POINT_ARGS(uint8_t adptr_id),
-	rte_trace_point_emit_u8(adptr_id);
+	RTE_TRACE_POINT_ARGS(uint8_t adapter_id),
+	rte_trace_point_emit_u8(adapter_id);
 )
 
 RTE_TRACE_POINT(
 	rte_eventdev_trace_eth_rx_adapter_queue_add,
-	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint16_t eth_dev_id,
+	RTE_TRACE_POINT_ARGS(uint8_t adapter_id, uint16_t eth_dev_id,
 		int32_t rx_queue_id,
 		const struct rte_event_eth_rx_adapter_queue_conf *queue_conf,
 		int rc),
-	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_u8(adapter_id);
 	rte_trace_point_emit_u16(eth_dev_id);
 	rte_trace_point_emit_i32(rx_queue_id);
 	rte_trace_point_emit_u32(queue_conf->rx_queue_flags);
@@ -138,9 +142,9 @@ RTE_TRACE_POINT(
 
 RTE_TRACE_POINT(
 	rte_eventdev_trace_eth_rx_adapter_queue_del,
-	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint16_t eth_dev_id,
+	RTE_TRACE_POINT_ARGS(uint8_t adapter_id, uint16_t eth_dev_id,
 		int32_t rx_queue_id, int rc),
-	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_u8(adapter_id);
 	rte_trace_point_emit_u16(eth_dev_id);
 	rte_trace_point_emit_i32(rx_queue_id);
 	rte_trace_point_emit_int(rc);
@@ -148,21 +152,21 @@ RTE_TRACE_POINT(
 
 RTE_TRACE_POINT(
 	rte_eventdev_trace_eth_rx_adapter_start,
-	RTE_TRACE_POINT_ARGS(uint8_t adptr_id),
-	rte_trace_point_emit_u8(adptr_id);
+	RTE_TRACE_POINT_ARGS(uint8_t adapter_id),
+	rte_trace_point_emit_u8(adapter_id);
 )
 
 RTE_TRACE_POINT(
 	rte_eventdev_trace_eth_rx_adapter_stop,
-	RTE_TRACE_POINT_ARGS(uint8_t adptr_id),
-	rte_trace_point_emit_u8(adptr_id);
+	RTE_TRACE_POINT_ARGS(uint8_t adapter_id),
+	rte_trace_point_emit_u8(adapter_id);
 )
 
 RTE_TRACE_POINT(
 	rte_eventdev_trace_eth_tx_adapter_create,
-	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint8_t dev_id, void *conf_cb,
+	RTE_TRACE_POINT_ARGS(uint8_t adapter_id, uint8_t dev_id, void *conf_cb,
 		struct rte_event_port_conf *port_conf, int rc),
-	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_u8(adapter_id);
 	rte_trace_point_emit_u8(dev_id);
 	rte_trace_point_emit_i32(port_conf->new_event_threshold);
 	rte_trace_point_emit_u16(port_conf->dequeue_depth);
@@ -174,16 +178,16 @@ RTE_TRACE_POINT(
 
 RTE_TRACE_POINT(
 	rte_eventdev_trace_eth_tx_adapter_free,
-	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, int rc),
-	rte_trace_point_emit_u8(adptr_id);
+	RTE_TRACE_POINT_ARGS(uint8_t adapter_id, int rc),
+	rte_trace_point_emit_u8(adapter_id);
 	rte_trace_point_emit_int(rc);
 )
 
 RTE_TRACE_POINT(
 	rte_eventdev_trace_eth_tx_adapter_queue_add,
-	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint16_t eth_dev_id,
+	RTE_TRACE_POINT_ARGS(uint8_t adapter_id, uint16_t eth_dev_id,
 		int32_t queue, int rc),
-	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_u8(adapter_id);
 	rte_trace_point_emit_u16(eth_dev_id);
 	rte_trace_point_emit_i32(queue);
 	rte_trace_point_emit_int(rc);
@@ -191,9 +195,9 @@ RTE_TRACE_POINT(
 
 RTE_TRACE_POINT(
 	rte_eventdev_trace_eth_tx_adapter_queue_del,
-	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint16_t eth_dev_id,
+	RTE_TRACE_POINT_ARGS(uint8_t adapter_id, uint16_t eth_dev_id,
 		int32_t queue, int rc),
-	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_u8(adapter_id);
 	rte_trace_point_emit_u16(eth_dev_id);
 	rte_trace_point_emit_i32(queue);
 	rte_trace_point_emit_int(rc);
@@ -201,15 +205,15 @@ RTE_TRACE_POINT(
 
 RTE_TRACE_POINT(
 	rte_eventdev_trace_eth_tx_adapter_start,
-	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, int rc),
-	rte_trace_point_emit_u8(adptr_id);
+	RTE_TRACE_POINT_ARGS(uint8_t adapter_id, int rc),
+	rte_trace_point_emit_u8(adapter_id);
 	rte_trace_point_emit_int(rc);
 )
 
 RTE_TRACE_POINT(
 	rte_eventdev_trace_eth_tx_adapter_stop,
-	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, int rc),
-	rte_trace_point_emit_u8(adptr_id);
+	RTE_TRACE_POINT_ARGS(uint8_t adapter_id, int rc),
+	rte_trace_point_emit_u8(adapter_id);
 	rte_trace_point_emit_int(rc);
 )
 
@@ -250,22 +254,23 @@ RTE_TRACE_POINT(
 
 RTE_TRACE_POINT(
 	rte_eventdev_trace_crypto_adapter_create,
-	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint8_t dev_id, void *adapter,
-		struct rte_event_port_conf *port_conf, uint8_t mode),
-	rte_trace_point_emit_u8(adptr_id);
+	RTE_TRACE_POINT_ARGS(uint8_t id, uint8_t dev_id,
+		struct rte_event_port_conf *port_config, int mode, int ret),
+	rte_trace_point_emit_u8(id);
 	rte_trace_point_emit_u8(dev_id);
-	rte_trace_point_emit_ptr(adapter);
-	rte_trace_point_emit_u8(mode);
-	rte_trace_point_emit_i32(port_conf->new_event_threshold);
-	rte_trace_point_emit_u16(port_conf->dequeue_depth);
-	rte_trace_point_emit_u16(port_conf->enqueue_depth);
-	rte_trace_point_emit_u32(port_conf->event_port_cfg);
+	rte_trace_point_emit_ptr(port_config);
+	rte_trace_point_emit_i32(port_config->new_event_threshold);
+	rte_trace_point_emit_u16(port_config->dequeue_depth);
+	rte_trace_point_emit_u16(port_config->enqueue_depth);
+	rte_trace_point_emit_u32(port_config->event_port_cfg);
+	rte_trace_point_emit_int(mode);
+	rte_trace_point_emit_int(ret);
 )
 
 RTE_TRACE_POINT(
 	rte_eventdev_trace_crypto_adapter_free,
-	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, void *adapter),
-	rte_trace_point_emit_u8(adptr_id);
+	RTE_TRACE_POINT_ARGS(uint8_t adapter_id, const void *adapter),
+	rte_trace_point_emit_u8(adapter_id);
 	rte_trace_point_emit_ptr(adapter);
 )
 
@@ -282,9 +287,9 @@ RTE_TRACE_POINT(
 
 RTE_TRACE_POINT(
 	rte_eventdev_trace_crypto_adapter_queue_pair_del,
-	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint8_t cdev_id,
+	RTE_TRACE_POINT_ARGS(uint8_t adapter_id, uint8_t cdev_id,
 		int32_t queue_pair_id, int rc),
-	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_u8(adapter_id);
 	rte_trace_point_emit_u8(cdev_id);
 	rte_trace_point_emit_i32(queue_pair_id);
 	rte_trace_point_emit_int(rc);
@@ -292,15 +297,430 @@ RTE_TRACE_POINT(
 
 RTE_TRACE_POINT(
 	rte_eventdev_trace_crypto_adapter_start,
-	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, void *adapter),
-	rte_trace_point_emit_u8(adptr_id);
+	RTE_TRACE_POINT_ARGS(uint8_t adapter_id, const void *adapter),
+	rte_trace_point_emit_u8(adapter_id);
 	rte_trace_point_emit_ptr(adapter);
 )
 
 RTE_TRACE_POINT(
 	rte_eventdev_trace_crypto_adapter_stop,
-	RTE_TRACE_POINT_ARGS(uint8_t adptr_id),
-	rte_trace_point_emit_u8(adptr_id);
+	RTE_TRACE_POINT_ARGS(uint8_t adapter_id),
+	rte_trace_point_emit_u8(adapter_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_crypto_adapter_event_port_get,
+	RTE_TRACE_POINT_ARGS(uint8_t id, uint8_t event_port_id),
+	rte_trace_point_emit_u8(id);
+	rte_trace_point_emit_u8(event_port_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_crypto_adapter_service_id_get,
+	RTE_TRACE_POINT_ARGS(uint8_t id, uint32_t service_id),
+	rte_trace_point_emit_u8(id);
+	rte_trace_point_emit_u32(service_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_attr_get,
+	RTE_TRACE_POINT_ARGS(const struct rte_eventdev *dev, uint32_t attr_id,
+		uint32_t attr_value),
+	rte_trace_point_emit_ptr(dev);
+	rte_trace_point_emit_string(dev->data->name);
+	rte_trace_point_emit_u8(dev->data->dev_id);
+	rte_trace_point_emit_int(dev->data->socket_id);
+	rte_trace_point_emit_u32(attr_id);
+	rte_trace_point_emit_u32(attr_value);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_dump,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *f),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_ptr(f);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_get_dev_id,
+	RTE_TRACE_POINT_ARGS(const char *name, int dev_id),
+	rte_trace_point_emit_string(name);
+	rte_trace_point_emit_int(dev_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_info_get,
+	RTE_TRACE_POINT_ARGS(const char *name, uint8_t dev_id, int socket_id,
+		const char *device_name, const char *driver_name),
+	rte_trace_point_emit_string(name);
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_int(socket_id);
+	rte_trace_point_emit_string(device_name);
+	rte_trace_point_emit_string(driver_name);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_selftest,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id),
+	rte_trace_point_emit_u8(dev_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_service_id_get,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint32_t service_id),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_u32(service_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_socket_id,
+	RTE_TRACE_POINT_ARGS(const char *name, uint8_t dev_id, int socket_id),
+	rte_trace_point_emit_string(name);
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_int(socket_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_stop_flush_callback_register,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id,
+		eventdev_stop_flush_t callback, void *userdata),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_ptr(callback);
+	rte_trace_point_emit_ptr(userdata);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_rx_adapter_caps_get,
+	RTE_TRACE_POINT_ARGS(const char *name, uint8_t dev_id, int socket_id,
+		uint16_t eth_port_id),
+	rte_trace_point_emit_string(name);
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_int(socket_id);
+	rte_trace_point_emit_u16(eth_port_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_rx_adapter_cb_register,
+	RTE_TRACE_POINT_ARGS(uint8_t id, uint16_t eth_dev_id, const void *cb_fn,
+		const void *cb_arg),
+	rte_trace_point_emit_u8(id);
+	rte_trace_point_emit_u16(eth_dev_id);
+	rte_trace_point_emit_ptr(cb_fn);
+	rte_trace_point_emit_ptr(cb_arg);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_rx_adapter_create_with_params,
+	RTE_TRACE_POINT_ARGS(uint8_t id, uint8_t dev_id,
+		const struct rte_event_port_conf *port_config,
+		const struct rte_event_eth_rx_adapter_params *rxa_params,
+		int ret),
+	rte_trace_point_emit_u8(id);
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_ptr(port_config);
+	rte_trace_point_emit_i32(port_config->new_event_threshold);
+	rte_trace_point_emit_u16(port_config->dequeue_depth);
+	rte_trace_point_emit_u16(port_config->enqueue_depth);
+	rte_trace_point_emit_u32(port_config->event_port_cfg);
+	rte_trace_point_emit_ptr(rxa_params);
+	rte_trace_point_emit_u16(rxa_params->event_buf_size);
+	rte_trace_point_emit_int(ret);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_rx_adapter_service_id_get,
+	RTE_TRACE_POINT_ARGS(uint8_t id, uint32_t service_id),
+	rte_trace_point_emit_u8(id);
+	rte_trace_point_emit_u32(service_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_rx_adapter_vector_limits_get,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint16_t eth_port_id,
+		uint16_t min_sz, uint16_t max_sz, uint8_t log2_sz,
+		uint64_t min_timeout_ns, uint64_t max_timeout_ns, int ret),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_u16(eth_port_id);
+	rte_trace_point_emit_u16(min_sz);
+	rte_trace_point_emit_u16(max_sz);
+	rte_trace_point_emit_u8(log2_sz);
+	rte_trace_point_emit_u64(min_timeout_ns);
+	rte_trace_point_emit_u64(max_timeout_ns);
+	rte_trace_point_emit_int(ret);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_tx_adapter_caps_get,
+	RTE_TRACE_POINT_ARGS(const struct rte_eventdev *dev,
+		const struct rte_eth_dev *eth_dev, uint16_t eth_port_id),
+	rte_trace_point_emit_ptr(dev);
+	rte_trace_point_emit_string(dev->data->name);
+	rte_trace_point_emit_u8(dev->data->dev_id);
+	rte_trace_point_emit_int(dev->data->socket_id);
+	rte_trace_point_emit_ptr(eth_dev);
+	rte_trace_point_emit_string(eth_dev->data->name);
+	rte_trace_point_emit_u16(eth_port_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_tx_adapter_event_port_get,
+	RTE_TRACE_POINT_ARGS(uint8_t id, uint8_t event_port_id),
+	rte_trace_point_emit_u8(id);
+	rte_trace_point_emit_u8(event_port_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_tx_adapter_service_id_get,
+	RTE_TRACE_POINT_ARGS(uint8_t id, uint32_t service_id),
+	rte_trace_point_emit_u8(id);
+	rte_trace_point_emit_u32(service_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_port_attr_get,
+	RTE_TRACE_POINT_ARGS(const struct rte_eventdev *dev, uint8_t port_id,
+		uint32_t attr_id, uint32_t attr_value),
+	rte_trace_point_emit_ptr(dev);
+	rte_trace_point_emit_string(dev->data->name);
+	rte_trace_point_emit_u8(dev->data->dev_id);
+	rte_trace_point_emit_int(dev->data->socket_id);
+	rte_trace_point_emit_u8(port_id);
+	rte_trace_point_emit_u32(attr_id);
+	rte_trace_point_emit_u32(attr_value);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_port_default_conf_get,
+	RTE_TRACE_POINT_ARGS(const struct rte_eventdev *dev, uint8_t port_id,
+		const struct rte_event_port_conf *port_conf),
+	rte_trace_point_emit_ptr(dev);
+	rte_trace_point_emit_string(dev->data->name);
+	rte_trace_point_emit_u8(dev->data->dev_id);
+	rte_trace_point_emit_int(dev->data->socket_id);
+	rte_trace_point_emit_u8(port_id);
+	rte_trace_point_emit_ptr(port_conf);
+	rte_trace_point_emit_i32(port_conf->new_event_threshold);
+	rte_trace_point_emit_u16(port_conf->dequeue_depth);
+	rte_trace_point_emit_u16(port_conf->enqueue_depth);
+	rte_trace_point_emit_u32(port_conf->event_port_cfg);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_port_links_get,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint8_t port_id, int count),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_u8(port_id);
+	rte_trace_point_emit_int(count);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_port_unlinks_in_progress,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint8_t port_id),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_u8(port_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_queue_attr_get,
+	RTE_TRACE_POINT_ARGS(const struct rte_eventdev *dev,
+		const struct rte_event_queue_conf *conf, uint8_t queue_id,
+		uint32_t attr_id),
+	rte_trace_point_emit_ptr(dev);
+	rte_trace_point_emit_string(dev->data->name);
+	rte_trace_point_emit_u8(dev->data->dev_id);
+	rte_trace_point_emit_int(dev->data->socket_id);
+	rte_trace_point_emit_ptr(conf);
+	rte_trace_point_emit_u32(conf->nb_atomic_flows);
+	rte_trace_point_emit_u32(conf->nb_atomic_order_sequences);
+	rte_trace_point_emit_u32(conf->event_queue_cfg);
+	rte_trace_point_emit_u8(conf->schedule_type);
+	rte_trace_point_emit_u8(conf->priority);
+	rte_trace_point_emit_u8(queue_id);
+	rte_trace_point_emit_u32(attr_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_queue_default_conf_get,
+	RTE_TRACE_POINT_ARGS(const struct rte_eventdev *dev, uint8_t queue_id,
+		const struct rte_event_queue_conf *queue_conf),
+	rte_trace_point_emit_ptr(dev);
+	rte_trace_point_emit_string(dev->data->name);
+	rte_trace_point_emit_u8(dev->data->dev_id);
+	rte_trace_point_emit_int(dev->data->socket_id);
+	rte_trace_point_emit_u8(queue_id);
+	rte_trace_point_emit_ptr(queue_conf);
+	rte_trace_point_emit_u32(queue_conf->nb_atomic_flows);
+	rte_trace_point_emit_u32(queue_conf->nb_atomic_order_sequences);
+	rte_trace_point_emit_u32(queue_conf->event_queue_cfg);
+	rte_trace_point_emit_u8(queue_conf->schedule_type);
+	rte_trace_point_emit_u8(queue_conf->priority);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_ring_create,
+	RTE_TRACE_POINT_ARGS(const char *name, unsigned int count,
+		int socket_id, unsigned int flags),
+	rte_trace_point_emit_string(name);
+	rte_trace_point_emit_u32(count);
+	rte_trace_point_emit_int(socket_id);
+	rte_trace_point_emit_u32(flags);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_ring_free,
+	RTE_TRACE_POINT_ARGS(const char *name),
+	rte_trace_point_emit_string(name);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_ring_init,
+	RTE_TRACE_POINT_ARGS(const void *r, const char *name,
+		unsigned int count, unsigned int flags),
+	rte_trace_point_emit_ptr(r);
+	rte_trace_point_emit_string(name);
+	rte_trace_point_emit_u32(count);
+	rte_trace_point_emit_u32(flags);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_ring_lookup,
+	RTE_TRACE_POINT_ARGS(const char *name),
+	rte_trace_point_emit_string(name);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_timer_adapter_caps_get,
+	RTE_TRACE_POINT_ARGS(const char *name, uint8_t dev_id, int socket_id),
+	rte_trace_point_emit_string(name);
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_int(socket_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_timer_adapter_get_info,
+	RTE_TRACE_POINT_ARGS(const struct rte_event_timer_adapter *adapter,
+		const struct rte_event_timer_adapter_info *adapter_info),
+	rte_trace_point_emit_ptr(adapter);
+	rte_trace_point_emit_u8(adapter->data->id);
+	rte_trace_point_emit_u8(adapter->data->event_dev_id);
+	rte_trace_point_emit_u32(adapter->data->socket_id);
+	rte_trace_point_emit_ptr(adapter_info);
+	rte_trace_point_emit_u64(adapter_info->min_resolution_ns);
+	rte_trace_point_emit_u64(adapter_info->max_tmo_ns);
+	rte_trace_point_emit_u32(adapter_info->caps);
+	rte_trace_point_emit_u16(adapter_info->event_dev_port_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_timer_adapter_lookup,
+	RTE_TRACE_POINT_ARGS(uint16_t adapter_id, const void *adapter),
+	rte_trace_point_emit_u16(adapter_id);
+	rte_trace_point_emit_ptr(adapter);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_timer_adapter_service_id_get,
+	RTE_TRACE_POINT_ARGS(const struct rte_event_timer_adapter *adapter,
+		uint32_t service_id),
+	rte_trace_point_emit_ptr(adapter);
+	rte_trace_point_emit_u32(service_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_vector_pool_create,
+	RTE_TRACE_POINT_ARGS(const void *mp, const char *name, int socket_id,
+		uint32_t size, uint32_t cache_size, uint32_t elt_size),
+	rte_trace_point_emit_ptr(mp);
+	rte_trace_point_emit_string(name);
+	rte_trace_point_emit_int(socket_id);
+	rte_trace_point_emit_u32(size);
+	rte_trace_point_emit_u32(cache_size);
+	rte_trace_point_emit_u32(elt_size);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_rx_adapter_queue_conf_get,
+	RTE_TRACE_POINT_ARGS(uint8_t id, uint16_t eth_dev_id,
+		uint16_t rx_queue_id, const void *queue_conf),
+	rte_trace_point_emit_u8(id);
+	rte_trace_point_emit_u16(eth_dev_id);
+	rte_trace_point_emit_u16(rx_queue_id);
+	rte_trace_point_emit_ptr(queue_conf);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_queue_attr_set,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint8_t queue_id, uint32_t attr_id,
+		uint32_t attr_value),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_u8(queue_id);
+	rte_trace_point_emit_u32(attr_id);
+	rte_trace_point_emit_u32(attr_value);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_port_quiesce,
+	RTE_TRACE_POINT_ARGS(const struct rte_eventdev *dev, uint8_t port_id),
+	rte_trace_point_emit_ptr(dev);
+	rte_trace_point_emit_string(dev->data->name);
+	rte_trace_point_emit_u8(dev->data->dev_id);
+	rte_trace_point_emit_int(dev->data->socket_id);
+	rte_trace_point_emit_u8(port_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_crypto_adapter_caps_get,
+	RTE_TRACE_POINT_ARGS(const struct rte_eventdev *dev,
+		const struct rte_cryptodev *cdev),
+	rte_trace_point_emit_ptr(dev);
+	rte_trace_point_emit_string(dev->data->name);
+	rte_trace_point_emit_u8(dev->data->dev_id);
+	rte_trace_point_emit_int(dev->data->socket_id);
+	rte_trace_point_emit_ptr(cdev);
+	rte_trace_point_emit_string(cdev->data->name);
+	rte_trace_point_emit_u8(cdev->data->dev_id);
+	rte_trace_point_emit_u8(cdev->data->socket_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_dequeue_timeout_ticks,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint64_t ns,
+		const void *timeout_ticks),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_u64(ns);
+	rte_trace_point_emit_ptr(timeout_ticks);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_crypto_adapter_stats_get,
+	RTE_TRACE_POINT_ARGS(uint8_t id, const void *stats,
+		uint64_t event_poll_count, uint64_t event_deq_count,
+		uint64_t crypto_enq_count, uint64_t crypto_enq_fail,
+		uint64_t crypto_deq_count, uint64_t event_enq_count,
+		uint64_t event_enq_retry_count,	uint64_t event_enq_fail_count),
+	rte_trace_point_emit_u8(id);
+	rte_trace_point_emit_ptr(stats);
+	rte_trace_point_emit_u64(event_poll_count);
+	rte_trace_point_emit_u64(event_deq_count);
+	rte_trace_point_emit_u64(crypto_enq_count);
+	rte_trace_point_emit_u64(crypto_enq_fail);
+	rte_trace_point_emit_u64(crypto_deq_count);
+	rte_trace_point_emit_u64(event_enq_count);
+	rte_trace_point_emit_u64(event_enq_retry_count);
+	rte_trace_point_emit_u64(event_enq_fail_count);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_crypto_adapter_stats_reset,
+	RTE_TRACE_POINT_ARGS(uint8_t id),
+	rte_trace_point_emit_u8(id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_rx_adapter_stats_get,
+	RTE_TRACE_POINT_ARGS(uint8_t id, const void *stats),
+	rte_trace_point_emit_u8(id);
+	rte_trace_point_emit_ptr(stats);
 )
 
 #ifdef __cplusplus
diff --git a/lib/eventdev/eventdev_trace_points.c b/lib/eventdev/eventdev_trace_points.c
index de6b1f4417..a3db2fb0bb 100644
--- a/lib/eventdev/eventdev_trace_points.c
+++ b/lib/eventdev/eventdev_trace_points.c
@@ -124,3 +124,126 @@ RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_stop,
 
 RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_enqueue,
 	lib.eventdev.crypto.enq)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_event_port_get,
+	lib.eventdev.crypto.adapter_event_port_get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_service_id_get,
+	lib.eventdev.crypto.adapter_service_id_get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_attr_get,
+	lib.eventdev.attr_get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_dump,
+	lib.eventdev.dump)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_get_dev_id,
+	lib.eventdev.get_dev_id)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_info_get,
+	lib.eventdev.info_get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_selftest,
+	lib.eventdev.selftest)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_service_id_get,
+	lib.eventdev.service_id_get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_socket_id,
+	lib.eventdev.socket.id)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_stop_flush_callback_register,
+	lib.eventdev.stop.flush.callback.register)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_caps_get,
+	lib.eventdev.eth.rx.adapter.caps.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_cb_register,
+	lib.eventdev.eth.rx.adapter.cb.register)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_service_id_get,
+	lib.eventdev.eth.rx.adapter.service.id.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_vector_limits_get,
+	lib.eventdev.eth.rx.adapter.vector.limits.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_caps_get,
+	lib.eventdev.eth.tx.adapter.caps.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_event_port_get,
+	lib.eventdev.eth.tx.adapter.event.port.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_service_id_get,
+	lib.eventdev.eth.tx.adapter.service.id.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_port_attr_get,
+	lib.eventdev.port.attr.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_port_default_conf_get,
+	lib.eventdev.port.default.conf.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_port_links_get,
+	lib.eventdev.port.links.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_port_unlinks_in_progress,
+	lib.eventdev.port.unlinks.in.progress)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_queue_attr_get,
+	lib.eventdev.queue.attr.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_queue_default_conf_get,
+	lib.eventdev.queue.default.conf.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_ring_create,
+	lib.eventdev.ring.create)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_ring_free,
+	lib.eventdev.ring.free)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_ring_init,
+	lib.eventdev.ring.init)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_ring_lookup,
+	lib.eventdev.ring.lookup)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_adapter_caps_get,
+	lib.eventdev.timer.adapter.caps.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_adapter_get_info,
+	lib.eventdev.timer.adapter.get.info)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_adapter_lookup,
+	lib.eventdev.timer.adapter.lookup)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_adapter_service_id_get,
+	lib.eventdev.timer.adapter.service.id.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_vector_pool_create,
+	lib.eventdev.vector.pool.create)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_create_with_params,
+	lib.eventdev.eth.rx.adapter.create.with.params)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_queue_conf_get,
+	lib.eventdev.eth.rx.adapter.queue.conf.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_queue_attr_set,
+	lib.eventdev.queue.attr.set)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_port_quiesce,
+	lib.eventdev.port.quiesce)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_caps_get,
+	lib.eventdev.crypto.adapter.caps.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_dequeue_timeout_ticks,
+	lib.eventdev.dequeue.timeout.ticks)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_stats_get,
+	lib.eventdev.crypto.adapter.stats.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_stats_reset,
+	lib.eventdev.crypto.adapter.stats.reset)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_stats_get,
+	lib.eventdev.rx.adapter.stats.get)
diff --git a/lib/eventdev/rte_event_crypto_adapter.c b/lib/eventdev/rte_event_crypto_adapter.c
index 3c585d7b0d..deace64dd6 100644
--- a/lib/eventdev/rte_event_crypto_adapter.c
+++ b/lib/eventdev/rte_event_crypto_adapter.c
@@ -395,8 +395,6 @@ rte_event_crypto_adapter_create_ext(uint8_t id, uint8_t dev_id,
 
 	event_crypto_adapter[id] = adapter;
 
-	rte_eventdev_trace_crypto_adapter_create(id, dev_id, adapter, conf_arg,
-		mode);
 	return 0;
 }
 
@@ -424,6 +422,9 @@ rte_event_crypto_adapter_create(uint8_t id, uint8_t dev_id,
 	if (ret)
 		rte_free(pc);
 
+	rte_eventdev_trace_crypto_adapter_create(id, dev_id, port_config, mode,
+		ret);
+
 	return ret;
 }
 
@@ -1289,6 +1290,12 @@ rte_event_crypto_adapter_stats_get(uint8_t id,
 	stats->crypto_deq_count += dev_stats_sum.crypto_deq_count;
 	stats->event_enq_count += dev_stats_sum.event_enq_count;
 
+	rte_eventdev_trace_crypto_adapter_stats_get(id, stats,
+		stats->event_poll_count, stats->event_deq_count,
+		stats->crypto_enq_count, stats->crypto_enq_fail,
+		stats->crypto_deq_count, stats->event_enq_count,
+		stats->event_enq_retry_count, stats->event_enq_fail_count);
+
 	return 0;
 }
 
@@ -1320,6 +1327,9 @@ rte_event_crypto_adapter_stats_reset(uint8_t id)
 	}
 
 	memset(&adapter->crypto_stats, 0, sizeof(adapter->crypto_stats));
+
+	rte_eventdev_trace_crypto_adapter_stats_reset(id);
+
 	return 0;
 }
 
@@ -1337,6 +1347,8 @@ rte_event_crypto_adapter_service_id_get(uint8_t id, uint32_t *service_id)
 	if (adapter->service_inited)
 		*service_id = adapter->service_id;
 
+	rte_eventdev_trace_crypto_adapter_service_id_get(id, *service_id);
+
 	return adapter->service_inited ? 0 : -ESRCH;
 }
 
@@ -1353,6 +1365,8 @@ rte_event_crypto_adapter_event_port_get(uint8_t id, uint8_t *event_port_id)
 
 	*event_port_id = adapter->event_port_id;
 
+	rte_eventdev_trace_crypto_adapter_event_port_get(id, *event_port_id);
+
 	return 0;
 }
 
diff --git a/lib/eventdev/rte_event_eth_rx_adapter.c b/lib/eventdev/rte_event_eth_rx_adapter.c
index cf7bbd4d69..578448cad4 100644
--- a/lib/eventdev/rte_event_eth_rx_adapter.c
+++ b/lib/eventdev/rte_event_eth_rx_adapter.c
@@ -2538,6 +2538,9 @@ rte_event_eth_rx_adapter_create_with_params(uint8_t id, uint8_t dev_id,
 	if (ret)
 		rte_free(pc);
 
+	rte_eventdev_trace_eth_rx_adapter_create_with_params(id, dev_id,
+		port_config, rxa_params, ret);
+
 	return ret;
 }
 
@@ -2926,6 +2929,9 @@ rte_event_eth_rx_adapter_vector_limits_get(
 		ret = rxa_sw_vector_limits(limits);
 	}
 
+	rte_eventdev_trace_eth_rx_adapter_vector_limits_get(dev_id, eth_port_id,
+		limits->min_sz, limits->max_sz, limits->log2_sz,
+		limits->min_timeout_ns, limits->max_timeout_ns, ret);
 	return ret;
 }
 
@@ -2967,6 +2973,8 @@ rte_event_eth_rx_adapter_stats_get(uint8_t id,
 	uint32_t i, j;
 	int ret;
 
+	rte_eventdev_trace_eth_rx_adapter_stats_get(id, stats);
+
 	if (rxa_memzone_lookup())
 		return -ENOMEM;
 
@@ -3200,6 +3208,8 @@ rte_event_eth_rx_adapter_service_id_get(uint8_t id, uint32_t *service_id)
 	if (rx_adapter->service_inited)
 		*service_id = rx_adapter->service_id;
 
+	rte_eventdev_trace_eth_rx_adapter_service_id_get(id, *service_id);
+
 	return rx_adapter->service_inited ? 0 : -ESRCH;
 }
 
@@ -3234,6 +3244,9 @@ rte_event_eth_rx_adapter_cb_register(uint8_t id,
 	uint32_t cap;
 	int ret;
 
+	rte_eventdev_trace_eth_rx_adapter_cb_register(id, eth_dev_id, cb_fn,
+						      cb_arg);
+
 	RTE_EVENT_ETH_RX_ADAPTER_ID_VALID_OR_ERR_RET(id, -EINVAL);
 	RTE_ETH_VALID_PORTID_OR_ERR_RET(eth_dev_id, -EINVAL);
 
@@ -3281,6 +3294,9 @@ rte_event_eth_rx_adapter_queue_conf_get(uint8_t id,
 	struct eth_rx_queue_info *queue_info;
 	int ret;
 
+	rte_eventdev_trace_eth_rx_adapter_queue_conf_get(id, eth_dev_id,
+		rx_queue_id, queue_conf);
+
 	if (rxa_memzone_lookup())
 		return -ENOMEM;
 
diff --git a/lib/eventdev/rte_event_eth_tx_adapter.c b/lib/eventdev/rte_event_eth_tx_adapter.c
index 88309d2aaa..ac040db6d9 100644
--- a/lib/eventdev/rte_event_eth_tx_adapter.c
+++ b/lib/eventdev/rte_event_eth_tx_adapter.c
@@ -985,6 +985,8 @@ txa_service_id_get(uint8_t id, uint32_t *service_id)
 {
 	struct txa_service_data *txa;
 
+	rte_eventdev_trace_eth_tx_adapter_service_id_get(id, *service_id);
+
 	txa = txa_service_id_to_data(id);
 	if (txa->service_id == TXA_INVALID_SERVICE_ID)
 		return -ESRCH;
@@ -1121,6 +1123,8 @@ rte_event_eth_tx_adapter_create_ext(uint8_t id, uint8_t dev_id,
 int
 rte_event_eth_tx_adapter_event_port_get(uint8_t id, uint8_t *event_port_id)
 {
+	rte_eventdev_trace_eth_tx_adapter_event_port_get(id, *event_port_id);
+
 	TXA_CHECK_OR_ERR_RET(id);
 
 	return txa_service_event_port_get(id, event_port_id);
diff --git a/lib/eventdev/rte_event_ring.c b/lib/eventdev/rte_event_ring.c
index c070715148..b965970cf9 100644
--- a/lib/eventdev/rte_event_ring.c
+++ b/lib/eventdev/rte_event_ring.c
@@ -5,6 +5,7 @@
 
 
 #include "rte_event_ring.h"
+#include "eventdev_trace.h"
 
 int
 rte_event_ring_init(struct rte_event_ring *r, const char *name,
@@ -14,6 +15,8 @@ rte_event_ring_init(struct rte_event_ring *r, const char *name,
 	RTE_BUILD_BUG_ON((sizeof(struct rte_event_ring) &
 			  RTE_CACHE_LINE_MASK) != 0);
 
+	rte_eventdev_trace_ring_init(r, name, count, flags);
+
 	/* init the ring structure */
 	return rte_ring_init(&r->r, name, count, flags);
 }
@@ -23,6 +26,8 @@ struct rte_event_ring *
 rte_event_ring_create(const char *name, unsigned int count, int socket_id,
 		unsigned int flags)
 {
+	rte_eventdev_trace_ring_create(name, count, socket_id, flags);
+
 	return (struct rte_event_ring *)rte_ring_create_elem(name,
 						sizeof(struct rte_event),
 						count, socket_id, flags);
@@ -32,6 +37,8 @@ rte_event_ring_create(const char *name, unsigned int count, int socket_id,
 struct rte_event_ring *
 rte_event_ring_lookup(const char *name)
 {
+	rte_eventdev_trace_ring_lookup(name);
+
 	return (struct rte_event_ring *)rte_ring_lookup(name);
 }
 
@@ -39,5 +46,7 @@ rte_event_ring_lookup(const char *name)
 void
 rte_event_ring_free(struct rte_event_ring *r)
 {
+	rte_eventdev_trace_ring_free(r->r.name);
+
 	rte_ring_free((struct rte_ring *)r);
 }
diff --git a/lib/eventdev/rte_event_timer_adapter.c b/lib/eventdev/rte_event_timer_adapter.c
index a0f14bf861..04e9b2e475 100644
--- a/lib/eventdev/rte_event_timer_adapter.c
+++ b/lib/eventdev/rte_event_timer_adapter.c
@@ -271,6 +271,8 @@ rte_event_timer_adapter_get_info(const struct rte_event_timer_adapter *adapter,
 	adapter_info->event_dev_port_id = adapter->data->event_port_id;
 	adapter_info->caps = adapter->data->caps;
 
+	rte_eventdev_trace_timer_adapter_get_info(adapter, adapter_info);
+
 	return 0;
 }
 
@@ -382,6 +384,8 @@ rte_event_timer_adapter_lookup(uint16_t adapter_id)
 
 	adapter->allocated = 1;
 
+	rte_eventdev_trace_timer_adapter_lookup(adapter_id, adapter);
+
 	return adapter;
 }
 
@@ -435,6 +439,8 @@ rte_event_timer_adapter_service_id_get(struct rte_event_timer_adapter *adapter,
 	if (adapter->data->service_inited && service_id != NULL)
 		*service_id = adapter->data->service_id;
 
+	rte_eventdev_trace_timer_adapter_service_id_get(adapter, *service_id);
+
 	return adapter->data->service_inited ? 0 : -ESRCH;
 }
 
diff --git a/lib/eventdev/rte_eventdev.c b/lib/eventdev/rte_eventdev.c
index b0414206d9..0e482434ee 100644
--- a/lib/eventdev/rte_eventdev.c
+++ b/lib/eventdev/rte_eventdev.c
@@ -62,8 +62,10 @@ rte_event_dev_get_dev_id(const char *name)
 				rte_event_devices[i].dev->driver->name, name,
 					 RTE_EVENTDEV_NAME_MAX_LEN) == 0) : 0);
 		if (cmp && (rte_event_devices[i].attached ==
-					RTE_EVENTDEV_ATTACHED))
+					RTE_EVENTDEV_ATTACHED)) {
+			rte_eventdev_trace_get_dev_id(name, i);
 			return i;
+		}
 	}
 	return -ENODEV;
 }
@@ -76,6 +78,9 @@ rte_event_dev_socket_id(uint8_t dev_id)
 	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
 	dev = &rte_eventdevs[dev_id];
 
+	rte_eventdev_trace_socket_id(dev->data->name, dev->data->dev_id,
+		dev->data->socket_id);
+
 	return dev->data->socket_id;
 }
 
@@ -99,6 +104,10 @@ rte_event_dev_info_get(uint8_t dev_id, struct rte_event_dev_info *dev_info)
 	dev_info->dequeue_timeout_ns = dev->data->dev_conf.dequeue_timeout_ns;
 
 	dev_info->dev = dev->dev;
+
+	rte_eventdev_trace_info_get(dev->data->name, dev->data->dev_id,
+		dev->data->socket_id, dev->dev->name, dev_info->driver_name);
+
 	return 0;
 }
 
@@ -121,6 +130,9 @@ rte_event_eth_rx_adapter_caps_get(uint8_t dev_id, uint16_t eth_port_id,
 	else
 		*caps = 0;
 
+	rte_eventdev_trace_eth_rx_adapter_caps_get(dev->data->name,
+		dev->data->dev_id, dev->data->socket_id, eth_port_id);
+
 	return dev->dev_ops->eth_rx_adapter_caps_get ?
 				(*dev->dev_ops->eth_rx_adapter_caps_get)(dev,
 						&rte_eth_devices[eth_port_id],
@@ -146,6 +158,9 @@ rte_event_timer_adapter_caps_get(uint8_t dev_id, uint32_t *caps)
 	else
 		*caps = 0;
 
+	rte_eventdev_trace_timer_adapter_caps_get(dev->data->name,
+		dev->data->dev_id, dev->data->socket_id);
+
 	return dev->dev_ops->timer_adapter_caps_get ?
 				(*dev->dev_ops->timer_adapter_caps_get)(dev,
 									0,
@@ -176,6 +191,8 @@ rte_event_crypto_adapter_caps_get(uint8_t dev_id, uint8_t cdev_id,
 	else
 		*caps = 0;
 
+	rte_eventdev_trace_crypto_adapter_caps_get(dev, cdev);
+
 	return dev->dev_ops->crypto_adapter_caps_get ?
 		(*dev->dev_ops->crypto_adapter_caps_get)
 		(dev, cdev, caps) : 0;
@@ -202,6 +219,8 @@ rte_event_eth_tx_adapter_caps_get(uint8_t dev_id, uint16_t eth_port_id,
 	else
 		*caps = 0;
 
+	rte_eventdev_trace_eth_tx_adapter_caps_get(dev, eth_dev, eth_port_id);
+
 	return dev->dev_ops->eth_tx_adapter_caps_get ?
 			(*dev->dev_ops->eth_tx_adapter_caps_get)(dev,
 								eth_dev,
@@ -524,6 +543,9 @@ rte_event_queue_default_conf_get(uint8_t dev_id, uint8_t queue_id,
 		return -ENOTSUP;
 	memset(queue_conf, 0, sizeof(struct rte_event_queue_conf));
 	(*dev->dev_ops->queue_def_conf)(dev, queue_id, queue_conf);
+
+	rte_eventdev_trace_queue_default_conf_get(dev, queue_id, queue_conf);
+
 	return 0;
 }
 
@@ -652,6 +674,9 @@ rte_event_port_default_conf_get(uint8_t dev_id, uint8_t port_id,
 		return -ENOTSUP;
 	memset(port_conf, 0, sizeof(struct rte_event_port_conf));
 	(*dev->dev_ops->port_def_conf)(dev, port_id, port_conf);
+
+	rte_eventdev_trace_port_default_conf_get(dev, port_id, port_conf);
+
 	return 0;
 }
 
@@ -759,6 +784,8 @@ rte_event_port_quiesce(uint8_t dev_id, uint8_t port_id,
 		return;
 	}
 
+	rte_eventdev_trace_port_quiesce(dev, port_id);
+
 	if (dev->dev_ops->port_quiesce)
 		(*dev->dev_ops->port_quiesce)(dev, dev->data->ports[port_id],
 					      release_cb, args);
@@ -789,6 +816,8 @@ rte_event_dev_attr_get(uint8_t dev_id, uint32_t attr_id,
 		return -EINVAL;
 	}
 
+	rte_eventdev_trace_attr_get(dev, attr_id, *attr_value);
+
 	return 0;
 }
 
@@ -829,6 +858,9 @@ rte_event_port_attr_get(uint8_t dev_id, uint8_t port_id, uint32_t attr_id,
 	default:
 		return -EINVAL;
 	};
+
+	rte_eventdev_trace_port_attr_get(dev, port_id, attr_id, *attr_value);
+
 	return 0;
 }
 
@@ -851,6 +883,8 @@ rte_event_queue_attr_get(uint8_t dev_id, uint8_t queue_id, uint32_t attr_id,
 
 	conf = &dev->data->queues_cfg[queue_id];
 
+	rte_eventdev_trace_queue_attr_get(dev, conf, queue_id, attr_id);
+
 	switch (attr_id) {
 	case RTE_EVENT_QUEUE_ATTR_PRIORITY:
 		*attr_value = RTE_EVENT_DEV_PRIORITY_NORMAL;
@@ -894,6 +928,8 @@ rte_event_queue_attr_set(uint8_t dev_id, uint8_t queue_id, uint32_t attr_id,
 {
 	struct rte_eventdev *dev;
 
+	rte_eventdev_trace_queue_attr_set(dev_id, queue_id, attr_id, attr_value);
+
 	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
 	dev = &rte_eventdevs[dev_id];
 	if (!is_valid_queue(dev, queue_id)) {
@@ -1048,6 +1084,8 @@ rte_event_port_unlinks_in_progress(uint8_t dev_id, uint8_t port_id)
 {
 	struct rte_eventdev *dev;
 
+	rte_eventdev_trace_port_unlinks_in_progress(dev_id, port_id);
+
 	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
 	dev = &rte_eventdevs[dev_id];
 	if (!is_valid_port(dev, port_id)) {
@@ -1091,6 +1129,9 @@ rte_event_port_links_get(uint8_t dev_id, uint8_t port_id,
 			++count;
 		}
 	}
+
+	rte_eventdev_trace_port_links_get(dev_id, port_id, count);
+
 	return count;
 }
 
@@ -1100,6 +1141,8 @@ rte_event_dequeue_timeout_ticks(uint8_t dev_id, uint64_t ns,
 {
 	struct rte_eventdev *dev;
 
+	rte_eventdev_trace_dequeue_timeout_ticks(dev_id, ns, timeout_ticks);
+
 	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
 	dev = &rte_eventdevs[dev_id];
 	if (*dev->dev_ops->timeout_ticks == NULL)
@@ -1125,6 +1168,8 @@ rte_event_dev_service_id_get(uint8_t dev_id, uint32_t *service_id)
 	if (dev->data->service_inited)
 		*service_id = dev->data->service_id;
 
+	rte_eventdev_trace_service_id_get(dev_id, *service_id);
+
 	return dev->data->service_inited ? 0 : -ESRCH;
 }
 
@@ -1285,6 +1330,9 @@ rte_event_vector_pool_create(const char *name, unsigned int n,
 	if (ret < 0)
 		goto err;
 
+	rte_eventdev_trace_vector_pool_create(mp, mp->name, mp->socket_id,
+		mp->size, mp->cache_size, mp->elt_size);
+
 	return mp;
 err:
 	rte_mempool_free(mp);
diff --git a/lib/eventdev/version.map b/lib/eventdev/version.map
index dd63ec6f68..ee4e2fd4b3 100644
--- a/lib/eventdev/version.map
+++ b/lib/eventdev/version.map
@@ -118,6 +118,53 @@ EXPERIMENTAL {
 	rte_event_eth_tx_adapter_instance_get;
 	rte_event_eth_tx_adapter_queue_start;
 	rte_event_eth_tx_adapter_queue_stop;
+
+	# added in 23.03
+	__rte_eventdev_trace_eth_rx_adapter_caps_get;
+	__rte_eventdev_trace_eth_tx_adapter_caps_get;
+	__rte_eventdev_trace_timer_adapter_caps_get;
+	__rte_eventdev_trace_crypto_adapter_caps_get;
+	__rte_eventdev_trace_crypto_adapter_event_port_get;
+	__rte_eventdev_trace_crypto_adapter_service_id_get;
+	__rte_eventdev_trace_eth_rx_adapter_cb_register;
+	__rte_eventdev_trace_eth_rx_adapter_create_with_params;
+	__rte_eventdev_trace_eth_rx_adapter_queue_conf_get;
+	__rte_eventdev_trace_eth_rx_adapter_service_id_get;
+	__rte_eventdev_trace_eth_rx_adapter_vector_limits_get;
+	__rte_eventdev_trace_eth_tx_adapter_event_port_get;
+	__rte_eventdev_trace_eth_tx_adapter_service_id_get;
+	__rte_eventdev_trace_port_attr_get;
+	__rte_eventdev_trace_port_default_conf_get;
+	__rte_eventdev_trace_port_links_get;
+	__rte_eventdev_trace_port_quiesce;
+	__rte_eventdev_trace_port_unlinks_in_progress;
+	__rte_eventdev_trace_queue_attr_get;
+	__rte_eventdev_trace_queue_attr_set;
+	__rte_eventdev_trace_queue_default_conf_get;
+	__rte_eventdev_trace_ring_create;
+	__rte_eventdev_trace_ring_free;
+	__rte_eventdev_trace_ring_init;
+	__rte_eventdev_trace_ring_lookup;
+	__rte_eventdev_trace_timer_adapter_get_info;
+	__rte_eventdev_trace_timer_adapter_lookup;
+	__rte_eventdev_trace_timer_adapter_service_id_get;
+	__rte_eventdev_trace_attr_get;
+	__rte_eventdev_trace_close;
+	__rte_eventdev_trace_configure;
+	__rte_eventdev_trace_dump;
+	__rte_eventdev_trace_get_dev_id;
+	__rte_eventdev_trace_info_get;
+	__rte_eventdev_trace_selftest;
+	__rte_eventdev_trace_service_id_get;
+	__rte_eventdev_trace_socket_id;
+	__rte_eventdev_trace_start;
+	__rte_eventdev_trace_stop;
+	__rte_eventdev_trace_stop_flush_callback_register;
+	__rte_eventdev_trace_vector_pool_create;
+	__rte_eventdev_trace_dequeue_timeout_ticks;
+	__rte_eventdev_trace_crypto_adapter_stats_get;
+	__rte_eventdev_trace_crypto_adapter_stats_reset;
+	__rte_eventdev_trace_eth_rx_adapter_stats_get;
 };
 
 INTERNAL {
-- 
2.25.1


^ permalink raw reply	[flat|nested] 14+ messages in thread

* RE: [PATCH] eventdev: add trace points
  2022-12-19 14:11 [PATCH] eventdev: add trace points Amit Prakash Shukla
@ 2023-01-03  5:57 ` Gujjar, Abhinandan S
  2023-01-27  9:06   ` Amit Prakash Shukla
  2023-01-30 10:13 ` [PATCH v2] " Amit Prakash Shukla
  1 sibling, 1 reply; 14+ messages in thread
From: Gujjar, Abhinandan S @ 2023-01-03  5:57 UTC (permalink / raw)
  To: Amit Prakash Shukla, Jerin Jacob, Naga Harish K, S V, Carrillo, Erik G
  Cc: dev



> -----Original Message-----
> From: Amit Prakash Shukla <amitprakashs@marvell.com>
> Sent: Monday, December 19, 2022 7:41 PM
> To: Jerin Jacob <jerinj@marvell.com>; Gujjar, Abhinandan S
> <abhinandan.gujjar@intel.com>; Naga Harish K, S V
> <s.v.naga.harish.k@intel.com>; Carrillo, Erik G <erik.g.carrillo@intel.com>
> Cc: dev@dpdk.org; Amit Prakash Shukla <amitprakashs@marvell.com>
> Subject: [PATCH] eventdev: add trace points
> 
> Add trace points for cryptodev functions.
> 
> Signed-off-by: Amit Prakash Shukla <amitprakashs@marvell.com>
> ---
>  lib/eventdev/eventdev_trace.h           | 502 ++++++++++++++++++++++--
>  lib/eventdev/eventdev_trace_points.c    | 123 ++++++
>  lib/eventdev/rte_event_crypto_adapter.c |  18 +-
> lib/eventdev/rte_event_eth_rx_adapter.c |  16 +
>  lib/eventdev/rte_event_eth_tx_adapter.c |   4 +
>  lib/eventdev/rte_event_ring.c           |   9 +
>  lib/eventdev/rte_event_timer_adapter.c  |   6 +
>  lib/eventdev/rte_eventdev.c             |  50 ++-
>  lib/eventdev/version.map                |  47 +++
>  9 files changed, 731 insertions(+), 44 deletions(-)
> 
> diff --git a/lib/eventdev/eventdev_trace.h b/lib/eventdev/eventdev_trace.h
> index d48cd58850..9443bbfa83 100644
> --- a/lib/eventdev/eventdev_trace.h
> +++ b/lib/eventdev/eventdev_trace.h
> @@ -21,6 +21,9 @@ extern "C" {
>  #include "rte_event_crypto_adapter.h"
>  #include "rte_event_eth_rx_adapter.h"
>  #include "rte_event_timer_adapter.h"
> +#include "eventdev_pmd.h"
> +#include "cryptodev_pmd.h"
> +#include "ethdev_driver.h"
> 
>  RTE_TRACE_POINT(
>  	rte_eventdev_trace_configure,
> @@ -63,6 +66,7 @@ RTE_TRACE_POINT(
>  	rte_trace_point_emit_u16(port_conf->enqueue_depth);
>  	rte_trace_point_emit_u32(port_conf->event_port_cfg);
>  	rte_trace_point_emit_int(rc);
> +	rte_trace_point_emit_ptr(port_conf);
>  )
> 
>  RTE_TRACE_POINT(
> @@ -106,9 +110,9 @@ RTE_TRACE_POINT(
> 
>  RTE_TRACE_POINT(
>  	rte_eventdev_trace_eth_rx_adapter_create,
> -	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint8_t dev_id, void
> *conf_cb,
> +	RTE_TRACE_POINT_ARGS(uint8_t adapter_id, uint8_t dev_id, void
> +*conf_cb,
>  		void *conf_arg),
> -	rte_trace_point_emit_u8(adptr_id);
> +	rte_trace_point_emit_u8(adapter_id);
>  	rte_trace_point_emit_u8(dev_id);
>  	rte_trace_point_emit_ptr(conf_cb);
>  	rte_trace_point_emit_ptr(conf_arg);
> @@ -116,17 +120,17 @@ RTE_TRACE_POINT(
> 
>  RTE_TRACE_POINT(
>  	rte_eventdev_trace_eth_rx_adapter_free,
> -	RTE_TRACE_POINT_ARGS(uint8_t adptr_id),
> -	rte_trace_point_emit_u8(adptr_id);
> +	RTE_TRACE_POINT_ARGS(uint8_t adapter_id),
> +	rte_trace_point_emit_u8(adapter_id);
>  )
> 
>  RTE_TRACE_POINT(
>  	rte_eventdev_trace_eth_rx_adapter_queue_add,
> -	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint16_t eth_dev_id,
> +	RTE_TRACE_POINT_ARGS(uint8_t adapter_id, uint16_t eth_dev_id,
>  		int32_t rx_queue_id,
>  		const struct rte_event_eth_rx_adapter_queue_conf
> *queue_conf,
>  		int rc),
> -	rte_trace_point_emit_u8(adptr_id);
> +	rte_trace_point_emit_u8(adapter_id);
>  	rte_trace_point_emit_u16(eth_dev_id);
>  	rte_trace_point_emit_i32(rx_queue_id);
>  	rte_trace_point_emit_u32(queue_conf->rx_queue_flags);
> @@ -138,9 +142,9 @@ RTE_TRACE_POINT(
> 
>  RTE_TRACE_POINT(
>  	rte_eventdev_trace_eth_rx_adapter_queue_del,
> -	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint16_t eth_dev_id,
> +	RTE_TRACE_POINT_ARGS(uint8_t adapter_id, uint16_t eth_dev_id,
>  		int32_t rx_queue_id, int rc),
> -	rte_trace_point_emit_u8(adptr_id);
> +	rte_trace_point_emit_u8(adapter_id);
>  	rte_trace_point_emit_u16(eth_dev_id);
>  	rte_trace_point_emit_i32(rx_queue_id);
>  	rte_trace_point_emit_int(rc);
> @@ -148,21 +152,21 @@ RTE_TRACE_POINT(
> 
>  RTE_TRACE_POINT(
>  	rte_eventdev_trace_eth_rx_adapter_start,
> -	RTE_TRACE_POINT_ARGS(uint8_t adptr_id),
> -	rte_trace_point_emit_u8(adptr_id);
> +	RTE_TRACE_POINT_ARGS(uint8_t adapter_id),
> +	rte_trace_point_emit_u8(adapter_id);
>  )
> 
>  RTE_TRACE_POINT(
>  	rte_eventdev_trace_eth_rx_adapter_stop,
> -	RTE_TRACE_POINT_ARGS(uint8_t adptr_id),
> -	rte_trace_point_emit_u8(adptr_id);
> +	RTE_TRACE_POINT_ARGS(uint8_t adapter_id),
> +	rte_trace_point_emit_u8(adapter_id);
>  )
> 
>  RTE_TRACE_POINT(
>  	rte_eventdev_trace_eth_tx_adapter_create,
> -	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint8_t dev_id, void
> *conf_cb,
> +	RTE_TRACE_POINT_ARGS(uint8_t adapter_id, uint8_t dev_id, void
> +*conf_cb,
>  		struct rte_event_port_conf *port_conf, int rc),
> -	rte_trace_point_emit_u8(adptr_id);
> +	rte_trace_point_emit_u8(adapter_id);
>  	rte_trace_point_emit_u8(dev_id);
>  	rte_trace_point_emit_i32(port_conf->new_event_threshold);
>  	rte_trace_point_emit_u16(port_conf->dequeue_depth);
> @@ -174,16 +178,16 @@ RTE_TRACE_POINT(
> 
>  RTE_TRACE_POINT(
>  	rte_eventdev_trace_eth_tx_adapter_free,
> -	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, int rc),
> -	rte_trace_point_emit_u8(adptr_id);
> +	RTE_TRACE_POINT_ARGS(uint8_t adapter_id, int rc),
> +	rte_trace_point_emit_u8(adapter_id);
>  	rte_trace_point_emit_int(rc);
>  )
> 
>  RTE_TRACE_POINT(
>  	rte_eventdev_trace_eth_tx_adapter_queue_add,
> -	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint16_t eth_dev_id,
> +	RTE_TRACE_POINT_ARGS(uint8_t adapter_id, uint16_t eth_dev_id,
>  		int32_t queue, int rc),
> -	rte_trace_point_emit_u8(adptr_id);
> +	rte_trace_point_emit_u8(adapter_id);
>  	rte_trace_point_emit_u16(eth_dev_id);
>  	rte_trace_point_emit_i32(queue);
>  	rte_trace_point_emit_int(rc);
> @@ -191,9 +195,9 @@ RTE_TRACE_POINT(
> 
>  RTE_TRACE_POINT(
>  	rte_eventdev_trace_eth_tx_adapter_queue_del,
> -	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint16_t eth_dev_id,
> +	RTE_TRACE_POINT_ARGS(uint8_t adapter_id, uint16_t eth_dev_id,
>  		int32_t queue, int rc),
> -	rte_trace_point_emit_u8(adptr_id);
> +	rte_trace_point_emit_u8(adapter_id);
>  	rte_trace_point_emit_u16(eth_dev_id);
>  	rte_trace_point_emit_i32(queue);
>  	rte_trace_point_emit_int(rc);
> @@ -201,15 +205,15 @@ RTE_TRACE_POINT(
> 
>  RTE_TRACE_POINT(
>  	rte_eventdev_trace_eth_tx_adapter_start,
> -	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, int rc),
> -	rte_trace_point_emit_u8(adptr_id);
> +	RTE_TRACE_POINT_ARGS(uint8_t adapter_id, int rc),
> +	rte_trace_point_emit_u8(adapter_id);
>  	rte_trace_point_emit_int(rc);
>  )
> 
>  RTE_TRACE_POINT(
>  	rte_eventdev_trace_eth_tx_adapter_stop,
> -	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, int rc),
> -	rte_trace_point_emit_u8(adptr_id);
> +	RTE_TRACE_POINT_ARGS(uint8_t adapter_id, int rc),
> +	rte_trace_point_emit_u8(adapter_id);
>  	rte_trace_point_emit_int(rc);
>  )
> 
> @@ -250,22 +254,23 @@ RTE_TRACE_POINT(
> 
>  RTE_TRACE_POINT(
>  	rte_eventdev_trace_crypto_adapter_create,
> -	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint8_t dev_id, void
> *adapter,
> -		struct rte_event_port_conf *port_conf, uint8_t mode),
> -	rte_trace_point_emit_u8(adptr_id);
> +	RTE_TRACE_POINT_ARGS(uint8_t id, uint8_t dev_id,
Id -> adapter_id??
> +		struct rte_event_port_conf *port_config, int mode, int ret),
> +	rte_trace_point_emit_u8(id);
Same here
>  	rte_trace_point_emit_u8(dev_id);
> -	rte_trace_point_emit_ptr(adapter);
> -	rte_trace_point_emit_u8(mode);
> -	rte_trace_point_emit_i32(port_conf->new_event_threshold);
> -	rte_trace_point_emit_u16(port_conf->dequeue_depth);
> -	rte_trace_point_emit_u16(port_conf->enqueue_depth);
> -	rte_trace_point_emit_u32(port_conf->event_port_cfg);
> +	rte_trace_point_emit_ptr(port_config);
> +	rte_trace_point_emit_i32(port_config->new_event_threshold);
> +	rte_trace_point_emit_u16(port_config->dequeue_depth);
> +	rte_trace_point_emit_u16(port_config->enqueue_depth);
> +	rte_trace_point_emit_u32(port_config->event_port_cfg);
> +	rte_trace_point_emit_int(mode);
> +	rte_trace_point_emit_int(ret);
>  )
> 
>  RTE_TRACE_POINT(
>  	rte_eventdev_trace_crypto_adapter_free,
> -	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, void *adapter),
> -	rte_trace_point_emit_u8(adptr_id);
> +	RTE_TRACE_POINT_ARGS(uint8_t adapter_id, const void *adapter),
> +	rte_trace_point_emit_u8(adapter_id);
>  	rte_trace_point_emit_ptr(adapter);
>  )
> 
> @@ -282,9 +287,9 @@ RTE_TRACE_POINT(
> 
>  RTE_TRACE_POINT(
>  	rte_eventdev_trace_crypto_adapter_queue_pair_del,
> -	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint8_t cdev_id,
> +	RTE_TRACE_POINT_ARGS(uint8_t adapter_id, uint8_t cdev_id,
>  		int32_t queue_pair_id, int rc),
> -	rte_trace_point_emit_u8(adptr_id);
> +	rte_trace_point_emit_u8(adapter_id);
>  	rte_trace_point_emit_u8(cdev_id);
>  	rte_trace_point_emit_i32(queue_pair_id);
>  	rte_trace_point_emit_int(rc);
> @@ -292,15 +297,430 @@ RTE_TRACE_POINT(
> 
>  RTE_TRACE_POINT(
>  	rte_eventdev_trace_crypto_adapter_start,
> -	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, void *adapter),
> -	rte_trace_point_emit_u8(adptr_id);
> +	RTE_TRACE_POINT_ARGS(uint8_t adapter_id, const void *adapter),
> +	rte_trace_point_emit_u8(adapter_id);
>  	rte_trace_point_emit_ptr(adapter);
>  )
> 
>  RTE_TRACE_POINT(
>  	rte_eventdev_trace_crypto_adapter_stop,
> -	RTE_TRACE_POINT_ARGS(uint8_t adptr_id),
> -	rte_trace_point_emit_u8(adptr_id);
> +	RTE_TRACE_POINT_ARGS(uint8_t adapter_id),
> +	rte_trace_point_emit_u8(adapter_id);
> +)
> +
> +RTE_TRACE_POINT(
> +	rte_eventdev_trace_crypto_adapter_event_port_get,
> +	RTE_TRACE_POINT_ARGS(uint8_t id, uint8_t event_port_id),
Id -> adapter_id??
> +	rte_trace_point_emit_u8(id);
Same here. Check and replace in other places too.
> +	rte_trace_point_emit_u8(event_port_id);
> +)
> +
> +RTE_TRACE_POINT(
> +	rte_eventdev_trace_crypto_adapter_service_id_get,
> +	RTE_TRACE_POINT_ARGS(uint8_t id, uint32_t service_id),
> +	rte_trace_point_emit_u8(id);
> +	rte_trace_point_emit_u32(service_id);
> +)
> +
> +RTE_TRACE_POINT(
> +	rte_eventdev_trace_attr_get,
> +	RTE_TRACE_POINT_ARGS(const struct rte_eventdev *dev, uint32_t
> attr_id,
> +		uint32_t attr_value),
> +	rte_trace_point_emit_ptr(dev);
> +	rte_trace_point_emit_string(dev->data->name);
> +	rte_trace_point_emit_u8(dev->data->dev_id);
> +	rte_trace_point_emit_int(dev->data->socket_id);
> +	rte_trace_point_emit_u32(attr_id);
> +	rte_trace_point_emit_u32(attr_value);
> +)
> +
> +RTE_TRACE_POINT(
> +	rte_eventdev_trace_dump,
> +	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *f),
> +	rte_trace_point_emit_u8(dev_id);
> +	rte_trace_point_emit_ptr(f);
> +)
> +
> +RTE_TRACE_POINT(
> +	rte_eventdev_trace_get_dev_id,
> +	RTE_TRACE_POINT_ARGS(const char *name, int dev_id),
> +	rte_trace_point_emit_string(name);
> +	rte_trace_point_emit_int(dev_id);
> +)
> +
> +RTE_TRACE_POINT(
> +	rte_eventdev_trace_info_get,
> +	RTE_TRACE_POINT_ARGS(const char *name, uint8_t dev_id, int
> socket_id,
> +		const char *device_name, const char *driver_name),
> +	rte_trace_point_emit_string(name);
> +	rte_trace_point_emit_u8(dev_id);
> +	rte_trace_point_emit_int(socket_id);
> +	rte_trace_point_emit_string(device_name);
> +	rte_trace_point_emit_string(driver_name);
> +)
> +
> +RTE_TRACE_POINT(
> +	rte_eventdev_trace_selftest,
> +	RTE_TRACE_POINT_ARGS(uint8_t dev_id),
> +	rte_trace_point_emit_u8(dev_id);
> +)
> +
> +RTE_TRACE_POINT(
> +	rte_eventdev_trace_service_id_get,
> +	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint32_t service_id),
> +	rte_trace_point_emit_u8(dev_id);
> +	rte_trace_point_emit_u32(service_id);
> +)
> +
> +RTE_TRACE_POINT(
> +	rte_eventdev_trace_socket_id,
> +	RTE_TRACE_POINT_ARGS(const char *name, uint8_t dev_id, int
> socket_id),
> +	rte_trace_point_emit_string(name);
> +	rte_trace_point_emit_u8(dev_id);
> +	rte_trace_point_emit_int(socket_id);
> +)
> +
> +RTE_TRACE_POINT(
> +	rte_eventdev_trace_stop_flush_callback_register,
> +	RTE_TRACE_POINT_ARGS(uint8_t dev_id,
> +		eventdev_stop_flush_t callback, void *userdata),
> +	rte_trace_point_emit_u8(dev_id);
> +	rte_trace_point_emit_ptr(callback);
> +	rte_trace_point_emit_ptr(userdata);
> +)
> +
> +RTE_TRACE_POINT(
> +	rte_eventdev_trace_eth_rx_adapter_caps_get,
> +	RTE_TRACE_POINT_ARGS(const char *name, uint8_t dev_id, int
> socket_id,
> +		uint16_t eth_port_id),
> +	rte_trace_point_emit_string(name);
> +	rte_trace_point_emit_u8(dev_id);
> +	rte_trace_point_emit_int(socket_id);
> +	rte_trace_point_emit_u16(eth_port_id);
> +)
> +
> +RTE_TRACE_POINT(
> +	rte_eventdev_trace_eth_rx_adapter_cb_register,
> +	RTE_TRACE_POINT_ARGS(uint8_t id, uint16_t eth_dev_id, const void
> *cb_fn,
> +		const void *cb_arg),
> +	rte_trace_point_emit_u8(id);
> +	rte_trace_point_emit_u16(eth_dev_id);
> +	rte_trace_point_emit_ptr(cb_fn);
> +	rte_trace_point_emit_ptr(cb_arg);
> +)
> +
> +RTE_TRACE_POINT(
> +	rte_eventdev_trace_eth_rx_adapter_create_with_params,
> +	RTE_TRACE_POINT_ARGS(uint8_t id, uint8_t dev_id,
> +		const struct rte_event_port_conf *port_config,
> +		const struct rte_event_eth_rx_adapter_params *rxa_params,
> +		int ret),
> +	rte_trace_point_emit_u8(id);
> +	rte_trace_point_emit_u8(dev_id);
> +	rte_trace_point_emit_ptr(port_config);
> +	rte_trace_point_emit_i32(port_config->new_event_threshold);
> +	rte_trace_point_emit_u16(port_config->dequeue_depth);
> +	rte_trace_point_emit_u16(port_config->enqueue_depth);
> +	rte_trace_point_emit_u32(port_config->event_port_cfg);
> +	rte_trace_point_emit_ptr(rxa_params);
> +	rte_trace_point_emit_u16(rxa_params->event_buf_size);
> +	rte_trace_point_emit_int(ret);
> +)
> +
> +RTE_TRACE_POINT(
> +	rte_eventdev_trace_eth_rx_adapter_service_id_get,
> +	RTE_TRACE_POINT_ARGS(uint8_t id, uint32_t service_id),
> +	rte_trace_point_emit_u8(id);
> +	rte_trace_point_emit_u32(service_id);
> +)
> +
> +RTE_TRACE_POINT(
> +	rte_eventdev_trace_eth_rx_adapter_vector_limits_get,
> +	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint16_t eth_port_id,
> +		uint16_t min_sz, uint16_t max_sz, uint8_t log2_sz,
> +		uint64_t min_timeout_ns, uint64_t max_timeout_ns, int ret),
> +	rte_trace_point_emit_u8(dev_id);
> +	rte_trace_point_emit_u16(eth_port_id);
> +	rte_trace_point_emit_u16(min_sz);
> +	rte_trace_point_emit_u16(max_sz);
> +	rte_trace_point_emit_u8(log2_sz);
> +	rte_trace_point_emit_u64(min_timeout_ns);
> +	rte_trace_point_emit_u64(max_timeout_ns);
> +	rte_trace_point_emit_int(ret);
> +)
> +
> +RTE_TRACE_POINT(
> +	rte_eventdev_trace_eth_tx_adapter_caps_get,
> +	RTE_TRACE_POINT_ARGS(const struct rte_eventdev *dev,
> +		const struct rte_eth_dev *eth_dev, uint16_t eth_port_id),
> +	rte_trace_point_emit_ptr(dev);
> +	rte_trace_point_emit_string(dev->data->name);
> +	rte_trace_point_emit_u8(dev->data->dev_id);
> +	rte_trace_point_emit_int(dev->data->socket_id);
> +	rte_trace_point_emit_ptr(eth_dev);
> +	rte_trace_point_emit_string(eth_dev->data->name);
> +	rte_trace_point_emit_u16(eth_port_id);
> +)
> +
> +RTE_TRACE_POINT(
> +	rte_eventdev_trace_eth_tx_adapter_event_port_get,
> +	RTE_TRACE_POINT_ARGS(uint8_t id, uint8_t event_port_id),
> +	rte_trace_point_emit_u8(id);
> +	rte_trace_point_emit_u8(event_port_id);
> +)
> +
> +RTE_TRACE_POINT(
> +	rte_eventdev_trace_eth_tx_adapter_service_id_get,
> +	RTE_TRACE_POINT_ARGS(uint8_t id, uint32_t service_id),
> +	rte_trace_point_emit_u8(id);
> +	rte_trace_point_emit_u32(service_id);
> +)
> +
> +RTE_TRACE_POINT(
> +	rte_eventdev_trace_port_attr_get,
> +	RTE_TRACE_POINT_ARGS(const struct rte_eventdev *dev, uint8_t
> port_id,
> +		uint32_t attr_id, uint32_t attr_value),
> +	rte_trace_point_emit_ptr(dev);
> +	rte_trace_point_emit_string(dev->data->name);
> +	rte_trace_point_emit_u8(dev->data->dev_id);
> +	rte_trace_point_emit_int(dev->data->socket_id);
> +	rte_trace_point_emit_u8(port_id);
> +	rte_trace_point_emit_u32(attr_id);
> +	rte_trace_point_emit_u32(attr_value);
> +)
> +
> +RTE_TRACE_POINT(
> +	rte_eventdev_trace_port_default_conf_get,
> +	RTE_TRACE_POINT_ARGS(const struct rte_eventdev *dev, uint8_t
> port_id,
> +		const struct rte_event_port_conf *port_conf),
> +	rte_trace_point_emit_ptr(dev);
> +	rte_trace_point_emit_string(dev->data->name);
> +	rte_trace_point_emit_u8(dev->data->dev_id);
> +	rte_trace_point_emit_int(dev->data->socket_id);
> +	rte_trace_point_emit_u8(port_id);
> +	rte_trace_point_emit_ptr(port_conf);
> +	rte_trace_point_emit_i32(port_conf->new_event_threshold);
> +	rte_trace_point_emit_u16(port_conf->dequeue_depth);
> +	rte_trace_point_emit_u16(port_conf->enqueue_depth);
> +	rte_trace_point_emit_u32(port_conf->event_port_cfg);
> +)
> +
> +RTE_TRACE_POINT(
> +	rte_eventdev_trace_port_links_get,
> +	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint8_t port_id, int count),
> +	rte_trace_point_emit_u8(dev_id);
> +	rte_trace_point_emit_u8(port_id);
> +	rte_trace_point_emit_int(count);
> +)
> +
> +RTE_TRACE_POINT(
> +	rte_eventdev_trace_port_unlinks_in_progress,
> +	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint8_t port_id),
> +	rte_trace_point_emit_u8(dev_id);
> +	rte_trace_point_emit_u8(port_id);
> +)
> +
> +RTE_TRACE_POINT(
> +	rte_eventdev_trace_queue_attr_get,
> +	RTE_TRACE_POINT_ARGS(const struct rte_eventdev *dev,
> +		const struct rte_event_queue_conf *conf, uint8_t queue_id,
> +		uint32_t attr_id),
> +	rte_trace_point_emit_ptr(dev);
> +	rte_trace_point_emit_string(dev->data->name);
> +	rte_trace_point_emit_u8(dev->data->dev_id);
> +	rte_trace_point_emit_int(dev->data->socket_id);
> +	rte_trace_point_emit_ptr(conf);
> +	rte_trace_point_emit_u32(conf->nb_atomic_flows);
> +	rte_trace_point_emit_u32(conf->nb_atomic_order_sequences);
> +	rte_trace_point_emit_u32(conf->event_queue_cfg);
> +	rte_trace_point_emit_u8(conf->schedule_type);
> +	rte_trace_point_emit_u8(conf->priority);
> +	rte_trace_point_emit_u8(queue_id);
> +	rte_trace_point_emit_u32(attr_id);
> +)
> +
> +RTE_TRACE_POINT(
> +	rte_eventdev_trace_queue_default_conf_get,
> +	RTE_TRACE_POINT_ARGS(const struct rte_eventdev *dev, uint8_t
> queue_id,
> +		const struct rte_event_queue_conf *queue_conf),
> +	rte_trace_point_emit_ptr(dev);
> +	rte_trace_point_emit_string(dev->data->name);
> +	rte_trace_point_emit_u8(dev->data->dev_id);
> +	rte_trace_point_emit_int(dev->data->socket_id);
> +	rte_trace_point_emit_u8(queue_id);
> +	rte_trace_point_emit_ptr(queue_conf);
> +	rte_trace_point_emit_u32(queue_conf->nb_atomic_flows);
> +	rte_trace_point_emit_u32(queue_conf-
> >nb_atomic_order_sequences);
> +	rte_trace_point_emit_u32(queue_conf->event_queue_cfg);
> +	rte_trace_point_emit_u8(queue_conf->schedule_type);
> +	rte_trace_point_emit_u8(queue_conf->priority);
> +)
> +
> +RTE_TRACE_POINT(
> +	rte_eventdev_trace_ring_create,
> +	RTE_TRACE_POINT_ARGS(const char *name, unsigned int count,
> +		int socket_id, unsigned int flags),
> +	rte_trace_point_emit_string(name);
> +	rte_trace_point_emit_u32(count);
> +	rte_trace_point_emit_int(socket_id);
> +	rte_trace_point_emit_u32(flags);
> +)
> +
> +RTE_TRACE_POINT(
> +	rte_eventdev_trace_ring_free,
> +	RTE_TRACE_POINT_ARGS(const char *name),
> +	rte_trace_point_emit_string(name);
> +)
> +
> +RTE_TRACE_POINT(
> +	rte_eventdev_trace_ring_init,
> +	RTE_TRACE_POINT_ARGS(const void *r, const char *name,
> +		unsigned int count, unsigned int flags),
> +	rte_trace_point_emit_ptr(r);
> +	rte_trace_point_emit_string(name);
> +	rte_trace_point_emit_u32(count);
> +	rte_trace_point_emit_u32(flags);
> +)
> +
> +RTE_TRACE_POINT(
> +	rte_eventdev_trace_ring_lookup,
> +	RTE_TRACE_POINT_ARGS(const char *name),
> +	rte_trace_point_emit_string(name);
> +)
> +
> +RTE_TRACE_POINT(
> +	rte_eventdev_trace_timer_adapter_caps_get,
> +	RTE_TRACE_POINT_ARGS(const char *name, uint8_t dev_id, int
> socket_id),
> +	rte_trace_point_emit_string(name);
> +	rte_trace_point_emit_u8(dev_id);
> +	rte_trace_point_emit_int(socket_id);
> +)
> +
> +RTE_TRACE_POINT(
> +	rte_eventdev_trace_timer_adapter_get_info,
> +	RTE_TRACE_POINT_ARGS(const struct rte_event_timer_adapter
> *adapter,
> +		const struct rte_event_timer_adapter_info *adapter_info),
> +	rte_trace_point_emit_ptr(adapter);
> +	rte_trace_point_emit_u8(adapter->data->id);
> +	rte_trace_point_emit_u8(adapter->data->event_dev_id);
> +	rte_trace_point_emit_u32(adapter->data->socket_id);
> +	rte_trace_point_emit_ptr(adapter_info);
> +	rte_trace_point_emit_u64(adapter_info->min_resolution_ns);
> +	rte_trace_point_emit_u64(adapter_info->max_tmo_ns);
> +	rte_trace_point_emit_u32(adapter_info->caps);
> +	rte_trace_point_emit_u16(adapter_info->event_dev_port_id);
> +)
> +
> +RTE_TRACE_POINT(
> +	rte_eventdev_trace_timer_adapter_lookup,
> +	RTE_TRACE_POINT_ARGS(uint16_t adapter_id, const void *adapter),
> +	rte_trace_point_emit_u16(adapter_id);
> +	rte_trace_point_emit_ptr(adapter);
> +)
> +
> +RTE_TRACE_POINT(
> +	rte_eventdev_trace_timer_adapter_service_id_get,
> +	RTE_TRACE_POINT_ARGS(const struct rte_event_timer_adapter
> *adapter,
> +		uint32_t service_id),
> +	rte_trace_point_emit_ptr(adapter);
> +	rte_trace_point_emit_u32(service_id);
> +)
> +
> +RTE_TRACE_POINT(
> +	rte_eventdev_trace_vector_pool_create,
> +	RTE_TRACE_POINT_ARGS(const void *mp, const char *name, int
> socket_id,
> +		uint32_t size, uint32_t cache_size, uint32_t elt_size),
> +	rte_trace_point_emit_ptr(mp);
> +	rte_trace_point_emit_string(name);
> +	rte_trace_point_emit_int(socket_id);
> +	rte_trace_point_emit_u32(size);
> +	rte_trace_point_emit_u32(cache_size);
> +	rte_trace_point_emit_u32(elt_size);
> +)
> +
> +RTE_TRACE_POINT(
> +	rte_eventdev_trace_eth_rx_adapter_queue_conf_get,
> +	RTE_TRACE_POINT_ARGS(uint8_t id, uint16_t eth_dev_id,
> +		uint16_t rx_queue_id, const void *queue_conf),
> +	rte_trace_point_emit_u8(id);
> +	rte_trace_point_emit_u16(eth_dev_id);
> +	rte_trace_point_emit_u16(rx_queue_id);
> +	rte_trace_point_emit_ptr(queue_conf);
> +)
> +
> +RTE_TRACE_POINT(
> +	rte_eventdev_trace_queue_attr_set,
> +	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint8_t queue_id, uint32_t
> attr_id,
> +		uint32_t attr_value),
> +	rte_trace_point_emit_u8(dev_id);
> +	rte_trace_point_emit_u8(queue_id);
> +	rte_trace_point_emit_u32(attr_id);
> +	rte_trace_point_emit_u32(attr_value);
> +)
> +
> +RTE_TRACE_POINT(
> +	rte_eventdev_trace_port_quiesce,
> +	RTE_TRACE_POINT_ARGS(const struct rte_eventdev *dev, uint8_t
> port_id),
> +	rte_trace_point_emit_ptr(dev);
> +	rte_trace_point_emit_string(dev->data->name);
> +	rte_trace_point_emit_u8(dev->data->dev_id);
> +	rte_trace_point_emit_int(dev->data->socket_id);
> +	rte_trace_point_emit_u8(port_id);
> +)
> +
> +RTE_TRACE_POINT(
> +	rte_eventdev_trace_crypto_adapter_caps_get,
> +	RTE_TRACE_POINT_ARGS(const struct rte_eventdev *dev,
> +		const struct rte_cryptodev *cdev),
> +	rte_trace_point_emit_ptr(dev);
> +	rte_trace_point_emit_string(dev->data->name);
> +	rte_trace_point_emit_u8(dev->data->dev_id);
> +	rte_trace_point_emit_int(dev->data->socket_id);
> +	rte_trace_point_emit_ptr(cdev);
> +	rte_trace_point_emit_string(cdev->data->name);
> +	rte_trace_point_emit_u8(cdev->data->dev_id);
> +	rte_trace_point_emit_u8(cdev->data->socket_id);
> +)
> +
> +RTE_TRACE_POINT(
> +	rte_eventdev_trace_dequeue_timeout_ticks,
> +	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint64_t ns,
> +		const void *timeout_ticks),
> +	rte_trace_point_emit_u8(dev_id);
> +	rte_trace_point_emit_u64(ns);
> +	rte_trace_point_emit_ptr(timeout_ticks);
> +)
> +
> +RTE_TRACE_POINT(
> +	rte_eventdev_trace_crypto_adapter_stats_get,
> +	RTE_TRACE_POINT_ARGS(uint8_t id, const void *stats,
> +		uint64_t event_poll_count, uint64_t event_deq_count,
> +		uint64_t crypto_enq_count, uint64_t crypto_enq_fail,
> +		uint64_t crypto_deq_count, uint64_t event_enq_count,
> +		uint64_t event_enq_retry_count,	uint64_t
> event_enq_fail_count),
> +	rte_trace_point_emit_u8(id);
> +	rte_trace_point_emit_ptr(stats);
> +	rte_trace_point_emit_u64(event_poll_count);
> +	rte_trace_point_emit_u64(event_deq_count);
> +	rte_trace_point_emit_u64(crypto_enq_count);
> +	rte_trace_point_emit_u64(crypto_enq_fail);
> +	rte_trace_point_emit_u64(crypto_deq_count);
> +	rte_trace_point_emit_u64(event_enq_count);
> +	rte_trace_point_emit_u64(event_enq_retry_count);
> +	rte_trace_point_emit_u64(event_enq_fail_count);
> +)
> +
> +RTE_TRACE_POINT(
> +	rte_eventdev_trace_crypto_adapter_stats_reset,
> +	RTE_TRACE_POINT_ARGS(uint8_t id),
> +	rte_trace_point_emit_u8(id);
> +)
> +
> +RTE_TRACE_POINT(
> +	rte_eventdev_trace_eth_rx_adapter_stats_get,
> +	RTE_TRACE_POINT_ARGS(uint8_t id, const void *stats),
> +	rte_trace_point_emit_u8(id);
> +	rte_trace_point_emit_ptr(stats);
>  )
> 
>  #ifdef __cplusplus
> diff --git a/lib/eventdev/eventdev_trace_points.c
> b/lib/eventdev/eventdev_trace_points.c
> index de6b1f4417..a3db2fb0bb 100644
> --- a/lib/eventdev/eventdev_trace_points.c
> +++ b/lib/eventdev/eventdev_trace_points.c
> @@ -124,3 +124,126 @@
> RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_stop,
> 
>  RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_enqueue,
>  	lib.eventdev.crypto.enq)
> +
> +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_event_p
> ort_get,
> +	lib.eventdev.crypto.adapter_event_port_get)
> +
> +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_service_i
> d_get,
> +	lib.eventdev.crypto.adapter_service_id_get)
> +
> +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_attr_get,
> +	lib.eventdev.attr_get)
> +
> +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_dump,
> +	lib.eventdev.dump)
> +
> +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_get_dev_id,
> +	lib.eventdev.get_dev_id)
> +
> +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_info_get,
> +	lib.eventdev.info_get)
> +
> +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_selftest,
> +	lib.eventdev.selftest)
> +
> +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_service_id_get,
> +	lib.eventdev.service_id_get)
> +
> +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_socket_id,
> +	lib.eventdev.socket.id)
> +
> +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_stop_flush_callback_regis
> ter,
> +	lib.eventdev.stop.flush.callback.register)
> +
> +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_caps_get
> ,
> +	lib.eventdev.eth.rx.adapter.caps.get)
> +
> +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_cb_regist
> er,
> +	lib.eventdev.eth.rx.adapter.cb.register)
> +
> +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_service_i
> d_get,
> +	lib.eventdev.eth.rx.adapter.service.id.get)
> +
> +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_vector_li
> mits_get,
> +	lib.eventdev.eth.rx.adapter.vector.limits.get)
> +
> +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_caps_get
> ,
> +	lib.eventdev.eth.tx.adapter.caps.get)
> +
> +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_event_po
> rt_get,
> +	lib.eventdev.eth.tx.adapter.event.port.get)
> +
> +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_service_i
> d_get,
> +	lib.eventdev.eth.tx.adapter.service.id.get)
> +
> +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_port_attr_get,
> +	lib.eventdev.port.attr.get)
> +
> +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_port_default_conf_get,
> +	lib.eventdev.port.default.conf.get)
> +
> +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_port_links_get,
> +	lib.eventdev.port.links.get)
> +
> +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_port_unlinks_in_progress
> ,
> +	lib.eventdev.port.unlinks.in.progress)
> +
> +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_queue_attr_get,
> +	lib.eventdev.queue.attr.get)
> +
> +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_queue_default_conf_get,
> +	lib.eventdev.queue.default.conf.get)
> +
> +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_ring_create,
> +	lib.eventdev.ring.create)
> +
> +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_ring_free,
> +	lib.eventdev.ring.free)
> +
> +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_ring_init,
> +	lib.eventdev.ring.init)
> +
> +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_ring_lookup,
> +	lib.eventdev.ring.lookup)
> +
> +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_adapter_caps_get,
> +	lib.eventdev.timer.adapter.caps.get)
> +
> +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_adapter_get_info,
> +	lib.eventdev.timer.adapter.get.info)
> +
> +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_adapter_lookup,
> +	lib.eventdev.timer.adapter.lookup)
> +
> +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_adapter_service_id
> _get,
> +	lib.eventdev.timer.adapter.service.id.get)
> +
> +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_vector_pool_create,
> +	lib.eventdev.vector.pool.create)
> +
> +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_create_w
> ith_params,
> +	lib.eventdev.eth.rx.adapter.create.with.params)
> +
> +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_queue_c
> onf_get,
> +	lib.eventdev.eth.rx.adapter.queue.conf.get)
> +
> +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_queue_attr_set,
> +	lib.eventdev.queue.attr.set)
> +
> +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_port_quiesce,
> +	lib.eventdev.port.quiesce)
> +
> +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_caps_get
> ,
> +	lib.eventdev.crypto.adapter.caps.get)
> +
> +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_dequeue_timeout_ticks,
> +	lib.eventdev.dequeue.timeout.ticks)
> +
> +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_stats_get
> ,
> +	lib.eventdev.crypto.adapter.stats.get)
> +
> +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_stats_res
> et,
> +	lib.eventdev.crypto.adapter.stats.reset)
> +
> +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_stats_get
> ,
> +	lib.eventdev.rx.adapter.stats.get)
> diff --git a/lib/eventdev/rte_event_crypto_adapter.c
> b/lib/eventdev/rte_event_crypto_adapter.c
> index 3c585d7b0d..deace64dd6 100644
> --- a/lib/eventdev/rte_event_crypto_adapter.c
> +++ b/lib/eventdev/rte_event_crypto_adapter.c
> @@ -395,8 +395,6 @@ rte_event_crypto_adapter_create_ext(uint8_t id,
> uint8_t dev_id,
> 
>  	event_crypto_adapter[id] = adapter;
> 
> -	rte_eventdev_trace_crypto_adapter_create(id, dev_id, adapter,
> conf_arg,
> -		mode);
>  	return 0;
>  }
> 
> @@ -424,6 +422,9 @@ rte_event_crypto_adapter_create(uint8_t id, uint8_t
> dev_id,
>  	if (ret)
>  		rte_free(pc);
> 
> +	rte_eventdev_trace_crypto_adapter_create(id, dev_id, port_config,
> mode,
> +		ret);
> +
Any reason for moving from create_ext to create()?
>  	return ret;
>  }
> 
> @@ -1289,6 +1290,12 @@ rte_event_crypto_adapter_stats_get(uint8_t id,
>  	stats->crypto_deq_count += dev_stats_sum.crypto_deq_count;
>  	stats->event_enq_count += dev_stats_sum.event_enq_count;
> 
> +	rte_eventdev_trace_crypto_adapter_stats_get(id, stats,
> +		stats->event_poll_count, stats->event_deq_count,
> +		stats->crypto_enq_count, stats->crypto_enq_fail,
> +		stats->crypto_deq_count, stats->event_enq_count,
> +		stats->event_enq_retry_count, stats->event_enq_fail_count);
Fix the alignment issue
> +
>  	return 0;
>  }
> 
> @@ -1320,6 +1327,9 @@ rte_event_crypto_adapter_stats_reset(uint8_t id)
>  	}
> 
>  	memset(&adapter->crypto_stats, 0, sizeof(adapter->crypto_stats));
> +
> +	rte_eventdev_trace_crypto_adapter_stats_reset(id);
> +
>  	return 0;
>  }
> 
> @@ -1337,6 +1347,8 @@ rte_event_crypto_adapter_service_id_get(uint8_t
> id, uint32_t *service_id)
>  	if (adapter->service_inited)
>  		*service_id = adapter->service_id;
> 
> +	rte_eventdev_trace_crypto_adapter_service_id_get(id, *service_id);
> +
>  	return adapter->service_inited ? 0 : -ESRCH;  }
> 
> @@ -1353,6 +1365,8 @@ rte_event_crypto_adapter_event_port_get(uint8_t
> id, uint8_t *event_port_id)
> 
>  	*event_port_id = adapter->event_port_id;
> 
> +	rte_eventdev_trace_crypto_adapter_event_port_get(id,
> *event_port_id);
> +
>  	return 0;
>  }
> 
> diff --git a/lib/eventdev/rte_event_eth_rx_adapter.c
> b/lib/eventdev/rte_event_eth_rx_adapter.c
> index cf7bbd4d69..578448cad4 100644
> --- a/lib/eventdev/rte_event_eth_rx_adapter.c
> +++ b/lib/eventdev/rte_event_eth_rx_adapter.c
> @@ -2538,6 +2538,9 @@
> rte_event_eth_rx_adapter_create_with_params(uint8_t id, uint8_t dev_id,
>  	if (ret)
>  		rte_free(pc);
> 
> +	rte_eventdev_trace_eth_rx_adapter_create_with_params(id, dev_id,
> +		port_config, rxa_params, ret);
> +
>  	return ret;
>  }
> 
> @@ -2926,6 +2929,9 @@ rte_event_eth_rx_adapter_vector_limits_get(
>  		ret = rxa_sw_vector_limits(limits);
>  	}
> 
> +	rte_eventdev_trace_eth_rx_adapter_vector_limits_get(dev_id,
> eth_port_id,
> +		limits->min_sz, limits->max_sz, limits->log2_sz,
> +		limits->min_timeout_ns, limits->max_timeout_ns, ret);
>  	return ret;
>  }
> 
> @@ -2967,6 +2973,8 @@ rte_event_eth_rx_adapter_stats_get(uint8_t id,
>  	uint32_t i, j;
>  	int ret;
> 
> +	rte_eventdev_trace_eth_rx_adapter_stats_get(id, stats);
> +
>  	if (rxa_memzone_lookup())
>  		return -ENOMEM;
> 
> @@ -3200,6 +3208,8 @@ rte_event_eth_rx_adapter_service_id_get(uint8_t
> id, uint32_t *service_id)
>  	if (rx_adapter->service_inited)
>  		*service_id = rx_adapter->service_id;
> 
> +	rte_eventdev_trace_eth_rx_adapter_service_id_get(id, *service_id);
> +
>  	return rx_adapter->service_inited ? 0 : -ESRCH;  }
> 
> @@ -3234,6 +3244,9 @@ rte_event_eth_rx_adapter_cb_register(uint8_t id,
>  	uint32_t cap;
>  	int ret;
> 
> +	rte_eventdev_trace_eth_rx_adapter_cb_register(id, eth_dev_id,
> cb_fn,
> +						      cb_arg);
> +
>  	RTE_EVENT_ETH_RX_ADAPTER_ID_VALID_OR_ERR_RET(id, -EINVAL);
>  	RTE_ETH_VALID_PORTID_OR_ERR_RET(eth_dev_id, -EINVAL);
> 
> @@ -3281,6 +3294,9 @@ rte_event_eth_rx_adapter_queue_conf_get(uint8_t
> id,
>  	struct eth_rx_queue_info *queue_info;
>  	int ret;
> 
> +	rte_eventdev_trace_eth_rx_adapter_queue_conf_get(id, eth_dev_id,
> +		rx_queue_id, queue_conf);
> +
>  	if (rxa_memzone_lookup())
>  		return -ENOMEM;
> 
> diff --git a/lib/eventdev/rte_event_eth_tx_adapter.c
> b/lib/eventdev/rte_event_eth_tx_adapter.c
> index 88309d2aaa..ac040db6d9 100644
> --- a/lib/eventdev/rte_event_eth_tx_adapter.c
> +++ b/lib/eventdev/rte_event_eth_tx_adapter.c
> @@ -985,6 +985,8 @@ txa_service_id_get(uint8_t id, uint32_t *service_id)  {
>  	struct txa_service_data *txa;
> 
> +	rte_eventdev_trace_eth_tx_adapter_service_id_get(id, *service_id);
> +
>  	txa = txa_service_id_to_data(id);
>  	if (txa->service_id == TXA_INVALID_SERVICE_ID)
>  		return -ESRCH;
> @@ -1121,6 +1123,8 @@ rte_event_eth_tx_adapter_create_ext(uint8_t id,
> uint8_t dev_id,  int  rte_event_eth_tx_adapter_event_port_get(uint8_t id,
> uint8_t *event_port_id)  {
> +	rte_eventdev_trace_eth_tx_adapter_event_port_get(id,
> *event_port_id);
> +
>  	TXA_CHECK_OR_ERR_RET(id);
> 
>  	return txa_service_event_port_get(id, event_port_id); diff --git
> a/lib/eventdev/rte_event_ring.c b/lib/eventdev/rte_event_ring.c index
> c070715148..b965970cf9 100644
> --- a/lib/eventdev/rte_event_ring.c
> +++ b/lib/eventdev/rte_event_ring.c
> @@ -5,6 +5,7 @@
> 
> 
>  #include "rte_event_ring.h"
> +#include "eventdev_trace.h"
> 
>  int
>  rte_event_ring_init(struct rte_event_ring *r, const char *name, @@ -14,6
> +15,8 @@ rte_event_ring_init(struct rte_event_ring *r, const char *name,
>  	RTE_BUILD_BUG_ON((sizeof(struct rte_event_ring) &
>  			  RTE_CACHE_LINE_MASK) != 0);
> 
> +	rte_eventdev_trace_ring_init(r, name, count, flags);
> +
>  	/* init the ring structure */
>  	return rte_ring_init(&r->r, name, count, flags);  } @@ -23,6 +26,8 @@
> struct rte_event_ring *  rte_event_ring_create(const char *name, unsigned int
> count, int socket_id,
>  		unsigned int flags)
>  {
> +	rte_eventdev_trace_ring_create(name, count, socket_id, flags);
> +
>  	return (struct rte_event_ring *)rte_ring_create_elem(name,
>  						sizeof(struct rte_event),
>  						count, socket_id, flags);
> @@ -32,6 +37,8 @@ rte_event_ring_create(const char *name, unsigned int
> count, int socket_id,  struct rte_event_ring *  rte_event_ring_lookup(const
> char *name)  {
> +	rte_eventdev_trace_ring_lookup(name);
> +
>  	return (struct rte_event_ring *)rte_ring_lookup(name);  }
> 
> @@ -39,5 +46,7 @@ rte_event_ring_lookup(const char *name)  void
> rte_event_ring_free(struct rte_event_ring *r)  {
> +	rte_eventdev_trace_ring_free(r->r.name);
> +
>  	rte_ring_free((struct rte_ring *)r);
>  }
> diff --git a/lib/eventdev/rte_event_timer_adapter.c
> b/lib/eventdev/rte_event_timer_adapter.c
> index a0f14bf861..04e9b2e475 100644
> --- a/lib/eventdev/rte_event_timer_adapter.c
> +++ b/lib/eventdev/rte_event_timer_adapter.c
> @@ -271,6 +271,8 @@ rte_event_timer_adapter_get_info(const struct
> rte_event_timer_adapter *adapter,
>  	adapter_info->event_dev_port_id = adapter->data->event_port_id;
>  	adapter_info->caps = adapter->data->caps;
> 
> +	rte_eventdev_trace_timer_adapter_get_info(adapter, adapter_info);
> +
>  	return 0;
>  }
> 
> @@ -382,6 +384,8 @@ rte_event_timer_adapter_lookup(uint16_t
> adapter_id)
> 
>  	adapter->allocated = 1;
> 
> +	rte_eventdev_trace_timer_adapter_lookup(adapter_id, adapter);
> +
>  	return adapter;
>  }
> 
> @@ -435,6 +439,8 @@ rte_event_timer_adapter_service_id_get(struct
> rte_event_timer_adapter *adapter,
>  	if (adapter->data->service_inited && service_id != NULL)
>  		*service_id = adapter->data->service_id;
> 
> +	rte_eventdev_trace_timer_adapter_service_id_get(adapter,
> *service_id);
> +
>  	return adapter->data->service_inited ? 0 : -ESRCH;  }
> 
> diff --git a/lib/eventdev/rte_eventdev.c b/lib/eventdev/rte_eventdev.c index
> b0414206d9..0e482434ee 100644
> --- a/lib/eventdev/rte_eventdev.c
> +++ b/lib/eventdev/rte_eventdev.c
> @@ -62,8 +62,10 @@ rte_event_dev_get_dev_id(const char *name)
>  				rte_event_devices[i].dev->driver->name,
> name,
>  					 RTE_EVENTDEV_NAME_MAX_LEN)
> == 0) : 0);
>  		if (cmp && (rte_event_devices[i].attached ==
> -					RTE_EVENTDEV_ATTACHED))
> +					RTE_EVENTDEV_ATTACHED)) {
> +			rte_eventdev_trace_get_dev_id(name, i);
>  			return i;
> +		}
>  	}
>  	return -ENODEV;
>  }
> @@ -76,6 +78,9 @@ rte_event_dev_socket_id(uint8_t dev_id)
>  	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
>  	dev = &rte_eventdevs[dev_id];
> 
> +	rte_eventdev_trace_socket_id(dev->data->name, dev->data->dev_id,
> +		dev->data->socket_id);
> +
>  	return dev->data->socket_id;
>  }
> 
> @@ -99,6 +104,10 @@ rte_event_dev_info_get(uint8_t dev_id, struct
> rte_event_dev_info *dev_info)
>  	dev_info->dequeue_timeout_ns = dev->data-
> >dev_conf.dequeue_timeout_ns;
> 
>  	dev_info->dev = dev->dev;
> +
> +	rte_eventdev_trace_info_get(dev->data->name, dev->data->dev_id,
> +		dev->data->socket_id, dev->dev->name, dev_info-
> >driver_name);
> +
>  	return 0;
>  }
> 
> @@ -121,6 +130,9 @@ rte_event_eth_rx_adapter_caps_get(uint8_t dev_id,
> uint16_t eth_port_id,
>  	else
>  		*caps = 0;
> 
> +	rte_eventdev_trace_eth_rx_adapter_caps_get(dev->data->name,
> +		dev->data->dev_id, dev->data->socket_id, eth_port_id);
> +
>  	return dev->dev_ops->eth_rx_adapter_caps_get ?
>  				(*dev->dev_ops-
> >eth_rx_adapter_caps_get)(dev,
> 
> 	&rte_eth_devices[eth_port_id],
> @@ -146,6 +158,9 @@ rte_event_timer_adapter_caps_get(uint8_t dev_id,
> uint32_t *caps)
>  	else
>  		*caps = 0;
> 
> +	rte_eventdev_trace_timer_adapter_caps_get(dev->data->name,
> +		dev->data->dev_id, dev->data->socket_id);
> +
>  	return dev->dev_ops->timer_adapter_caps_get ?
>  				(*dev->dev_ops-
> >timer_adapter_caps_get)(dev,
>  									0,
> @@ -176,6 +191,8 @@ rte_event_crypto_adapter_caps_get(uint8_t dev_id,
> uint8_t cdev_id,
>  	else
>  		*caps = 0;
> 
> +	rte_eventdev_trace_crypto_adapter_caps_get(dev, cdev);
> +
>  	return dev->dev_ops->crypto_adapter_caps_get ?
>  		(*dev->dev_ops->crypto_adapter_caps_get)
>  		(dev, cdev, caps) : 0;
> @@ -202,6 +219,8 @@ rte_event_eth_tx_adapter_caps_get(uint8_t dev_id,
> uint16_t eth_port_id,
>  	else
>  		*caps = 0;
> 
> +	rte_eventdev_trace_eth_tx_adapter_caps_get(dev, eth_dev,
> eth_port_id);
> +
>  	return dev->dev_ops->eth_tx_adapter_caps_get ?
>  			(*dev->dev_ops->eth_tx_adapter_caps_get)(dev,
>  								eth_dev,
> @@ -524,6 +543,9 @@ rte_event_queue_default_conf_get(uint8_t dev_id,
> uint8_t queue_id,
>  		return -ENOTSUP;
>  	memset(queue_conf, 0, sizeof(struct rte_event_queue_conf));
>  	(*dev->dev_ops->queue_def_conf)(dev, queue_id, queue_conf);
> +
> +	rte_eventdev_trace_queue_default_conf_get(dev, queue_id,
> queue_conf);
> +
>  	return 0;
>  }
> 
> @@ -652,6 +674,9 @@ rte_event_port_default_conf_get(uint8_t dev_id,
> uint8_t port_id,
>  		return -ENOTSUP;
>  	memset(port_conf, 0, sizeof(struct rte_event_port_conf));
>  	(*dev->dev_ops->port_def_conf)(dev, port_id, port_conf);
> +
> +	rte_eventdev_trace_port_default_conf_get(dev, port_id, port_conf);
> +
>  	return 0;
>  }
> 
> @@ -759,6 +784,8 @@ rte_event_port_quiesce(uint8_t dev_id, uint8_t
> port_id,
>  		return;
>  	}
> 
> +	rte_eventdev_trace_port_quiesce(dev, port_id);
> +
>  	if (dev->dev_ops->port_quiesce)
>  		(*dev->dev_ops->port_quiesce)(dev, dev->data-
> >ports[port_id],
>  					      release_cb, args);
> @@ -789,6 +816,8 @@ rte_event_dev_attr_get(uint8_t dev_id, uint32_t
> attr_id,
>  		return -EINVAL;
>  	}
> 
> +	rte_eventdev_trace_attr_get(dev, attr_id, *attr_value);
> +
>  	return 0;
>  }
> 
> @@ -829,6 +858,9 @@ rte_event_port_attr_get(uint8_t dev_id, uint8_t
> port_id, uint32_t attr_id,
>  	default:
>  		return -EINVAL;
>  	};
> +
> +	rte_eventdev_trace_port_attr_get(dev, port_id, attr_id, *attr_value);
> +
>  	return 0;
>  }
> 
> @@ -851,6 +883,8 @@ rte_event_queue_attr_get(uint8_t dev_id, uint8_t
> queue_id, uint32_t attr_id,
> 
>  	conf = &dev->data->queues_cfg[queue_id];
> 
> +	rte_eventdev_trace_queue_attr_get(dev, conf, queue_id, attr_id);
> +
>  	switch (attr_id) {
>  	case RTE_EVENT_QUEUE_ATTR_PRIORITY:
>  		*attr_value = RTE_EVENT_DEV_PRIORITY_NORMAL; @@ -
> 894,6 +928,8 @@ rte_event_queue_attr_set(uint8_t dev_id, uint8_t
> queue_id, uint32_t attr_id,  {
>  	struct rte_eventdev *dev;
> 
> +	rte_eventdev_trace_queue_attr_set(dev_id, queue_id, attr_id,
> +attr_value);
> +
>  	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
>  	dev = &rte_eventdevs[dev_id];
>  	if (!is_valid_queue(dev, queue_id)) {
> @@ -1048,6 +1084,8 @@ rte_event_port_unlinks_in_progress(uint8_t
> dev_id, uint8_t port_id)  {
>  	struct rte_eventdev *dev;
> 
> +	rte_eventdev_trace_port_unlinks_in_progress(dev_id, port_id);
> +
>  	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
>  	dev = &rte_eventdevs[dev_id];
>  	if (!is_valid_port(dev, port_id)) {
> @@ -1091,6 +1129,9 @@ rte_event_port_links_get(uint8_t dev_id, uint8_t
> port_id,
>  			++count;
>  		}
>  	}
> +
> +	rte_eventdev_trace_port_links_get(dev_id, port_id, count);
> +
>  	return count;
>  }
> 
> @@ -1100,6 +1141,8 @@ rte_event_dequeue_timeout_ticks(uint8_t dev_id,
> uint64_t ns,  {
>  	struct rte_eventdev *dev;
> 
> +	rte_eventdev_trace_dequeue_timeout_ticks(dev_id, ns,
> timeout_ticks);
> +
>  	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
>  	dev = &rte_eventdevs[dev_id];
>  	if (*dev->dev_ops->timeout_ticks == NULL) @@ -1125,6 +1168,8 @@
> rte_event_dev_service_id_get(uint8_t dev_id, uint32_t *service_id)
>  	if (dev->data->service_inited)
>  		*service_id = dev->data->service_id;
> 
> +	rte_eventdev_trace_service_id_get(dev_id, *service_id);
> +
>  	return dev->data->service_inited ? 0 : -ESRCH;  }
> 
> @@ -1285,6 +1330,9 @@ rte_event_vector_pool_create(const char *name,
> unsigned int n,
>  	if (ret < 0)
>  		goto err;
> 
> +	rte_eventdev_trace_vector_pool_create(mp, mp->name, mp-
> >socket_id,
> +		mp->size, mp->cache_size, mp->elt_size);
> +
>  	return mp;
>  err:
>  	rte_mempool_free(mp);
> diff --git a/lib/eventdev/version.map b/lib/eventdev/version.map index
> dd63ec6f68..ee4e2fd4b3 100644
> --- a/lib/eventdev/version.map
> +++ b/lib/eventdev/version.map
> @@ -118,6 +118,53 @@ EXPERIMENTAL {
>  	rte_event_eth_tx_adapter_instance_get;
>  	rte_event_eth_tx_adapter_queue_start;
>  	rte_event_eth_tx_adapter_queue_stop;
> +
> +	# added in 23.03
> +	__rte_eventdev_trace_eth_rx_adapter_caps_get;
> +	__rte_eventdev_trace_eth_tx_adapter_caps_get;
> +	__rte_eventdev_trace_timer_adapter_caps_get;
> +	__rte_eventdev_trace_crypto_adapter_caps_get;
> +	__rte_eventdev_trace_crypto_adapter_event_port_get;
> +	__rte_eventdev_trace_crypto_adapter_service_id_get;
> +	__rte_eventdev_trace_eth_rx_adapter_cb_register;
> +	__rte_eventdev_trace_eth_rx_adapter_create_with_params;
> +	__rte_eventdev_trace_eth_rx_adapter_queue_conf_get;
> +	__rte_eventdev_trace_eth_rx_adapter_service_id_get;
> +	__rte_eventdev_trace_eth_rx_adapter_vector_limits_get;
> +	__rte_eventdev_trace_eth_tx_adapter_event_port_get;
> +	__rte_eventdev_trace_eth_tx_adapter_service_id_get;
> +	__rte_eventdev_trace_port_attr_get;
> +	__rte_eventdev_trace_port_default_conf_get;
> +	__rte_eventdev_trace_port_links_get;
> +	__rte_eventdev_trace_port_quiesce;
> +	__rte_eventdev_trace_port_unlinks_in_progress;
> +	__rte_eventdev_trace_queue_attr_get;
> +	__rte_eventdev_trace_queue_attr_set;
> +	__rte_eventdev_trace_queue_default_conf_get;
> +	__rte_eventdev_trace_ring_create;
> +	__rte_eventdev_trace_ring_free;
> +	__rte_eventdev_trace_ring_init;
> +	__rte_eventdev_trace_ring_lookup;
> +	__rte_eventdev_trace_timer_adapter_get_info;
> +	__rte_eventdev_trace_timer_adapter_lookup;
> +	__rte_eventdev_trace_timer_adapter_service_id_get;
> +	__rte_eventdev_trace_attr_get;
> +	__rte_eventdev_trace_close;
> +	__rte_eventdev_trace_configure;
> +	__rte_eventdev_trace_dump;
> +	__rte_eventdev_trace_get_dev_id;
> +	__rte_eventdev_trace_info_get;
> +	__rte_eventdev_trace_selftest;
> +	__rte_eventdev_trace_service_id_get;
> +	__rte_eventdev_trace_socket_id;
> +	__rte_eventdev_trace_start;
> +	__rte_eventdev_trace_stop;
> +	__rte_eventdev_trace_stop_flush_callback_register;
> +	__rte_eventdev_trace_vector_pool_create;
> +	__rte_eventdev_trace_dequeue_timeout_ticks;
> +	__rte_eventdev_trace_crypto_adapter_stats_get;
> +	__rte_eventdev_trace_crypto_adapter_stats_reset;
> +	__rte_eventdev_trace_eth_rx_adapter_stats_get;
>  };
> 
>  INTERNAL {
> --
> 2.25.1


^ permalink raw reply	[flat|nested] 14+ messages in thread

* RE: [PATCH] eventdev: add trace points
  2023-01-03  5:57 ` Gujjar, Abhinandan S
@ 2023-01-27  9:06   ` Amit Prakash Shukla
  0 siblings, 0 replies; 14+ messages in thread
From: Amit Prakash Shukla @ 2023-01-27  9:06 UTC (permalink / raw)
  To: Gujjar, Abhinandan S, Jerin Jacob Kollanukkaran, Naga Harish K,
	S V, Carrillo, Erik G
  Cc: dev

Thanks Abhinandan for review and feedback. Please find my reply in-line.

> -----Original Message-----
> From: Gujjar, Abhinandan S <abhinandan.gujjar@intel.com>
> Sent: Tuesday, January 3, 2023 11:27 AM
> To: Amit Prakash Shukla <amitprakashs@marvell.com>; Jerin Jacob
> Kollanukkaran <jerinj@marvell.com>; Naga Harish K, S V
> <s.v.naga.harish.k@intel.com>; Carrillo, Erik G <erik.g.carrillo@intel.com>
> Cc: dev@dpdk.org
> Subject: [EXT] RE: [PATCH] eventdev: add trace points
> 
> External Email
> 
> ----------------------------------------------------------------------
> 
> 
> > -----Original Message-----
> > From: Amit Prakash Shukla <amitprakashs@marvell.com>
> > Sent: Monday, December 19, 2022 7:41 PM
> > To: Jerin Jacob <jerinj@marvell.com>; Gujjar, Abhinandan S
> > <abhinandan.gujjar@intel.com>; Naga Harish K, S V
> > <s.v.naga.harish.k@intel.com>; Carrillo, Erik G
> > <erik.g.carrillo@intel.com>
> > Cc: dev@dpdk.org; Amit Prakash Shukla <amitprakashs@marvell.com>
> > Subject: [PATCH] eventdev: add trace points
> >
> > Add trace points for cryptodev functions.
> >
> > Signed-off-by: Amit Prakash Shukla <amitprakashs@marvell.com>
> > ---
> >  lib/eventdev/eventdev_trace.h           | 502 ++++++++++++++++++++++--
> >  lib/eventdev/eventdev_trace_points.c    | 123 ++++++
> >  lib/eventdev/rte_event_crypto_adapter.c |  18 +-
> > lib/eventdev/rte_event_eth_rx_adapter.c |  16 +
> >  lib/eventdev/rte_event_eth_tx_adapter.c |   4 +
> >  lib/eventdev/rte_event_ring.c           |   9 +
> >  lib/eventdev/rte_event_timer_adapter.c  |   6 +
> >  lib/eventdev/rte_eventdev.c             |  50 ++-
> >  lib/eventdev/version.map                |  47 +++
> >  9 files changed, 731 insertions(+), 44 deletions(-)
> >
> > diff --git a/lib/eventdev/eventdev_trace.h
> > b/lib/eventdev/eventdev_trace.h index d48cd58850..9443bbfa83 100644
> > --- a/lib/eventdev/eventdev_trace.h
> > +++ b/lib/eventdev/eventdev_trace.h
> > @@ -21,6 +21,9 @@ extern "C" {
> >  #include "rte_event_crypto_adapter.h"
> >  #include "rte_event_eth_rx_adapter.h"
> >  #include "rte_event_timer_adapter.h"
> > +#include "eventdev_pmd.h"
> > +#include "cryptodev_pmd.h"
> > +#include "ethdev_driver.h"
> >
> >  RTE_TRACE_POINT(
> >  	rte_eventdev_trace_configure,
> > @@ -63,6 +66,7 @@ RTE_TRACE_POINT(
> >  	rte_trace_point_emit_u16(port_conf->enqueue_depth);
> >  	rte_trace_point_emit_u32(port_conf->event_port_cfg);
> >  	rte_trace_point_emit_int(rc);
> > +	rte_trace_point_emit_ptr(port_conf);
> >  )
> >
> >  RTE_TRACE_POINT(
> > @@ -106,9 +110,9 @@ RTE_TRACE_POINT(
> >
> >  RTE_TRACE_POINT(
> >  	rte_eventdev_trace_eth_rx_adapter_create,
> > -	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint8_t dev_id, void
> > *conf_cb,
> > +	RTE_TRACE_POINT_ARGS(uint8_t adapter_id, uint8_t dev_id, void
> > +*conf_cb,
> >  		void *conf_arg),
> > -	rte_trace_point_emit_u8(adptr_id);
> > +	rte_trace_point_emit_u8(adapter_id);
> >  	rte_trace_point_emit_u8(dev_id);
> >  	rte_trace_point_emit_ptr(conf_cb);
> >  	rte_trace_point_emit_ptr(conf_arg);
> > @@ -116,17 +120,17 @@ RTE_TRACE_POINT(
> >
> >  RTE_TRACE_POINT(
> >  	rte_eventdev_trace_eth_rx_adapter_free,
> > -	RTE_TRACE_POINT_ARGS(uint8_t adptr_id),
> > -	rte_trace_point_emit_u8(adptr_id);
> > +	RTE_TRACE_POINT_ARGS(uint8_t adapter_id),
> > +	rte_trace_point_emit_u8(adapter_id);
> >  )
> >
> >  RTE_TRACE_POINT(
> >  	rte_eventdev_trace_eth_rx_adapter_queue_add,
> > -	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint16_t eth_dev_id,
> > +	RTE_TRACE_POINT_ARGS(uint8_t adapter_id, uint16_t eth_dev_id,
> >  		int32_t rx_queue_id,
> >  		const struct rte_event_eth_rx_adapter_queue_conf
> > *queue_conf,
> >  		int rc),
> > -	rte_trace_point_emit_u8(adptr_id);
> > +	rte_trace_point_emit_u8(adapter_id);
> >  	rte_trace_point_emit_u16(eth_dev_id);
> >  	rte_trace_point_emit_i32(rx_queue_id);
> >  	rte_trace_point_emit_u32(queue_conf->rx_queue_flags);
> > @@ -138,9 +142,9 @@ RTE_TRACE_POINT(
> >
> >  RTE_TRACE_POINT(
> >  	rte_eventdev_trace_eth_rx_adapter_queue_del,
> > -	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint16_t eth_dev_id,
> > +	RTE_TRACE_POINT_ARGS(uint8_t adapter_id, uint16_t eth_dev_id,
> >  		int32_t rx_queue_id, int rc),
> > -	rte_trace_point_emit_u8(adptr_id);
> > +	rte_trace_point_emit_u8(adapter_id);
> >  	rte_trace_point_emit_u16(eth_dev_id);
> >  	rte_trace_point_emit_i32(rx_queue_id);
> >  	rte_trace_point_emit_int(rc);
> > @@ -148,21 +152,21 @@ RTE_TRACE_POINT(
> >
> >  RTE_TRACE_POINT(
> >  	rte_eventdev_trace_eth_rx_adapter_start,
> > -	RTE_TRACE_POINT_ARGS(uint8_t adptr_id),
> > -	rte_trace_point_emit_u8(adptr_id);
> > +	RTE_TRACE_POINT_ARGS(uint8_t adapter_id),
> > +	rte_trace_point_emit_u8(adapter_id);
> >  )
> >
> >  RTE_TRACE_POINT(
> >  	rte_eventdev_trace_eth_rx_adapter_stop,
> > -	RTE_TRACE_POINT_ARGS(uint8_t adptr_id),
> > -	rte_trace_point_emit_u8(adptr_id);
> > +	RTE_TRACE_POINT_ARGS(uint8_t adapter_id),
> > +	rte_trace_point_emit_u8(adapter_id);
> >  )
> >
> >  RTE_TRACE_POINT(
> >  	rte_eventdev_trace_eth_tx_adapter_create,
> > -	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint8_t dev_id, void
> > *conf_cb,
> > +	RTE_TRACE_POINT_ARGS(uint8_t adapter_id, uint8_t dev_id, void
> > +*conf_cb,
> >  		struct rte_event_port_conf *port_conf, int rc),
> > -	rte_trace_point_emit_u8(adptr_id);
> > +	rte_trace_point_emit_u8(adapter_id);
> >  	rte_trace_point_emit_u8(dev_id);
> >  	rte_trace_point_emit_i32(port_conf->new_event_threshold);
> >  	rte_trace_point_emit_u16(port_conf->dequeue_depth);
> > @@ -174,16 +178,16 @@ RTE_TRACE_POINT(
> >
> >  RTE_TRACE_POINT(
> >  	rte_eventdev_trace_eth_tx_adapter_free,
> > -	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, int rc),
> > -	rte_trace_point_emit_u8(adptr_id);
> > +	RTE_TRACE_POINT_ARGS(uint8_t adapter_id, int rc),
> > +	rte_trace_point_emit_u8(adapter_id);
> >  	rte_trace_point_emit_int(rc);
> >  )
> >
> >  RTE_TRACE_POINT(
> >  	rte_eventdev_trace_eth_tx_adapter_queue_add,
> > -	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint16_t eth_dev_id,
> > +	RTE_TRACE_POINT_ARGS(uint8_t adapter_id, uint16_t eth_dev_id,
> >  		int32_t queue, int rc),
> > -	rte_trace_point_emit_u8(adptr_id);
> > +	rte_trace_point_emit_u8(adapter_id);
> >  	rte_trace_point_emit_u16(eth_dev_id);
> >  	rte_trace_point_emit_i32(queue);
> >  	rte_trace_point_emit_int(rc);
> > @@ -191,9 +195,9 @@ RTE_TRACE_POINT(
> >
> >  RTE_TRACE_POINT(
> >  	rte_eventdev_trace_eth_tx_adapter_queue_del,
> > -	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint16_t eth_dev_id,
> > +	RTE_TRACE_POINT_ARGS(uint8_t adapter_id, uint16_t eth_dev_id,
> >  		int32_t queue, int rc),
> > -	rte_trace_point_emit_u8(adptr_id);
> > +	rte_trace_point_emit_u8(adapter_id);
> >  	rte_trace_point_emit_u16(eth_dev_id);
> >  	rte_trace_point_emit_i32(queue);
> >  	rte_trace_point_emit_int(rc);
> > @@ -201,15 +205,15 @@ RTE_TRACE_POINT(
> >
> >  RTE_TRACE_POINT(
> >  	rte_eventdev_trace_eth_tx_adapter_start,
> > -	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, int rc),
> > -	rte_trace_point_emit_u8(adptr_id);
> > +	RTE_TRACE_POINT_ARGS(uint8_t adapter_id, int rc),
> > +	rte_trace_point_emit_u8(adapter_id);
> >  	rte_trace_point_emit_int(rc);
> >  )
> >
> >  RTE_TRACE_POINT(
> >  	rte_eventdev_trace_eth_tx_adapter_stop,
> > -	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, int rc),
> > -	rte_trace_point_emit_u8(adptr_id);
> > +	RTE_TRACE_POINT_ARGS(uint8_t adapter_id, int rc),
> > +	rte_trace_point_emit_u8(adapter_id);
> >  	rte_trace_point_emit_int(rc);
> >  )
> >
> > @@ -250,22 +254,23 @@ RTE_TRACE_POINT(
> >
> >  RTE_TRACE_POINT(
> >  	rte_eventdev_trace_crypto_adapter_create,
> > -	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint8_t dev_id, void
> > *adapter,
> > -		struct rte_event_port_conf *port_conf, uint8_t mode),
> > -	rte_trace_point_emit_u8(adptr_id);
> > +	RTE_TRACE_POINT_ARGS(uint8_t id, uint8_t dev_id,
> Id -> adapter_id??

Sure, will make the change in next version.

> > +		struct rte_event_port_conf *port_config, int mode, int ret),
> > +	rte_trace_point_emit_u8(id);
> Same here
> >  	rte_trace_point_emit_u8(dev_id);
> > -	rte_trace_point_emit_ptr(adapter);
> > -	rte_trace_point_emit_u8(mode);
> > -	rte_trace_point_emit_i32(port_conf->new_event_threshold);
> > -	rte_trace_point_emit_u16(port_conf->dequeue_depth);
> > -	rte_trace_point_emit_u16(port_conf->enqueue_depth);
> > -	rte_trace_point_emit_u32(port_conf->event_port_cfg);
> > +	rte_trace_point_emit_ptr(port_config);
> > +	rte_trace_point_emit_i32(port_config->new_event_threshold);
> > +	rte_trace_point_emit_u16(port_config->dequeue_depth);
> > +	rte_trace_point_emit_u16(port_config->enqueue_depth);
> > +	rte_trace_point_emit_u32(port_config->event_port_cfg);
> > +	rte_trace_point_emit_int(mode);
> > +	rte_trace_point_emit_int(ret);
> >  )
> >
> >  RTE_TRACE_POINT(
> >  	rte_eventdev_trace_crypto_adapter_free,
> > -	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, void *adapter),
> > -	rte_trace_point_emit_u8(adptr_id);
> > +	RTE_TRACE_POINT_ARGS(uint8_t adapter_id, const void *adapter),
> > +	rte_trace_point_emit_u8(adapter_id);
> >  	rte_trace_point_emit_ptr(adapter);
> >  )
> >
> > @@ -282,9 +287,9 @@ RTE_TRACE_POINT(
> >
> >  RTE_TRACE_POINT(
> >  	rte_eventdev_trace_crypto_adapter_queue_pair_del,
> > -	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint8_t cdev_id,
> > +	RTE_TRACE_POINT_ARGS(uint8_t adapter_id, uint8_t cdev_id,
> >  		int32_t queue_pair_id, int rc),
> > -	rte_trace_point_emit_u8(adptr_id);
> > +	rte_trace_point_emit_u8(adapter_id);
> >  	rte_trace_point_emit_u8(cdev_id);
> >  	rte_trace_point_emit_i32(queue_pair_id);
> >  	rte_trace_point_emit_int(rc);
> > @@ -292,15 +297,430 @@ RTE_TRACE_POINT(
> >
> >  RTE_TRACE_POINT(
> >  	rte_eventdev_trace_crypto_adapter_start,
> > -	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, void *adapter),
> > -	rte_trace_point_emit_u8(adptr_id);
> > +	RTE_TRACE_POINT_ARGS(uint8_t adapter_id, const void *adapter),
> > +	rte_trace_point_emit_u8(adapter_id);
> >  	rte_trace_point_emit_ptr(adapter);
> >  )
> >
> >  RTE_TRACE_POINT(
> >  	rte_eventdev_trace_crypto_adapter_stop,
> > -	RTE_TRACE_POINT_ARGS(uint8_t adptr_id),
> > -	rte_trace_point_emit_u8(adptr_id);
> > +	RTE_TRACE_POINT_ARGS(uint8_t adapter_id),
> > +	rte_trace_point_emit_u8(adapter_id);
> > +)
> > +
> > +RTE_TRACE_POINT(
> > +	rte_eventdev_trace_crypto_adapter_event_port_get,
> > +	RTE_TRACE_POINT_ARGS(uint8_t id, uint8_t event_port_id),
> Id -> adapter_id??

Sure.

> > +	rte_trace_point_emit_u8(id);
> Same here. Check and replace in other places too.
> > +	rte_trace_point_emit_u8(event_port_id);
> > +)
> > +
> > +RTE_TRACE_POINT(
> > +	rte_eventdev_trace_crypto_adapter_service_id_get,
> > +	RTE_TRACE_POINT_ARGS(uint8_t id, uint32_t service_id),
> > +	rte_trace_point_emit_u8(id);
> > +	rte_trace_point_emit_u32(service_id);
> > +)
> > +
> > +RTE_TRACE_POINT(
> > +	rte_eventdev_trace_attr_get,
> > +	RTE_TRACE_POINT_ARGS(const struct rte_eventdev *dev, uint32_t
> > attr_id,
> > +		uint32_t attr_value),
> > +	rte_trace_point_emit_ptr(dev);
> > +	rte_trace_point_emit_string(dev->data->name);
> > +	rte_trace_point_emit_u8(dev->data->dev_id);
> > +	rte_trace_point_emit_int(dev->data->socket_id);
> > +	rte_trace_point_emit_u32(attr_id);
> > +	rte_trace_point_emit_u32(attr_value);
> > +)
> > +
> > +RTE_TRACE_POINT(
> > +	rte_eventdev_trace_dump,
> > +	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *f),
> > +	rte_trace_point_emit_u8(dev_id);
> > +	rte_trace_point_emit_ptr(f);
> > +)
> > +
> > +RTE_TRACE_POINT(
> > +	rte_eventdev_trace_get_dev_id,
> > +	RTE_TRACE_POINT_ARGS(const char *name, int dev_id),
> > +	rte_trace_point_emit_string(name);
> > +	rte_trace_point_emit_int(dev_id);
> > +)
> > +
> > +RTE_TRACE_POINT(
> > +	rte_eventdev_trace_info_get,
> > +	RTE_TRACE_POINT_ARGS(const char *name, uint8_t dev_id, int
> > socket_id,
> > +		const char *device_name, const char *driver_name),
> > +	rte_trace_point_emit_string(name);
> > +	rte_trace_point_emit_u8(dev_id);
> > +	rte_trace_point_emit_int(socket_id);
> > +	rte_trace_point_emit_string(device_name);
> > +	rte_trace_point_emit_string(driver_name);
> > +)
> > +
> > +RTE_TRACE_POINT(
> > +	rte_eventdev_trace_selftest,
> > +	RTE_TRACE_POINT_ARGS(uint8_t dev_id),
> > +	rte_trace_point_emit_u8(dev_id);
> > +)
> > +
> > +RTE_TRACE_POINT(
> > +	rte_eventdev_trace_service_id_get,
> > +	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint32_t service_id),
> > +	rte_trace_point_emit_u8(dev_id);
> > +	rte_trace_point_emit_u32(service_id);
> > +)
> > +
> > +RTE_TRACE_POINT(
> > +	rte_eventdev_trace_socket_id,
> > +	RTE_TRACE_POINT_ARGS(const char *name, uint8_t dev_id, int
> > socket_id),
> > +	rte_trace_point_emit_string(name);
> > +	rte_trace_point_emit_u8(dev_id);
> > +	rte_trace_point_emit_int(socket_id);
> > +)
> > +
> > +RTE_TRACE_POINT(
> > +	rte_eventdev_trace_stop_flush_callback_register,
> > +	RTE_TRACE_POINT_ARGS(uint8_t dev_id,
> > +		eventdev_stop_flush_t callback, void *userdata),
> > +	rte_trace_point_emit_u8(dev_id);
> > +	rte_trace_point_emit_ptr(callback);
> > +	rte_trace_point_emit_ptr(userdata);
> > +)
> > +
> > +RTE_TRACE_POINT(
> > +	rte_eventdev_trace_eth_rx_adapter_caps_get,
> > +	RTE_TRACE_POINT_ARGS(const char *name, uint8_t dev_id, int
> > socket_id,
> > +		uint16_t eth_port_id),
> > +	rte_trace_point_emit_string(name);
> > +	rte_trace_point_emit_u8(dev_id);
> > +	rte_trace_point_emit_int(socket_id);
> > +	rte_trace_point_emit_u16(eth_port_id);
> > +)
> > +
> > +RTE_TRACE_POINT(
> > +	rte_eventdev_trace_eth_rx_adapter_cb_register,
> > +	RTE_TRACE_POINT_ARGS(uint8_t id, uint16_t eth_dev_id, const void
> > *cb_fn,
> > +		const void *cb_arg),
> > +	rte_trace_point_emit_u8(id);
> > +	rte_trace_point_emit_u16(eth_dev_id);
> > +	rte_trace_point_emit_ptr(cb_fn);
> > +	rte_trace_point_emit_ptr(cb_arg);
> > +)
> > +
> > +RTE_TRACE_POINT(
> > +	rte_eventdev_trace_eth_rx_adapter_create_with_params,
> > +	RTE_TRACE_POINT_ARGS(uint8_t id, uint8_t dev_id,
> > +		const struct rte_event_port_conf *port_config,
> > +		const struct rte_event_eth_rx_adapter_params
> *rxa_params,
> > +		int ret),
> > +	rte_trace_point_emit_u8(id);
> > +	rte_trace_point_emit_u8(dev_id);
> > +	rte_trace_point_emit_ptr(port_config);
> > +	rte_trace_point_emit_i32(port_config->new_event_threshold);
> > +	rte_trace_point_emit_u16(port_config->dequeue_depth);
> > +	rte_trace_point_emit_u16(port_config->enqueue_depth);
> > +	rte_trace_point_emit_u32(port_config->event_port_cfg);
> > +	rte_trace_point_emit_ptr(rxa_params);
> > +	rte_trace_point_emit_u16(rxa_params->event_buf_size);
> > +	rte_trace_point_emit_int(ret);
> > +)
> > +
> > +RTE_TRACE_POINT(
> > +	rte_eventdev_trace_eth_rx_adapter_service_id_get,
> > +	RTE_TRACE_POINT_ARGS(uint8_t id, uint32_t service_id),
> > +	rte_trace_point_emit_u8(id);
> > +	rte_trace_point_emit_u32(service_id);
> > +)
> > +
> > +RTE_TRACE_POINT(
> > +	rte_eventdev_trace_eth_rx_adapter_vector_limits_get,
> > +	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint16_t eth_port_id,
> > +		uint16_t min_sz, uint16_t max_sz, uint8_t log2_sz,
> > +		uint64_t min_timeout_ns, uint64_t max_timeout_ns, int
> ret),
> > +	rte_trace_point_emit_u8(dev_id);
> > +	rte_trace_point_emit_u16(eth_port_id);
> > +	rte_trace_point_emit_u16(min_sz);
> > +	rte_trace_point_emit_u16(max_sz);
> > +	rte_trace_point_emit_u8(log2_sz);
> > +	rte_trace_point_emit_u64(min_timeout_ns);
> > +	rte_trace_point_emit_u64(max_timeout_ns);
> > +	rte_trace_point_emit_int(ret);
> > +)
> > +
> > +RTE_TRACE_POINT(
> > +	rte_eventdev_trace_eth_tx_adapter_caps_get,
> > +	RTE_TRACE_POINT_ARGS(const struct rte_eventdev *dev,
> > +		const struct rte_eth_dev *eth_dev, uint16_t eth_port_id),
> > +	rte_trace_point_emit_ptr(dev);
> > +	rte_trace_point_emit_string(dev->data->name);
> > +	rte_trace_point_emit_u8(dev->data->dev_id);
> > +	rte_trace_point_emit_int(dev->data->socket_id);
> > +	rte_trace_point_emit_ptr(eth_dev);
> > +	rte_trace_point_emit_string(eth_dev->data->name);
> > +	rte_trace_point_emit_u16(eth_port_id);
> > +)
> > +
> > +RTE_TRACE_POINT(
> > +	rte_eventdev_trace_eth_tx_adapter_event_port_get,
> > +	RTE_TRACE_POINT_ARGS(uint8_t id, uint8_t event_port_id),
> > +	rte_trace_point_emit_u8(id);
> > +	rte_trace_point_emit_u8(event_port_id);
> > +)
> > +
> > +RTE_TRACE_POINT(
> > +	rte_eventdev_trace_eth_tx_adapter_service_id_get,
> > +	RTE_TRACE_POINT_ARGS(uint8_t id, uint32_t service_id),
> > +	rte_trace_point_emit_u8(id);
> > +	rte_trace_point_emit_u32(service_id);
> > +)
> > +
> > +RTE_TRACE_POINT(
> > +	rte_eventdev_trace_port_attr_get,
> > +	RTE_TRACE_POINT_ARGS(const struct rte_eventdev *dev, uint8_t
> > port_id,
> > +		uint32_t attr_id, uint32_t attr_value),
> > +	rte_trace_point_emit_ptr(dev);
> > +	rte_trace_point_emit_string(dev->data->name);
> > +	rte_trace_point_emit_u8(dev->data->dev_id);
> > +	rte_trace_point_emit_int(dev->data->socket_id);
> > +	rte_trace_point_emit_u8(port_id);
> > +	rte_trace_point_emit_u32(attr_id);
> > +	rte_trace_point_emit_u32(attr_value);
> > +)
> > +
> > +RTE_TRACE_POINT(
> > +	rte_eventdev_trace_port_default_conf_get,
> > +	RTE_TRACE_POINT_ARGS(const struct rte_eventdev *dev, uint8_t
> > port_id,
> > +		const struct rte_event_port_conf *port_conf),
> > +	rte_trace_point_emit_ptr(dev);
> > +	rte_trace_point_emit_string(dev->data->name);
> > +	rte_trace_point_emit_u8(dev->data->dev_id);
> > +	rte_trace_point_emit_int(dev->data->socket_id);
> > +	rte_trace_point_emit_u8(port_id);
> > +	rte_trace_point_emit_ptr(port_conf);
> > +	rte_trace_point_emit_i32(port_conf->new_event_threshold);
> > +	rte_trace_point_emit_u16(port_conf->dequeue_depth);
> > +	rte_trace_point_emit_u16(port_conf->enqueue_depth);
> > +	rte_trace_point_emit_u32(port_conf->event_port_cfg);
> > +)
> > +
> > +RTE_TRACE_POINT(
> > +	rte_eventdev_trace_port_links_get,
> > +	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint8_t port_id, int count),
> > +	rte_trace_point_emit_u8(dev_id);
> > +	rte_trace_point_emit_u8(port_id);
> > +	rte_trace_point_emit_int(count);
> > +)
> > +
> > +RTE_TRACE_POINT(
> > +	rte_eventdev_trace_port_unlinks_in_progress,
> > +	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint8_t port_id),
> > +	rte_trace_point_emit_u8(dev_id);
> > +	rte_trace_point_emit_u8(port_id);
> > +)
> > +
> > +RTE_TRACE_POINT(
> > +	rte_eventdev_trace_queue_attr_get,
> > +	RTE_TRACE_POINT_ARGS(const struct rte_eventdev *dev,
> > +		const struct rte_event_queue_conf *conf, uint8_t queue_id,
> > +		uint32_t attr_id),
> > +	rte_trace_point_emit_ptr(dev);
> > +	rte_trace_point_emit_string(dev->data->name);
> > +	rte_trace_point_emit_u8(dev->data->dev_id);
> > +	rte_trace_point_emit_int(dev->data->socket_id);
> > +	rte_trace_point_emit_ptr(conf);
> > +	rte_trace_point_emit_u32(conf->nb_atomic_flows);
> > +	rte_trace_point_emit_u32(conf->nb_atomic_order_sequences);
> > +	rte_trace_point_emit_u32(conf->event_queue_cfg);
> > +	rte_trace_point_emit_u8(conf->schedule_type);
> > +	rte_trace_point_emit_u8(conf->priority);
> > +	rte_trace_point_emit_u8(queue_id);
> > +	rte_trace_point_emit_u32(attr_id);
> > +)
> > +
> > +RTE_TRACE_POINT(
> > +	rte_eventdev_trace_queue_default_conf_get,
> > +	RTE_TRACE_POINT_ARGS(const struct rte_eventdev *dev, uint8_t
> > queue_id,
> > +		const struct rte_event_queue_conf *queue_conf),
> > +	rte_trace_point_emit_ptr(dev);
> > +	rte_trace_point_emit_string(dev->data->name);
> > +	rte_trace_point_emit_u8(dev->data->dev_id);
> > +	rte_trace_point_emit_int(dev->data->socket_id);
> > +	rte_trace_point_emit_u8(queue_id);
> > +	rte_trace_point_emit_ptr(queue_conf);
> > +	rte_trace_point_emit_u32(queue_conf->nb_atomic_flows);
> > +	rte_trace_point_emit_u32(queue_conf-
> > >nb_atomic_order_sequences);
> > +	rte_trace_point_emit_u32(queue_conf->event_queue_cfg);
> > +	rte_trace_point_emit_u8(queue_conf->schedule_type);
> > +	rte_trace_point_emit_u8(queue_conf->priority);
> > +)
> > +
> > +RTE_TRACE_POINT(
> > +	rte_eventdev_trace_ring_create,
> > +	RTE_TRACE_POINT_ARGS(const char *name, unsigned int count,
> > +		int socket_id, unsigned int flags),
> > +	rte_trace_point_emit_string(name);
> > +	rte_trace_point_emit_u32(count);
> > +	rte_trace_point_emit_int(socket_id);
> > +	rte_trace_point_emit_u32(flags);
> > +)
> > +
> > +RTE_TRACE_POINT(
> > +	rte_eventdev_trace_ring_free,
> > +	RTE_TRACE_POINT_ARGS(const char *name),
> > +	rte_trace_point_emit_string(name);
> > +)
> > +
> > +RTE_TRACE_POINT(
> > +	rte_eventdev_trace_ring_init,
> > +	RTE_TRACE_POINT_ARGS(const void *r, const char *name,
> > +		unsigned int count, unsigned int flags),
> > +	rte_trace_point_emit_ptr(r);
> > +	rte_trace_point_emit_string(name);
> > +	rte_trace_point_emit_u32(count);
> > +	rte_trace_point_emit_u32(flags);
> > +)
> > +
> > +RTE_TRACE_POINT(
> > +	rte_eventdev_trace_ring_lookup,
> > +	RTE_TRACE_POINT_ARGS(const char *name),
> > +	rte_trace_point_emit_string(name);
> > +)
> > +
> > +RTE_TRACE_POINT(
> > +	rte_eventdev_trace_timer_adapter_caps_get,
> > +	RTE_TRACE_POINT_ARGS(const char *name, uint8_t dev_id, int
> > socket_id),
> > +	rte_trace_point_emit_string(name);
> > +	rte_trace_point_emit_u8(dev_id);
> > +	rte_trace_point_emit_int(socket_id);
> > +)
> > +
> > +RTE_TRACE_POINT(
> > +	rte_eventdev_trace_timer_adapter_get_info,
> > +	RTE_TRACE_POINT_ARGS(const struct rte_event_timer_adapter
> > *adapter,
> > +		const struct rte_event_timer_adapter_info *adapter_info),
> > +	rte_trace_point_emit_ptr(adapter);
> > +	rte_trace_point_emit_u8(adapter->data->id);
> > +	rte_trace_point_emit_u8(adapter->data->event_dev_id);
> > +	rte_trace_point_emit_u32(adapter->data->socket_id);
> > +	rte_trace_point_emit_ptr(adapter_info);
> > +	rte_trace_point_emit_u64(adapter_info->min_resolution_ns);
> > +	rte_trace_point_emit_u64(adapter_info->max_tmo_ns);
> > +	rte_trace_point_emit_u32(adapter_info->caps);
> > +	rte_trace_point_emit_u16(adapter_info->event_dev_port_id);
> > +)
> > +
> > +RTE_TRACE_POINT(
> > +	rte_eventdev_trace_timer_adapter_lookup,
> > +	RTE_TRACE_POINT_ARGS(uint16_t adapter_id, const void *adapter),
> > +	rte_trace_point_emit_u16(adapter_id);
> > +	rte_trace_point_emit_ptr(adapter);
> > +)
> > +
> > +RTE_TRACE_POINT(
> > +	rte_eventdev_trace_timer_adapter_service_id_get,
> > +	RTE_TRACE_POINT_ARGS(const struct rte_event_timer_adapter
> > *adapter,
> > +		uint32_t service_id),
> > +	rte_trace_point_emit_ptr(adapter);
> > +	rte_trace_point_emit_u32(service_id);
> > +)
> > +
> > +RTE_TRACE_POINT(
> > +	rte_eventdev_trace_vector_pool_create,
> > +	RTE_TRACE_POINT_ARGS(const void *mp, const char *name, int
> > socket_id,
> > +		uint32_t size, uint32_t cache_size, uint32_t elt_size),
> > +	rte_trace_point_emit_ptr(mp);
> > +	rte_trace_point_emit_string(name);
> > +	rte_trace_point_emit_int(socket_id);
> > +	rte_trace_point_emit_u32(size);
> > +	rte_trace_point_emit_u32(cache_size);
> > +	rte_trace_point_emit_u32(elt_size);
> > +)
> > +
> > +RTE_TRACE_POINT(
> > +	rte_eventdev_trace_eth_rx_adapter_queue_conf_get,
> > +	RTE_TRACE_POINT_ARGS(uint8_t id, uint16_t eth_dev_id,
> > +		uint16_t rx_queue_id, const void *queue_conf),
> > +	rte_trace_point_emit_u8(id);
> > +	rte_trace_point_emit_u16(eth_dev_id);
> > +	rte_trace_point_emit_u16(rx_queue_id);
> > +	rte_trace_point_emit_ptr(queue_conf);
> > +)
> > +
> > +RTE_TRACE_POINT(
> > +	rte_eventdev_trace_queue_attr_set,
> > +	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint8_t queue_id,
> uint32_t
> > attr_id,
> > +		uint32_t attr_value),
> > +	rte_trace_point_emit_u8(dev_id);
> > +	rte_trace_point_emit_u8(queue_id);
> > +	rte_trace_point_emit_u32(attr_id);
> > +	rte_trace_point_emit_u32(attr_value);
> > +)
> > +
> > +RTE_TRACE_POINT(
> > +	rte_eventdev_trace_port_quiesce,
> > +	RTE_TRACE_POINT_ARGS(const struct rte_eventdev *dev, uint8_t
> > port_id),
> > +	rte_trace_point_emit_ptr(dev);
> > +	rte_trace_point_emit_string(dev->data->name);
> > +	rte_trace_point_emit_u8(dev->data->dev_id);
> > +	rte_trace_point_emit_int(dev->data->socket_id);
> > +	rte_trace_point_emit_u8(port_id);
> > +)
> > +
> > +RTE_TRACE_POINT(
> > +	rte_eventdev_trace_crypto_adapter_caps_get,
> > +	RTE_TRACE_POINT_ARGS(const struct rte_eventdev *dev,
> > +		const struct rte_cryptodev *cdev),
> > +	rte_trace_point_emit_ptr(dev);
> > +	rte_trace_point_emit_string(dev->data->name);
> > +	rte_trace_point_emit_u8(dev->data->dev_id);
> > +	rte_trace_point_emit_int(dev->data->socket_id);
> > +	rte_trace_point_emit_ptr(cdev);
> > +	rte_trace_point_emit_string(cdev->data->name);
> > +	rte_trace_point_emit_u8(cdev->data->dev_id);
> > +	rte_trace_point_emit_u8(cdev->data->socket_id);
> > +)
> > +
> > +RTE_TRACE_POINT(
> > +	rte_eventdev_trace_dequeue_timeout_ticks,
> > +	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint64_t ns,
> > +		const void *timeout_ticks),
> > +	rte_trace_point_emit_u8(dev_id);
> > +	rte_trace_point_emit_u64(ns);
> > +	rte_trace_point_emit_ptr(timeout_ticks);
> > +)
> > +
> > +RTE_TRACE_POINT(
> > +	rte_eventdev_trace_crypto_adapter_stats_get,
> > +	RTE_TRACE_POINT_ARGS(uint8_t id, const void *stats,
> > +		uint64_t event_poll_count, uint64_t event_deq_count,
> > +		uint64_t crypto_enq_count, uint64_t crypto_enq_fail,
> > +		uint64_t crypto_deq_count, uint64_t event_enq_count,
> > +		uint64_t event_enq_retry_count,	uint64_t
> > event_enq_fail_count),
> > +	rte_trace_point_emit_u8(id);
> > +	rte_trace_point_emit_ptr(stats);
> > +	rte_trace_point_emit_u64(event_poll_count);
> > +	rte_trace_point_emit_u64(event_deq_count);
> > +	rte_trace_point_emit_u64(crypto_enq_count);
> > +	rte_trace_point_emit_u64(crypto_enq_fail);
> > +	rte_trace_point_emit_u64(crypto_deq_count);
> > +	rte_trace_point_emit_u64(event_enq_count);
> > +	rte_trace_point_emit_u64(event_enq_retry_count);
> > +	rte_trace_point_emit_u64(event_enq_fail_count);
> > +)
> > +
> > +RTE_TRACE_POINT(
> > +	rte_eventdev_trace_crypto_adapter_stats_reset,
> > +	RTE_TRACE_POINT_ARGS(uint8_t id),
> > +	rte_trace_point_emit_u8(id);
> > +)
> > +
> > +RTE_TRACE_POINT(
> > +	rte_eventdev_trace_eth_rx_adapter_stats_get,
> > +	RTE_TRACE_POINT_ARGS(uint8_t id, const void *stats),
> > +	rte_trace_point_emit_u8(id);
> > +	rte_trace_point_emit_ptr(stats);
> >  )
> >
> >  #ifdef __cplusplus
> > diff --git a/lib/eventdev/eventdev_trace_points.c
> > b/lib/eventdev/eventdev_trace_points.c
> > index de6b1f4417..a3db2fb0bb 100644
> > --- a/lib/eventdev/eventdev_trace_points.c
> > +++ b/lib/eventdev/eventdev_trace_points.c
> > @@ -124,3 +124,126 @@
> > RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_stop,
> >
> >
> RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_enqueu
> e,
> >  	lib.eventdev.crypto.enq)
> > +
> >
> +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_event
> _p
> > ort_get,
> > +	lib.eventdev.crypto.adapter_event_port_get)
> > +
> >
> +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_servic
> e_i
> > d_get,
> > +	lib.eventdev.crypto.adapter_service_id_get)
> > +
> > +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_attr_get,
> > +	lib.eventdev.attr_get)
> > +
> > +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_dump,
> > +	lib.eventdev.dump)
> > +
> > +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_get_dev_id,
> > +	lib.eventdev.get_dev_id)
> > +
> > +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_info_get,
> > +	lib.eventdev.info_get)
> > +
> > +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_selftest,
> > +	lib.eventdev.selftest)
> > +
> > +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_service_id_get,
> > +	lib.eventdev.service_id_get)
> > +
> > +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_socket_id,
> > +	lib.eventdev.socket.id)
> > +
> >
> +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_stop_flush_callback_re
> gis
> > ter,
> > +	lib.eventdev.stop.flush.callback.register)
> > +
> >
> +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_caps_
> get
> > ,
> > +	lib.eventdev.eth.rx.adapter.caps.get)
> > +
> >
> +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_cb_re
> gist
> > er,
> > +	lib.eventdev.eth.rx.adapter.cb.register)
> > +
> >
> +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_servic
> e_i
> > d_get,
> > +	lib.eventdev.eth.rx.adapter.service.id.get)
> > +
> >
> +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_vecto
> r_li
> > mits_get,
> > +	lib.eventdev.eth.rx.adapter.vector.limits.get)
> > +
> >
> +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_caps_
> get
> > ,
> > +	lib.eventdev.eth.tx.adapter.caps.get)
> > +
> >
> +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_event
> _po
> > rt_get,
> > +	lib.eventdev.eth.tx.adapter.event.port.get)
> > +
> >
> +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_servic
> e_i
> > d_get,
> > +	lib.eventdev.eth.tx.adapter.service.id.get)
> > +
> > +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_port_attr_get,
> > +	lib.eventdev.port.attr.get)
> > +
> >
> +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_port_default_conf_get
> ,
> > +	lib.eventdev.port.default.conf.get)
> > +
> > +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_port_links_get,
> > +	lib.eventdev.port.links.get)
> > +
> >
> +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_port_unlinks_in_progr
> ess
> > ,
> > +	lib.eventdev.port.unlinks.in.progress)
> > +
> > +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_queue_attr_get,
> > +	lib.eventdev.queue.attr.get)
> > +
> >
> +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_queue_default_conf_g
> et,
> > +	lib.eventdev.queue.default.conf.get)
> > +
> > +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_ring_create,
> > +	lib.eventdev.ring.create)
> > +
> > +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_ring_free,
> > +	lib.eventdev.ring.free)
> > +
> > +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_ring_init,
> > +	lib.eventdev.ring.init)
> > +
> > +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_ring_lookup,
> > +	lib.eventdev.ring.lookup)
> > +
> >
> +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_adapter_caps_g
> et,
> > +	lib.eventdev.timer.adapter.caps.get)
> > +
> >
> +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_adapter_get_inf
> o,
> > +	lib.eventdev.timer.adapter.get.info)
> > +
> >
> +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_adapter_lookup,
> > +	lib.eventdev.timer.adapter.lookup)
> > +
> >
> +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_adapter_service
> _id
> > _get,
> > +	lib.eventdev.timer.adapter.service.id.get)
> > +
> > +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_vector_pool_create,
> > +	lib.eventdev.vector.pool.create)
> > +
> >
> +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_creat
> e_w
> > ith_params,
> > +	lib.eventdev.eth.rx.adapter.create.with.params)
> > +
> >
> +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_queu
> e_c
> > onf_get,
> > +	lib.eventdev.eth.rx.adapter.queue.conf.get)
> > +
> > +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_queue_attr_set,
> > +	lib.eventdev.queue.attr.set)
> > +
> > +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_port_quiesce,
> > +	lib.eventdev.port.quiesce)
> > +
> >
> +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_caps_
> get
> > ,
> > +	lib.eventdev.crypto.adapter.caps.get)
> > +
> >
> +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_dequeue_timeout_tick
> s,
> > +	lib.eventdev.dequeue.timeout.ticks)
> > +
> >
> +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_stats_
> get
> > ,
> > +	lib.eventdev.crypto.adapter.stats.get)
> > +
> >
> +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_stats_
> res
> > et,
> > +	lib.eventdev.crypto.adapter.stats.reset)
> > +
> >
> +RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_stats_
> get
> > ,
> > +	lib.eventdev.rx.adapter.stats.get)
> > diff --git a/lib/eventdev/rte_event_crypto_adapter.c
> > b/lib/eventdev/rte_event_crypto_adapter.c
> > index 3c585d7b0d..deace64dd6 100644
> > --- a/lib/eventdev/rte_event_crypto_adapter.c
> > +++ b/lib/eventdev/rte_event_crypto_adapter.c
> > @@ -395,8 +395,6 @@ rte_event_crypto_adapter_create_ext(uint8_t id,
> > uint8_t dev_id,
> >
> >  	event_crypto_adapter[id] = adapter;
> >
> > -	rte_eventdev_trace_crypto_adapter_create(id, dev_id, adapter,
> > conf_arg,
> > -		mode);
> >  	return 0;
> >  }
> >
> > @@ -424,6 +422,9 @@ rte_event_crypto_adapter_create(uint8_t id,
> > uint8_t dev_id,
> >  	if (ret)
> >  		rte_free(pc);
> >
> > +	rte_eventdev_trace_crypto_adapter_create(id, dev_id, port_config,
> > mode,
> > +		ret);
> > +
> Any reason for moving from create_ext to create()?

Moved this function from rte_event_crypto_adapter_create_ext  to capture the return value in trace.
rte_event_crypto_adapter_create_ext is only called by rte_event_crypto_adapter_create.

> >  	return ret;
> >  }
> >
> > @@ -1289,6 +1290,12 @@ rte_event_crypto_adapter_stats_get(uint8_t id,
> >  	stats->crypto_deq_count += dev_stats_sum.crypto_deq_count;
> >  	stats->event_enq_count += dev_stats_sum.event_enq_count;
> >
> > +	rte_eventdev_trace_crypto_adapter_stats_get(id, stats,
> > +		stats->event_poll_count, stats->event_deq_count,
> > +		stats->crypto_enq_count, stats->crypto_enq_fail,
> > +		stats->crypto_deq_count, stats->event_enq_count,
> > +		stats->event_enq_retry_count, stats-
> >event_enq_fail_count);
> Fix the alignment issue

I reconfirmed, it is correctly aligned. Also checkpatch did not return any error.
Anyways will send next version of the patch and see if it is fine in that.

> > +
> >  	return 0;
> >  }
> >
> > @@ -1320,6 +1327,9 @@ rte_event_crypto_adapter_stats_reset(uint8_t
> id)
> >  	}
> >
> >  	memset(&adapter->crypto_stats, 0, sizeof(adapter->crypto_stats));
> > +
> > +	rte_eventdev_trace_crypto_adapter_stats_reset(id);
> > +
> >  	return 0;
> >  }
> >
> > @@ -1337,6 +1347,8 @@
> rte_event_crypto_adapter_service_id_get(uint8_t
> > id, uint32_t *service_id)
> >  	if (adapter->service_inited)
> >  		*service_id = adapter->service_id;
> >
> > +	rte_eventdev_trace_crypto_adapter_service_id_get(id,
> *service_id);
> > +
> >  	return adapter->service_inited ? 0 : -ESRCH;  }
> >
> > @@ -1353,6 +1365,8 @@
> rte_event_crypto_adapter_event_port_get(uint8_t
> > id, uint8_t *event_port_id)
> >
> >  	*event_port_id = adapter->event_port_id;
> >
> > +	rte_eventdev_trace_crypto_adapter_event_port_get(id,
> > *event_port_id);
> > +
> >  	return 0;
> >  }
> >
> > diff --git a/lib/eventdev/rte_event_eth_rx_adapter.c
> > b/lib/eventdev/rte_event_eth_rx_adapter.c
> > index cf7bbd4d69..578448cad4 100644
> > --- a/lib/eventdev/rte_event_eth_rx_adapter.c
> > +++ b/lib/eventdev/rte_event_eth_rx_adapter.c
> > @@ -2538,6 +2538,9 @@
> > rte_event_eth_rx_adapter_create_with_params(uint8_t id, uint8_t
> dev_id,
> >  	if (ret)
> >  		rte_free(pc);
> >
> > +	rte_eventdev_trace_eth_rx_adapter_create_with_params(id,
> dev_id,
> > +		port_config, rxa_params, ret);
> > +
> >  	return ret;
> >  }
> >
> > @@ -2926,6 +2929,9 @@ rte_event_eth_rx_adapter_vector_limits_get(
> >  		ret = rxa_sw_vector_limits(limits);
> >  	}
> >
> > +	rte_eventdev_trace_eth_rx_adapter_vector_limits_get(dev_id,
> > eth_port_id,
> > +		limits->min_sz, limits->max_sz, limits->log2_sz,
> > +		limits->min_timeout_ns, limits->max_timeout_ns, ret);
> >  	return ret;
> >  }
> >
> > @@ -2967,6 +2973,8 @@ rte_event_eth_rx_adapter_stats_get(uint8_t id,
> >  	uint32_t i, j;
> >  	int ret;
> >
> > +	rte_eventdev_trace_eth_rx_adapter_stats_get(id, stats);
> > +
> >  	if (rxa_memzone_lookup())
> >  		return -ENOMEM;
> >
> > @@ -3200,6 +3208,8 @@
> rte_event_eth_rx_adapter_service_id_get(uint8_t
> > id, uint32_t *service_id)
> >  	if (rx_adapter->service_inited)
> >  		*service_id = rx_adapter->service_id;
> >
> > +	rte_eventdev_trace_eth_rx_adapter_service_id_get(id,
> *service_id);
> > +
> >  	return rx_adapter->service_inited ? 0 : -ESRCH;  }
> >
> > @@ -3234,6 +3244,9 @@ rte_event_eth_rx_adapter_cb_register(uint8_t
> id,
> >  	uint32_t cap;
> >  	int ret;
> >
> > +	rte_eventdev_trace_eth_rx_adapter_cb_register(id, eth_dev_id,
> > cb_fn,
> > +						      cb_arg);
> > +
> >  	RTE_EVENT_ETH_RX_ADAPTER_ID_VALID_OR_ERR_RET(id, -
> EINVAL);
> >  	RTE_ETH_VALID_PORTID_OR_ERR_RET(eth_dev_id, -EINVAL);
> >
> > @@ -3281,6 +3294,9 @@
> rte_event_eth_rx_adapter_queue_conf_get(uint8_t
> > id,
> >  	struct eth_rx_queue_info *queue_info;
> >  	int ret;
> >
> > +	rte_eventdev_trace_eth_rx_adapter_queue_conf_get(id,
> eth_dev_id,
> > +		rx_queue_id, queue_conf);
> > +
> >  	if (rxa_memzone_lookup())
> >  		return -ENOMEM;
> >
> > diff --git a/lib/eventdev/rte_event_eth_tx_adapter.c
> > b/lib/eventdev/rte_event_eth_tx_adapter.c
> > index 88309d2aaa..ac040db6d9 100644
> > --- a/lib/eventdev/rte_event_eth_tx_adapter.c
> > +++ b/lib/eventdev/rte_event_eth_tx_adapter.c
> > @@ -985,6 +985,8 @@ txa_service_id_get(uint8_t id, uint32_t *service_id)
> {
> >  	struct txa_service_data *txa;
> >
> > +	rte_eventdev_trace_eth_tx_adapter_service_id_get(id,
> *service_id);
> > +
> >  	txa = txa_service_id_to_data(id);
> >  	if (txa->service_id == TXA_INVALID_SERVICE_ID)
> >  		return -ESRCH;
> > @@ -1121,6 +1123,8 @@ rte_event_eth_tx_adapter_create_ext(uint8_t
> id,
> > uint8_t dev_id,  int  rte_event_eth_tx_adapter_event_port_get(uint8_t
> > id, uint8_t *event_port_id)  {
> > +	rte_eventdev_trace_eth_tx_adapter_event_port_get(id,
> > *event_port_id);
> > +
> >  	TXA_CHECK_OR_ERR_RET(id);
> >
> >  	return txa_service_event_port_get(id, event_port_id); diff --git
> > a/lib/eventdev/rte_event_ring.c b/lib/eventdev/rte_event_ring.c index
> > c070715148..b965970cf9 100644
> > --- a/lib/eventdev/rte_event_ring.c
> > +++ b/lib/eventdev/rte_event_ring.c
> > @@ -5,6 +5,7 @@
> >
> >
> >  #include "rte_event_ring.h"
> > +#include "eventdev_trace.h"
> >
> >  int
> >  rte_event_ring_init(struct rte_event_ring *r, const char *name, @@
> > -14,6
> > +15,8 @@ rte_event_ring_init(struct rte_event_ring *r, const char
> > +*name,
> >  	RTE_BUILD_BUG_ON((sizeof(struct rte_event_ring) &
> >  			  RTE_CACHE_LINE_MASK) != 0);
> >
> > +	rte_eventdev_trace_ring_init(r, name, count, flags);
> > +
> >  	/* init the ring structure */
> >  	return rte_ring_init(&r->r, name, count, flags);  } @@ -23,6 +26,8
> > @@ struct rte_event_ring *  rte_event_ring_create(const char *name,
> > unsigned int count, int socket_id,
> >  		unsigned int flags)
> >  {
> > +	rte_eventdev_trace_ring_create(name, count, socket_id, flags);
> > +
> >  	return (struct rte_event_ring *)rte_ring_create_elem(name,
> >  						sizeof(struct rte_event),
> >  						count, socket_id, flags);
> > @@ -32,6 +37,8 @@ rte_event_ring_create(const char *name, unsigned
> int
> > count, int socket_id,  struct rte_event_ring *
> > rte_event_ring_lookup(const char *name)  {
> > +	rte_eventdev_trace_ring_lookup(name);
> > +
> >  	return (struct rte_event_ring *)rte_ring_lookup(name);  }
> >
> > @@ -39,5 +46,7 @@ rte_event_ring_lookup(const char *name)  void
> > rte_event_ring_free(struct rte_event_ring *r)  {
> > +	rte_eventdev_trace_ring_free(r->r.name);
> > +
> >  	rte_ring_free((struct rte_ring *)r);  } diff --git
> > a/lib/eventdev/rte_event_timer_adapter.c
> > b/lib/eventdev/rte_event_timer_adapter.c
> > index a0f14bf861..04e9b2e475 100644
> > --- a/lib/eventdev/rte_event_timer_adapter.c
> > +++ b/lib/eventdev/rte_event_timer_adapter.c
> > @@ -271,6 +271,8 @@ rte_event_timer_adapter_get_info(const struct
> > rte_event_timer_adapter *adapter,
> >  	adapter_info->event_dev_port_id = adapter->data->event_port_id;
> >  	adapter_info->caps = adapter->data->caps;
> >
> > +	rte_eventdev_trace_timer_adapter_get_info(adapter,
> adapter_info);
> > +
> >  	return 0;
> >  }
> >
> > @@ -382,6 +384,8 @@ rte_event_timer_adapter_lookup(uint16_t
> > adapter_id)
> >
> >  	adapter->allocated = 1;
> >
> > +	rte_eventdev_trace_timer_adapter_lookup(adapter_id, adapter);
> > +
> >  	return adapter;
> >  }
> >
> > @@ -435,6 +439,8 @@ rte_event_timer_adapter_service_id_get(struct
> > rte_event_timer_adapter *adapter,
> >  	if (adapter->data->service_inited && service_id != NULL)
> >  		*service_id = adapter->data->service_id;
> >
> > +	rte_eventdev_trace_timer_adapter_service_id_get(adapter,
> > *service_id);
> > +
> >  	return adapter->data->service_inited ? 0 : -ESRCH;  }
> >
> > diff --git a/lib/eventdev/rte_eventdev.c b/lib/eventdev/rte_eventdev.c
> > index b0414206d9..0e482434ee 100644
> > --- a/lib/eventdev/rte_eventdev.c
> > +++ b/lib/eventdev/rte_eventdev.c
> > @@ -62,8 +62,10 @@ rte_event_dev_get_dev_id(const char *name)
> >  				rte_event_devices[i].dev->driver->name,
> > name,
> >  					 RTE_EVENTDEV_NAME_MAX_LEN)
> > == 0) : 0);
> >  		if (cmp && (rte_event_devices[i].attached ==
> > -					RTE_EVENTDEV_ATTACHED))
> > +					RTE_EVENTDEV_ATTACHED)) {
> > +			rte_eventdev_trace_get_dev_id(name, i);
> >  			return i;
> > +		}
> >  	}
> >  	return -ENODEV;
> >  }
> > @@ -76,6 +78,9 @@ rte_event_dev_socket_id(uint8_t dev_id)
> >  	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
> >  	dev = &rte_eventdevs[dev_id];
> >
> > +	rte_eventdev_trace_socket_id(dev->data->name, dev->data-
> >dev_id,
> > +		dev->data->socket_id);
> > +
> >  	return dev->data->socket_id;
> >  }
> >
> > @@ -99,6 +104,10 @@ rte_event_dev_info_get(uint8_t dev_id, struct
> > rte_event_dev_info *dev_info)
> >  	dev_info->dequeue_timeout_ns = dev->data-
> > >dev_conf.dequeue_timeout_ns;
> >
> >  	dev_info->dev = dev->dev;
> > +
> > +	rte_eventdev_trace_info_get(dev->data->name, dev->data-
> >dev_id,
> > +		dev->data->socket_id, dev->dev->name, dev_info-
> > >driver_name);
> > +
> >  	return 0;
> >  }
> >
> > @@ -121,6 +130,9 @@ rte_event_eth_rx_adapter_caps_get(uint8_t
> dev_id,
> > uint16_t eth_port_id,
> >  	else
> >  		*caps = 0;
> >
> > +	rte_eventdev_trace_eth_rx_adapter_caps_get(dev->data->name,
> > +		dev->data->dev_id, dev->data->socket_id, eth_port_id);
> > +
> >  	return dev->dev_ops->eth_rx_adapter_caps_get ?
> >  				(*dev->dev_ops-
> > >eth_rx_adapter_caps_get)(dev,
> >
> > 	&rte_eth_devices[eth_port_id],
> > @@ -146,6 +158,9 @@ rte_event_timer_adapter_caps_get(uint8_t
> dev_id,
> > uint32_t *caps)
> >  	else
> >  		*caps = 0;
> >
> > +	rte_eventdev_trace_timer_adapter_caps_get(dev->data->name,
> > +		dev->data->dev_id, dev->data->socket_id);
> > +
> >  	return dev->dev_ops->timer_adapter_caps_get ?
> >  				(*dev->dev_ops-
> > >timer_adapter_caps_get)(dev,
> >  									0,
> > @@ -176,6 +191,8 @@ rte_event_crypto_adapter_caps_get(uint8_t
> dev_id,
> > uint8_t cdev_id,
> >  	else
> >  		*caps = 0;
> >
> > +	rte_eventdev_trace_crypto_adapter_caps_get(dev, cdev);
> > +
> >  	return dev->dev_ops->crypto_adapter_caps_get ?
> >  		(*dev->dev_ops->crypto_adapter_caps_get)
> >  		(dev, cdev, caps) : 0;
> > @@ -202,6 +219,8 @@ rte_event_eth_tx_adapter_caps_get(uint8_t
> dev_id,
> > uint16_t eth_port_id,
> >  	else
> >  		*caps = 0;
> >
> > +	rte_eventdev_trace_eth_tx_adapter_caps_get(dev, eth_dev,
> > eth_port_id);
> > +
> >  	return dev->dev_ops->eth_tx_adapter_caps_get ?
> >  			(*dev->dev_ops->eth_tx_adapter_caps_get)(dev,
> >  								eth_dev,
> > @@ -524,6 +543,9 @@ rte_event_queue_default_conf_get(uint8_t
> dev_id,
> > uint8_t queue_id,
> >  		return -ENOTSUP;
> >  	memset(queue_conf, 0, sizeof(struct rte_event_queue_conf));
> >  	(*dev->dev_ops->queue_def_conf)(dev, queue_id, queue_conf);
> > +
> > +	rte_eventdev_trace_queue_default_conf_get(dev, queue_id,
> > queue_conf);
> > +
> >  	return 0;
> >  }
> >
> > @@ -652,6 +674,9 @@ rte_event_port_default_conf_get(uint8_t dev_id,
> > uint8_t port_id,
> >  		return -ENOTSUP;
> >  	memset(port_conf, 0, sizeof(struct rte_event_port_conf));
> >  	(*dev->dev_ops->port_def_conf)(dev, port_id, port_conf);
> > +
> > +	rte_eventdev_trace_port_default_conf_get(dev, port_id,
> port_conf);
> > +
> >  	return 0;
> >  }
> >
> > @@ -759,6 +784,8 @@ rte_event_port_quiesce(uint8_t dev_id, uint8_t
> > port_id,
> >  		return;
> >  	}
> >
> > +	rte_eventdev_trace_port_quiesce(dev, port_id);
> > +
> >  	if (dev->dev_ops->port_quiesce)
> >  		(*dev->dev_ops->port_quiesce)(dev, dev->data-
> > >ports[port_id],
> >  					      release_cb, args);
> > @@ -789,6 +816,8 @@ rte_event_dev_attr_get(uint8_t dev_id, uint32_t
> > attr_id,
> >  		return -EINVAL;
> >  	}
> >
> > +	rte_eventdev_trace_attr_get(dev, attr_id, *attr_value);
> > +
> >  	return 0;
> >  }
> >
> > @@ -829,6 +858,9 @@ rte_event_port_attr_get(uint8_t dev_id, uint8_t
> > port_id, uint32_t attr_id,
> >  	default:
> >  		return -EINVAL;
> >  	};
> > +
> > +	rte_eventdev_trace_port_attr_get(dev, port_id, attr_id,
> > +*attr_value);
> > +
> >  	return 0;
> >  }
> >
> > @@ -851,6 +883,8 @@ rte_event_queue_attr_get(uint8_t dev_id, uint8_t
> > queue_id, uint32_t attr_id,
> >
> >  	conf = &dev->data->queues_cfg[queue_id];
> >
> > +	rte_eventdev_trace_queue_attr_get(dev, conf, queue_id, attr_id);
> > +
> >  	switch (attr_id) {
> >  	case RTE_EVENT_QUEUE_ATTR_PRIORITY:
> >  		*attr_value = RTE_EVENT_DEV_PRIORITY_NORMAL; @@ -
> > 894,6 +928,8 @@ rte_event_queue_attr_set(uint8_t dev_id, uint8_t
> > queue_id, uint32_t attr_id,  {
> >  	struct rte_eventdev *dev;
> >
> > +	rte_eventdev_trace_queue_attr_set(dev_id, queue_id, attr_id,
> > +attr_value);
> > +
> >  	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
> >  	dev = &rte_eventdevs[dev_id];
> >  	if (!is_valid_queue(dev, queue_id)) { @@ -1048,6 +1084,8 @@
> > rte_event_port_unlinks_in_progress(uint8_t
> > dev_id, uint8_t port_id)  {
> >  	struct rte_eventdev *dev;
> >
> > +	rte_eventdev_trace_port_unlinks_in_progress(dev_id, port_id);
> > +
> >  	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
> >  	dev = &rte_eventdevs[dev_id];
> >  	if (!is_valid_port(dev, port_id)) {
> > @@ -1091,6 +1129,9 @@ rte_event_port_links_get(uint8_t dev_id, uint8_t
> > port_id,
> >  			++count;
> >  		}
> >  	}
> > +
> > +	rte_eventdev_trace_port_links_get(dev_id, port_id, count);
> > +
> >  	return count;
> >  }
> >
> > @@ -1100,6 +1141,8 @@ rte_event_dequeue_timeout_ticks(uint8_t
> dev_id,
> > uint64_t ns,  {
> >  	struct rte_eventdev *dev;
> >
> > +	rte_eventdev_trace_dequeue_timeout_ticks(dev_id, ns,
> > timeout_ticks);
> > +
> >  	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
> >  	dev = &rte_eventdevs[dev_id];
> >  	if (*dev->dev_ops->timeout_ticks == NULL) @@ -1125,6 +1168,8
> @@
> > rte_event_dev_service_id_get(uint8_t dev_id, uint32_t *service_id)
> >  	if (dev->data->service_inited)
> >  		*service_id = dev->data->service_id;
> >
> > +	rte_eventdev_trace_service_id_get(dev_id, *service_id);
> > +
> >  	return dev->data->service_inited ? 0 : -ESRCH;  }
> >
> > @@ -1285,6 +1330,9 @@ rte_event_vector_pool_create(const char
> *name,
> > unsigned int n,
> >  	if (ret < 0)
> >  		goto err;
> >
> > +	rte_eventdev_trace_vector_pool_create(mp, mp->name, mp-
> > >socket_id,
> > +		mp->size, mp->cache_size, mp->elt_size);
> > +
> >  	return mp;
> >  err:
> >  	rte_mempool_free(mp);
> > diff --git a/lib/eventdev/version.map b/lib/eventdev/version.map index
> > dd63ec6f68..ee4e2fd4b3 100644
> > --- a/lib/eventdev/version.map
> > +++ b/lib/eventdev/version.map
> > @@ -118,6 +118,53 @@ EXPERIMENTAL {
> >  	rte_event_eth_tx_adapter_instance_get;
> >  	rte_event_eth_tx_adapter_queue_start;
> >  	rte_event_eth_tx_adapter_queue_stop;
> > +
> > +	# added in 23.03
> > +	__rte_eventdev_trace_eth_rx_adapter_caps_get;
> > +	__rte_eventdev_trace_eth_tx_adapter_caps_get;
> > +	__rte_eventdev_trace_timer_adapter_caps_get;
> > +	__rte_eventdev_trace_crypto_adapter_caps_get;
> > +	__rte_eventdev_trace_crypto_adapter_event_port_get;
> > +	__rte_eventdev_trace_crypto_adapter_service_id_get;
> > +	__rte_eventdev_trace_eth_rx_adapter_cb_register;
> > +	__rte_eventdev_trace_eth_rx_adapter_create_with_params;
> > +	__rte_eventdev_trace_eth_rx_adapter_queue_conf_get;
> > +	__rte_eventdev_trace_eth_rx_adapter_service_id_get;
> > +	__rte_eventdev_trace_eth_rx_adapter_vector_limits_get;
> > +	__rte_eventdev_trace_eth_tx_adapter_event_port_get;
> > +	__rte_eventdev_trace_eth_tx_adapter_service_id_get;
> > +	__rte_eventdev_trace_port_attr_get;
> > +	__rte_eventdev_trace_port_default_conf_get;
> > +	__rte_eventdev_trace_port_links_get;
> > +	__rte_eventdev_trace_port_quiesce;
> > +	__rte_eventdev_trace_port_unlinks_in_progress;
> > +	__rte_eventdev_trace_queue_attr_get;
> > +	__rte_eventdev_trace_queue_attr_set;
> > +	__rte_eventdev_trace_queue_default_conf_get;
> > +	__rte_eventdev_trace_ring_create;
> > +	__rte_eventdev_trace_ring_free;
> > +	__rte_eventdev_trace_ring_init;
> > +	__rte_eventdev_trace_ring_lookup;
> > +	__rte_eventdev_trace_timer_adapter_get_info;
> > +	__rte_eventdev_trace_timer_adapter_lookup;
> > +	__rte_eventdev_trace_timer_adapter_service_id_get;
> > +	__rte_eventdev_trace_attr_get;
> > +	__rte_eventdev_trace_close;
> > +	__rte_eventdev_trace_configure;
> > +	__rte_eventdev_trace_dump;
> > +	__rte_eventdev_trace_get_dev_id;
> > +	__rte_eventdev_trace_info_get;
> > +	__rte_eventdev_trace_selftest;
> > +	__rte_eventdev_trace_service_id_get;
> > +	__rte_eventdev_trace_socket_id;
> > +	__rte_eventdev_trace_start;
> > +	__rte_eventdev_trace_stop;
> > +	__rte_eventdev_trace_stop_flush_callback_register;
> > +	__rte_eventdev_trace_vector_pool_create;
> > +	__rte_eventdev_trace_dequeue_timeout_ticks;
> > +	__rte_eventdev_trace_crypto_adapter_stats_get;
> > +	__rte_eventdev_trace_crypto_adapter_stats_reset;
> > +	__rte_eventdev_trace_eth_rx_adapter_stats_get;
> >  };
> >
> >  INTERNAL {
> > --
> > 2.25.1


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [PATCH v2] eventdev: add trace points
  2022-12-19 14:11 [PATCH] eventdev: add trace points Amit Prakash Shukla
  2023-01-03  5:57 ` Gujjar, Abhinandan S
@ 2023-01-30 10:13 ` Amit Prakash Shukla
  2023-01-30 14:31   ` Jerin Jacob
  2023-01-30 17:30   ` [PATCH v3] " Amit Prakash Shukla
  1 sibling, 2 replies; 14+ messages in thread
From: Amit Prakash Shukla @ 2023-01-30 10:13 UTC (permalink / raw)
  To: Jerin Jacob, Abhinandan Gujjar, Naga Harish K S V, Erik Gabriel Carrillo
  Cc: dev, Amit Prakash Shukla

Add trace points for eventdev functions.

Signed-off-by: Amit Prakash Shukla <amitprakashs@marvell.com>
---
v2:
 - Fixed CI test failure
 - Code review suggestion from Abhinandan

 lib/eventdev/eventdev_trace.h           | 513 +++++++++++++++++++++++-
 lib/eventdev/eventdev_trace_points.c    | 150 +++++++
 lib/eventdev/rte_event_crypto_adapter.c |  18 +-
 lib/eventdev/rte_event_eth_rx_adapter.c |  31 +-
 lib/eventdev/rte_event_eth_tx_adapter.c |  17 +-
 lib/eventdev/rte_event_ring.c           |   9 +
 lib/eventdev/rte_event_timer_adapter.c  |   9 +
 lib/eventdev/rte_eventdev.c             |  52 ++-
 lib/eventdev/version.map                |  54 +++
 9 files changed, 840 insertions(+), 13 deletions(-)

diff --git a/lib/eventdev/eventdev_trace.h b/lib/eventdev/eventdev_trace.h
index d48cd58850..f02313279b 100644
--- a/lib/eventdev/eventdev_trace.h
+++ b/lib/eventdev/eventdev_trace.h
@@ -21,6 +21,9 @@ extern "C" {
 #include "rte_event_crypto_adapter.h"
 #include "rte_event_eth_rx_adapter.h"
 #include "rte_event_timer_adapter.h"
+#include "eventdev_pmd.h"
+#include "cryptodev_pmd.h"
+#include "ethdev_driver.h"
 
 RTE_TRACE_POINT(
 	rte_eventdev_trace_configure,
@@ -63,6 +66,7 @@ RTE_TRACE_POINT(
 	rte_trace_point_emit_u16(port_conf->enqueue_depth);
 	rte_trace_point_emit_u32(port_conf->event_port_cfg);
 	rte_trace_point_emit_int(rc);
+	rte_trace_point_emit_ptr(port_conf);
 )
 
 RTE_TRACE_POINT(
@@ -250,16 +254,17 @@ RTE_TRACE_POINT(
 
 RTE_TRACE_POINT(
 	rte_eventdev_trace_crypto_adapter_create,
-	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint8_t dev_id, void *adapter,
-		struct rte_event_port_conf *port_conf, uint8_t mode),
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint8_t dev_id,
+		struct rte_event_port_conf *port_config, int mode, int ret),
 	rte_trace_point_emit_u8(adptr_id);
 	rte_trace_point_emit_u8(dev_id);
-	rte_trace_point_emit_ptr(adapter);
-	rte_trace_point_emit_u8(mode);
-	rte_trace_point_emit_i32(port_conf->new_event_threshold);
-	rte_trace_point_emit_u16(port_conf->dequeue_depth);
-	rte_trace_point_emit_u16(port_conf->enqueue_depth);
-	rte_trace_point_emit_u32(port_conf->event_port_cfg);
+	rte_trace_point_emit_ptr(port_config);
+	rte_trace_point_emit_i32(port_config->new_event_threshold);
+	rte_trace_point_emit_u16(port_config->dequeue_depth);
+	rte_trace_point_emit_u16(port_config->enqueue_depth);
+	rte_trace_point_emit_u32(port_config->event_port_cfg);
+	rte_trace_point_emit_int(mode);
+	rte_trace_point_emit_int(ret);
 )
 
 RTE_TRACE_POINT(
@@ -303,6 +308,498 @@ RTE_TRACE_POINT(
 	rte_trace_point_emit_u8(adptr_id);
 )
 
+RTE_TRACE_POINT(
+	rte_eventdev_trace_crypto_adapter_event_port_get,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint8_t event_port_id),
+	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_u8(event_port_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_crypto_adapter_service_id_get,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint32_t service_id),
+	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_u32(service_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_attr_get,
+	RTE_TRACE_POINT_ARGS(const struct rte_eventdev *dev, uint32_t attr_id,
+		uint32_t attr_value),
+	rte_trace_point_emit_ptr(dev);
+	rte_trace_point_emit_string(dev->data->name);
+	rte_trace_point_emit_u8(dev->data->dev_id);
+	rte_trace_point_emit_int(dev->data->socket_id);
+	rte_trace_point_emit_u32(attr_id);
+	rte_trace_point_emit_u32(attr_value);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_dump,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *f),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_ptr(f);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_get_dev_id,
+	RTE_TRACE_POINT_ARGS(const char *name, int dev_id),
+	rte_trace_point_emit_string(name);
+	rte_trace_point_emit_int(dev_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_info_get,
+	RTE_TRACE_POINT_ARGS(const char *name, uint8_t dev_id, int socket_id,
+		const char *device_name, const char *driver_name),
+	rte_trace_point_emit_string(name);
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_int(socket_id);
+	rte_trace_point_emit_string(device_name);
+	rte_trace_point_emit_string(driver_name);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_selftest,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id),
+	rte_trace_point_emit_u8(dev_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_service_id_get,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint32_t service_id),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_u32(service_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_socket_id,
+	RTE_TRACE_POINT_ARGS(const char *name, uint8_t dev_id, int socket_id),
+	rte_trace_point_emit_string(name);
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_int(socket_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_stop_flush_callback_register,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id,
+		eventdev_stop_flush_t callback, const void *userdata),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_ptr(callback);
+	rte_trace_point_emit_ptr(userdata);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_rx_adapter_caps_get,
+	RTE_TRACE_POINT_ARGS(const char *name, uint8_t dev_id, int socket_id,
+		uint16_t eth_port_id),
+	rte_trace_point_emit_string(name);
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_int(socket_id);
+	rte_trace_point_emit_u16(eth_port_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_rx_adapter_cb_register,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint16_t eth_dev_id, const void *cb_fn,
+		const void *cb_arg),
+	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_u16(eth_dev_id);
+	rte_trace_point_emit_ptr(cb_fn);
+	rte_trace_point_emit_ptr(cb_arg);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_rx_adapter_create_with_params,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint8_t dev_id,
+		const struct rte_event_port_conf *port_config,
+		const struct rte_event_eth_rx_adapter_params *rxa_params,
+		int ret),
+	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_ptr(port_config);
+	rte_trace_point_emit_i32(port_config->new_event_threshold);
+	rte_trace_point_emit_u16(port_config->dequeue_depth);
+	rte_trace_point_emit_u16(port_config->enqueue_depth);
+	rte_trace_point_emit_u32(port_config->event_port_cfg);
+	rte_trace_point_emit_ptr(rxa_params);
+	rte_trace_point_emit_u16(rxa_params->event_buf_size);
+	rte_trace_point_emit_int(ret);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_rx_adapter_service_id_get,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint32_t service_id),
+	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_u32(service_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_rx_adapter_event_port_get,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint8_t event_port_id),
+	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_u8(event_port_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_rx_adapter_vector_limits_get,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint16_t eth_port_id,
+		uint16_t min_sz, uint16_t max_sz, uint8_t log2_sz,
+		uint64_t min_timeout_ns, uint64_t max_timeout_ns, int ret),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_u16(eth_port_id);
+	rte_trace_point_emit_u16(min_sz);
+	rte_trace_point_emit_u16(max_sz);
+	rte_trace_point_emit_u8(log2_sz);
+	rte_trace_point_emit_u64(min_timeout_ns);
+	rte_trace_point_emit_u64(max_timeout_ns);
+	rte_trace_point_emit_int(ret);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_tx_adapter_caps_get,
+	RTE_TRACE_POINT_ARGS(const struct rte_eventdev *dev,
+		const struct rte_eth_dev *eth_dev, uint16_t eth_port_id),
+	rte_trace_point_emit_ptr(dev);
+	rte_trace_point_emit_string(dev->data->name);
+	rte_trace_point_emit_u8(dev->data->dev_id);
+	rte_trace_point_emit_int(dev->data->socket_id);
+	rte_trace_point_emit_ptr(eth_dev);
+	rte_trace_point_emit_string(eth_dev->data->name);
+	rte_trace_point_emit_u16(eth_port_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_tx_adapter_event_port_get,
+	RTE_TRACE_POINT_ARGS(uint8_t id),
+	rte_trace_point_emit_u8(id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_tx_adapter_service_id_get,
+	RTE_TRACE_POINT_ARGS(uint8_t id, uint32_t service_id),
+	rte_trace_point_emit_u8(id);
+	rte_trace_point_emit_u32(service_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_port_attr_get,
+	RTE_TRACE_POINT_ARGS(const struct rte_eventdev *dev, uint8_t port_id,
+		uint32_t attr_id, uint32_t attr_value),
+	rte_trace_point_emit_ptr(dev);
+	rte_trace_point_emit_string(dev->data->name);
+	rte_trace_point_emit_u8(dev->data->dev_id);
+	rte_trace_point_emit_int(dev->data->socket_id);
+	rte_trace_point_emit_u8(port_id);
+	rte_trace_point_emit_u32(attr_id);
+	rte_trace_point_emit_u32(attr_value);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_port_default_conf_get,
+	RTE_TRACE_POINT_ARGS(const struct rte_eventdev *dev, uint8_t port_id,
+		const struct rte_event_port_conf *port_conf),
+	rte_trace_point_emit_ptr(dev);
+	rte_trace_point_emit_string(dev->data->name);
+	rte_trace_point_emit_u8(dev->data->dev_id);
+	rte_trace_point_emit_int(dev->data->socket_id);
+	rte_trace_point_emit_u8(port_id);
+	rte_trace_point_emit_ptr(port_conf);
+	rte_trace_point_emit_i32(port_conf->new_event_threshold);
+	rte_trace_point_emit_u16(port_conf->dequeue_depth);
+	rte_trace_point_emit_u16(port_conf->enqueue_depth);
+	rte_trace_point_emit_u32(port_conf->event_port_cfg);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_port_links_get,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint8_t port_id, int count),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_u8(port_id);
+	rte_trace_point_emit_int(count);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_port_unlinks_in_progress,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint8_t port_id),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_u8(port_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_queue_attr_get,
+	RTE_TRACE_POINT_ARGS(const struct rte_eventdev *dev,
+		const struct rte_event_queue_conf *conf, uint8_t queue_id,
+		uint32_t attr_id),
+	rte_trace_point_emit_ptr(dev);
+	rte_trace_point_emit_string(dev->data->name);
+	rte_trace_point_emit_u8(dev->data->dev_id);
+	rte_trace_point_emit_int(dev->data->socket_id);
+	rte_trace_point_emit_ptr(conf);
+	rte_trace_point_emit_u32(conf->nb_atomic_flows);
+	rte_trace_point_emit_u32(conf->nb_atomic_order_sequences);
+	rte_trace_point_emit_u32(conf->event_queue_cfg);
+	rte_trace_point_emit_u8(conf->schedule_type);
+	rte_trace_point_emit_u8(conf->priority);
+	rte_trace_point_emit_u8(queue_id);
+	rte_trace_point_emit_u32(attr_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_queue_default_conf_get,
+	RTE_TRACE_POINT_ARGS(const struct rte_eventdev *dev, uint8_t queue_id,
+		const struct rte_event_queue_conf *queue_conf),
+	rte_trace_point_emit_ptr(dev);
+	rte_trace_point_emit_string(dev->data->name);
+	rte_trace_point_emit_u8(dev->data->dev_id);
+	rte_trace_point_emit_int(dev->data->socket_id);
+	rte_trace_point_emit_u8(queue_id);
+	rte_trace_point_emit_ptr(queue_conf);
+	rte_trace_point_emit_u32(queue_conf->nb_atomic_flows);
+	rte_trace_point_emit_u32(queue_conf->nb_atomic_order_sequences);
+	rte_trace_point_emit_u32(queue_conf->event_queue_cfg);
+	rte_trace_point_emit_u8(queue_conf->schedule_type);
+	rte_trace_point_emit_u8(queue_conf->priority);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_ring_create,
+	RTE_TRACE_POINT_ARGS(const char *name, unsigned int count,
+		int socket_id, unsigned int flags),
+	rte_trace_point_emit_string(name);
+	rte_trace_point_emit_u32(count);
+	rte_trace_point_emit_int(socket_id);
+	rte_trace_point_emit_u32(flags);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_ring_free,
+	RTE_TRACE_POINT_ARGS(const char *name),
+	rte_trace_point_emit_string(name);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_ring_init,
+	RTE_TRACE_POINT_ARGS(const void *r, const char *name,
+		unsigned int count, unsigned int flags),
+	rte_trace_point_emit_ptr(r);
+	rte_trace_point_emit_string(name);
+	rte_trace_point_emit_u32(count);
+	rte_trace_point_emit_u32(flags);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_ring_lookup,
+	RTE_TRACE_POINT_ARGS(const char *name),
+	rte_trace_point_emit_string(name);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_timer_adapter_caps_get,
+	RTE_TRACE_POINT_ARGS(const char *name, uint8_t dev_id, int socket_id),
+	rte_trace_point_emit_string(name);
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_int(socket_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_timer_adapter_get_info,
+	RTE_TRACE_POINT_ARGS(const struct rte_event_timer_adapter *adapter,
+		const struct rte_event_timer_adapter_info *adapter_info),
+	rte_trace_point_emit_ptr(adapter);
+	rte_trace_point_emit_u8(adapter->data->id);
+	rte_trace_point_emit_u8(adapter->data->event_dev_id);
+	rte_trace_point_emit_u32(adapter->data->socket_id);
+	rte_trace_point_emit_ptr(adapter_info);
+	rte_trace_point_emit_u64(adapter_info->min_resolution_ns);
+	rte_trace_point_emit_u64(adapter_info->max_tmo_ns);
+	rte_trace_point_emit_u32(adapter_info->caps);
+	rte_trace_point_emit_u16(adapter_info->event_dev_port_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_timer_adapter_lookup,
+	RTE_TRACE_POINT_ARGS(uint16_t adapter_id, const void *adapter),
+	rte_trace_point_emit_u16(adapter_id);
+	rte_trace_point_emit_ptr(adapter);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_timer_adapter_service_id_get,
+	RTE_TRACE_POINT_ARGS(const struct rte_event_timer_adapter *adapter,
+		uint32_t service_id),
+	rte_trace_point_emit_ptr(adapter);
+	rte_trace_point_emit_u32(service_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_vector_pool_create,
+	RTE_TRACE_POINT_ARGS(const void *mp, const char *name, int socket_id,
+		uint32_t size, uint32_t cache_size, uint32_t elt_size),
+	rte_trace_point_emit_ptr(mp);
+	rte_trace_point_emit_string(name);
+	rte_trace_point_emit_int(socket_id);
+	rte_trace_point_emit_u32(size);
+	rte_trace_point_emit_u32(cache_size);
+	rte_trace_point_emit_u32(elt_size);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_rx_adapter_queue_conf_get,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint16_t eth_dev_id,
+		uint16_t rx_queue_id, const void *queue_conf),
+	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_u16(eth_dev_id);
+	rte_trace_point_emit_u16(rx_queue_id);
+	rte_trace_point_emit_ptr(queue_conf);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_queue_attr_set,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint8_t queue_id, uint32_t attr_id,
+		uint32_t attr_value),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_u8(queue_id);
+	rte_trace_point_emit_u32(attr_id);
+	rte_trace_point_emit_u32(attr_value);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_port_quiesce,
+	RTE_TRACE_POINT_ARGS(const struct rte_eventdev *dev, uint8_t port_id),
+	rte_trace_point_emit_ptr(dev);
+	rte_trace_point_emit_string(dev->data->name);
+	rte_trace_point_emit_u8(dev->data->dev_id);
+	rte_trace_point_emit_int(dev->data->socket_id);
+	rte_trace_point_emit_u8(port_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_crypto_adapter_caps_get,
+	RTE_TRACE_POINT_ARGS(const struct rte_eventdev *dev,
+		const struct rte_cryptodev *cdev),
+	rte_trace_point_emit_ptr(dev);
+	rte_trace_point_emit_string(dev->data->name);
+	rte_trace_point_emit_u8(dev->data->dev_id);
+	rte_trace_point_emit_int(dev->data->socket_id);
+	rte_trace_point_emit_ptr(cdev);
+	rte_trace_point_emit_string(cdev->data->name);
+	rte_trace_point_emit_u8(cdev->data->dev_id);
+	rte_trace_point_emit_u8(cdev->data->socket_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_dequeue_timeout_ticks,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint64_t ns,
+		const void *timeout_ticks),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_u64(ns);
+	rte_trace_point_emit_ptr(timeout_ticks);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_crypto_adapter_stats_get,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, const void *stats,
+		uint64_t event_poll_count, uint64_t event_deq_count,
+		uint64_t crypto_enq_count, uint64_t crypto_enq_fail,
+		uint64_t crypto_deq_count, uint64_t event_enq_count,
+		uint64_t event_enq_retry_count, uint64_t event_enq_fail_count),
+	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_ptr(stats);
+	rte_trace_point_emit_u64(event_poll_count);
+	rte_trace_point_emit_u64(event_deq_count);
+	rte_trace_point_emit_u64(crypto_enq_count);
+	rte_trace_point_emit_u64(crypto_enq_fail);
+	rte_trace_point_emit_u64(crypto_deq_count);
+	rte_trace_point_emit_u64(event_enq_count);
+	rte_trace_point_emit_u64(event_enq_retry_count);
+	rte_trace_point_emit_u64(event_enq_fail_count);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_crypto_adapter_stats_reset,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id),
+	rte_trace_point_emit_u8(adptr_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_rx_adapter_stats_get,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, const void *stats),
+	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_ptr(stats);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_crypto_adapter_vector_limits_get,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint16_t cdev_id,
+		const void *limits),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_u16(cdev_id);
+	rte_trace_point_emit_ptr(limits);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_rx_adapter_queue_stats_get,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint16_t eth_dev_id,
+		uint16_t rx_queue_id, const void *stats),
+	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_u16(eth_dev_id);
+	rte_trace_point_emit_u16(rx_queue_id);
+	rte_trace_point_emit_ptr(stats);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_rx_adapter_stats_reset,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id),
+	rte_trace_point_emit_u8(adptr_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_rx_adapter_queue_stats_reset,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint16_t eth_dev_id,
+		uint16_t rx_queue_id),
+	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_u16(eth_dev_id);
+	rte_trace_point_emit_u16(rx_queue_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_rx_adapter_instance_get,
+	RTE_TRACE_POINT_ARGS(uint16_t eth_dev_id, uint16_t rx_queue_id,
+		uint8_t rxa_inst_id),
+	rte_trace_point_emit_u16(eth_dev_id);
+	rte_trace_point_emit_u16(rx_queue_id);
+	rte_trace_point_emit_u8(rxa_inst_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_tx_adapter_stats_get,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint64_t tx_retry,
+		uint64_t tx_packets, uint64_t tx_dropped, int ret),
+	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_u64(tx_retry);
+	rte_trace_point_emit_u64(tx_packets);
+	rte_trace_point_emit_u64(tx_dropped);
+	rte_trace_point_emit_int(ret);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_tx_adapter_stats_reset,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, int ret),
+	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_int(ret);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_tx_adapter_instance_get,
+	RTE_TRACE_POINT_ARGS(uint16_t eth_dev_id, uint16_t tx_queue_id,
+		uint8_t txa_inst_id),
+	rte_trace_point_emit_u16(eth_dev_id);
+	rte_trace_point_emit_u16(tx_queue_id);
+	rte_trace_point_emit_u8(txa_inst_id);
+)
+
+
 #ifdef __cplusplus
 }
 #endif
diff --git a/lib/eventdev/eventdev_trace_points.c b/lib/eventdev/eventdev_trace_points.c
index de6b1f4417..a26a267d20 100644
--- a/lib/eventdev/eventdev_trace_points.c
+++ b/lib/eventdev/eventdev_trace_points.c
@@ -124,3 +124,153 @@ RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_stop,
 
 RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_enqueue,
 	lib.eventdev.crypto.enq)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_event_port_get,
+	lib.eventdev.crypto.adapter_event_port_get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_service_id_get,
+	lib.eventdev.crypto.adapter_service_id_get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_vector_limits_get,
+	lib.eventdev.crypto.adapter_vector_limits_get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_attr_get,
+	lib.eventdev.attr_get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_dump,
+	lib.eventdev.dump)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_get_dev_id,
+	lib.eventdev.get_dev_id)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_info_get,
+	lib.eventdev.info_get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_selftest,
+	lib.eventdev.selftest)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_service_id_get,
+	lib.eventdev.service_id_get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_socket_id,
+	lib.eventdev.socket.id)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_stop_flush_callback_register,
+	lib.eventdev.stop.flush.callback.register)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_caps_get,
+	lib.eventdev.eth.rx.adapter.caps.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_cb_register,
+	lib.eventdev.eth.rx.adapter.cb.register)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_service_id_get,
+	lib.eventdev.eth.rx.adapter.service.id.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_event_port_get,
+	lib.eventdev.eth.rx.adapter.event.port.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_vector_limits_get,
+	lib.eventdev.eth.rx.adapter.vector.limits.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_queue_stats_get,
+	lib.eventdev.eth.rx.adapter.queue.stats.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_stats_reset,
+	lib.eventdev.eth.rx.adapter.stats.reset)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_queue_stats_reset,
+	lib.eventdev.eth.rx.adapter.queue.stats.reset)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_instance_get,
+	lib.eventdev.eth.rx.adapter.instance.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_caps_get,
+	lib.eventdev.eth.tx.adapter.caps.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_event_port_get,
+	lib.eventdev.eth.tx.adapter.event.port.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_service_id_get,
+	lib.eventdev.eth.tx.adapter.service.id.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_stats_get,
+	lib.eventdev.eth.tx.adapter.stats.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_stats_reset,
+	lib.eventdev.eth.tx.adapter.stats.reset)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_instance_get,
+	lib.eventdev.eth.tx.adapter.instance.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_port_attr_get,
+	lib.eventdev.port.attr.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_port_default_conf_get,
+	lib.eventdev.port.default.conf.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_port_links_get,
+	lib.eventdev.port.links.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_port_unlinks_in_progress,
+	lib.eventdev.port.unlinks.in.progress)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_queue_attr_get,
+	lib.eventdev.queue.attr.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_queue_default_conf_get,
+	lib.eventdev.queue.default.conf.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_ring_create,
+	lib.eventdev.ring.create)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_ring_free,
+	lib.eventdev.ring.free)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_ring_init,
+	lib.eventdev.ring.init)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_ring_lookup,
+	lib.eventdev.ring.lookup)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_adapter_caps_get,
+	lib.eventdev.timer.adapter.caps.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_adapter_get_info,
+	lib.eventdev.timer.adapter.get.info)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_adapter_lookup,
+	lib.eventdev.timer.adapter.lookup)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_adapter_service_id_get,
+	lib.eventdev.timer.adapter.service.id.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_vector_pool_create,
+	lib.eventdev.vector.pool.create)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_create_with_params,
+	lib.eventdev.eth.rx.adapter.create.with.params)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_queue_conf_get,
+	lib.eventdev.eth.rx.adapter.queue.conf.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_queue_attr_set,
+	lib.eventdev.queue.attr.set)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_port_quiesce,
+	lib.eventdev.port.quiesce)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_caps_get,
+	lib.eventdev.crypto.adapter.caps.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_dequeue_timeout_ticks,
+	lib.eventdev.dequeue.timeout.ticks)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_stats_get,
+	lib.eventdev.crypto.adapter.stats.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_stats_reset,
+	lib.eventdev.crypto.adapter.stats.reset)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_stats_get,
+	lib.eventdev.rx.adapter.stats.get)
diff --git a/lib/eventdev/rte_event_crypto_adapter.c b/lib/eventdev/rte_event_crypto_adapter.c
index bb782208f0..7f0a25a4cc 100644
--- a/lib/eventdev/rte_event_crypto_adapter.c
+++ b/lib/eventdev/rte_event_crypto_adapter.c
@@ -386,8 +386,6 @@ rte_event_crypto_adapter_create_ext(uint8_t id, uint8_t dev_id,
 
 	event_crypto_adapter[id] = adapter;
 
-	rte_eventdev_trace_crypto_adapter_create(id, dev_id, adapter, conf_arg,
-		mode);
 	return 0;
 }
 
@@ -415,6 +413,8 @@ rte_event_crypto_adapter_create(uint8_t id, uint8_t dev_id,
 	if (ret)
 		rte_free(pc);
 
+	rte_eventdev_trace_crypto_adapter_create(id, dev_id, port_config, mode,	ret);
+
 	return ret;
 }
 
@@ -1293,6 +1293,12 @@ rte_event_crypto_adapter_stats_get(uint8_t id,
 	stats->crypto_deq_count += dev_stats_sum.crypto_deq_count;
 	stats->event_enq_count += dev_stats_sum.event_enq_count;
 
+	rte_eventdev_trace_crypto_adapter_stats_get(id, stats,
+		stats->event_poll_count, stats->event_deq_count,
+		stats->crypto_enq_count, stats->crypto_enq_fail,
+		stats->crypto_deq_count, stats->event_enq_count,
+		stats->event_enq_retry_count, stats->event_enq_fail_count);
+
 	return 0;
 }
 
@@ -1304,6 +1310,8 @@ rte_event_crypto_adapter_stats_reset(uint8_t id)
 	struct rte_eventdev *dev;
 	uint32_t i;
 
+	rte_eventdev_trace_crypto_adapter_stats_reset(id);
+
 	if (eca_memzone_lookup())
 		return -ENOMEM;
 
@@ -1341,6 +1349,8 @@ rte_event_crypto_adapter_service_id_get(uint8_t id, uint32_t *service_id)
 	if (adapter->service_inited)
 		*service_id = adapter->service_id;
 
+	rte_eventdev_trace_crypto_adapter_service_id_get(id, *service_id);
+
 	return adapter->service_inited ? 0 : -ESRCH;
 }
 
@@ -1357,6 +1367,8 @@ rte_event_crypto_adapter_event_port_get(uint8_t id, uint8_t *event_port_id)
 
 	*event_port_id = adapter->event_port_id;
 
+	rte_eventdev_trace_crypto_adapter_event_port_get(id, *event_port_id);
+
 	return 0;
 }
 
@@ -1370,6 +1382,8 @@ rte_event_crypto_adapter_vector_limits_get(
 	uint32_t cap;
 	int ret;
 
+	rte_eventdev_trace_crypto_adapter_vector_limits_get(dev_id, cdev_id, limits);
+
 	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
 
 	if (!rte_cryptodev_is_valid_dev(cdev_id)) {
diff --git a/lib/eventdev/rte_event_eth_rx_adapter.c b/lib/eventdev/rte_event_eth_rx_adapter.c
index 34aa87379e..91bbba715b 100644
--- a/lib/eventdev/rte_event_eth_rx_adapter.c
+++ b/lib/eventdev/rte_event_eth_rx_adapter.c
@@ -2541,6 +2541,9 @@ rte_event_eth_rx_adapter_create_with_params(uint8_t id, uint8_t dev_id,
 	if (ret)
 		rte_free(pc);
 
+	rte_eventdev_trace_eth_rx_adapter_create_with_params(id, dev_id,
+		port_config, rxa_params, ret);
+
 	return ret;
 }
 
@@ -2929,6 +2932,9 @@ rte_event_eth_rx_adapter_vector_limits_get(
 		ret = rxa_sw_vector_limits(limits);
 	}
 
+	rte_eventdev_trace_eth_rx_adapter_vector_limits_get(dev_id, eth_port_id,
+		limits->min_sz, limits->max_sz, limits->log2_sz,
+		limits->min_timeout_ns, limits->max_timeout_ns, ret);
 	return ret;
 }
 
@@ -2970,6 +2976,8 @@ rte_event_eth_rx_adapter_stats_get(uint8_t id,
 	uint32_t i, j;
 	int ret;
 
+	rte_eventdev_trace_eth_rx_adapter_stats_get(id, stats);
+
 	if (rxa_memzone_lookup())
 		return -ENOMEM;
 
@@ -3041,6 +3049,9 @@ rte_event_eth_rx_adapter_queue_stats_get(uint8_t id,
 	struct rte_event_eth_rx_adapter_stats *q_stats;
 	struct rte_eventdev *dev;
 
+	rte_eventdev_trace_eth_rx_adapter_queue_stats_get(id, eth_dev_id,
+							  rx_queue_id, stats);
+
 	if (rxa_memzone_lookup())
 		return -ENOMEM;
 
@@ -3098,6 +3109,8 @@ rte_event_eth_rx_adapter_stats_reset(uint8_t id)
 	struct eth_rx_queue_info *queue_info;
 	uint32_t i, j;
 
+	rte_eventdev_trace_eth_rx_adapter_stats_reset(id);
+
 	if (rxa_memzone_lookup())
 		return -ENOMEM;
 
@@ -3145,6 +3158,9 @@ rte_event_eth_rx_adapter_queue_stats_reset(uint8_t id,
 	struct eth_rx_queue_info *queue_info;
 	struct rte_eventdev *dev;
 
+	rte_eventdev_trace_eth_rx_adapter_queue_stats_reset(id, eth_dev_id,
+							    rx_queue_id);
+
 	if (rxa_memzone_lookup())
 		return -ENOMEM;
 
@@ -3203,6 +3219,8 @@ rte_event_eth_rx_adapter_service_id_get(uint8_t id, uint32_t *service_id)
 	if (rx_adapter->service_inited)
 		*service_id = rx_adapter->service_id;
 
+	rte_eventdev_trace_eth_rx_adapter_service_id_get(id, *service_id);
+
 	return rx_adapter->service_inited ? 0 : -ESRCH;
 }
 
@@ -3223,6 +3241,8 @@ rte_event_eth_rx_adapter_event_port_get(uint8_t id, uint8_t *event_port_id)
 	if (rx_adapter->service_inited)
 		*event_port_id = rx_adapter->event_port_id;
 
+	rte_eventdev_trace_eth_rx_adapter_event_port_get(id, *event_port_id);
+
 	return rx_adapter->service_inited ? 0 : -ESRCH;
 }
 
@@ -3237,6 +3257,9 @@ rte_event_eth_rx_adapter_cb_register(uint8_t id,
 	uint32_t cap;
 	int ret;
 
+	rte_eventdev_trace_eth_rx_adapter_cb_register(id, eth_dev_id, cb_fn,
+						      cb_arg);
+
 	RTE_EVENT_ETH_RX_ADAPTER_ID_VALID_OR_ERR_RET(id, -EINVAL);
 	RTE_ETH_VALID_PORTID_OR_ERR_RET(eth_dev_id, -EINVAL);
 
@@ -3284,6 +3307,9 @@ rte_event_eth_rx_adapter_queue_conf_get(uint8_t id,
 	struct eth_rx_queue_info *queue_info;
 	int ret;
 
+	rte_eventdev_trace_eth_rx_adapter_queue_conf_get(id, eth_dev_id,
+							 rx_queue_id, queue_conf);
+
 	if (rxa_memzone_lookup())
 		return -ENOMEM;
 
@@ -3429,8 +3455,11 @@ rte_event_eth_rx_adapter_instance_get(uint16_t eth_dev_id,
 		}
 
 		/* return if entry found */
-		if (ret == 0)
+		if (ret == 0) {
+			rte_eventdev_trace_eth_rx_adapter_instance_get(eth_dev_id, rx_queue_id,
+								       *rxa_inst_id);
 			return ret;
+		}
 	}
 
 	return -EINVAL;
diff --git a/lib/eventdev/rte_event_eth_tx_adapter.c b/lib/eventdev/rte_event_eth_tx_adapter.c
index 6e9bcb1b79..29580d9c94 100644
--- a/lib/eventdev/rte_event_eth_tx_adapter.c
+++ b/lib/eventdev/rte_event_eth_tx_adapter.c
@@ -995,6 +995,8 @@ txa_service_id_get(uint8_t id, uint32_t *service_id)
 		return -EINVAL;
 
 	*service_id = txa->service_id;
+
+	rte_eventdev_trace_eth_tx_adapter_service_id_get(id, *service_id);
 	return 0;
 }
 
@@ -1123,6 +1125,8 @@ rte_event_eth_tx_adapter_create_ext(uint8_t id, uint8_t dev_id,
 int
 rte_event_eth_tx_adapter_event_port_get(uint8_t id, uint8_t *event_port_id)
 {
+	rte_eventdev_trace_eth_tx_adapter_event_port_get(id);
+
 	TXA_CHECK_OR_ERR_RET(id);
 
 	return txa_service_event_port_get(id, event_port_id);
@@ -1264,6 +1268,9 @@ rte_event_eth_tx_adapter_stats_get(uint8_t id,
 			ret = txa_service_stats_get(id, stats);
 	}
 
+	rte_eventdev_trace_eth_tx_adapter_stats_get(id, stats->tx_retry, stats->tx_packets,
+						    stats->tx_dropped, ret);
+
 	return ret;
 }
 
@@ -1278,6 +1285,9 @@ rte_event_eth_tx_adapter_stats_reset(uint8_t id)
 		txa_dev_stats_reset(id)(id, txa_evdev(id)) : 0;
 	if (ret == 0)
 		ret = txa_service_stats_reset(id);
+
+	rte_eventdev_trace_eth_tx_adapter_stats_reset(id, ret);
+
 	return ret;
 }
 
@@ -1341,8 +1351,11 @@ rte_event_eth_tx_adapter_instance_get(uint16_t eth_dev_id,
 								 tx_queue_id,
 								 txa_inst_id)
 							: -EINVAL;
-			if (ret == 0)
+			if (ret == 0) {
+				rte_eventdev_trace_eth_tx_adapter_instance_get(eth_dev_id,
+								tx_queue_id, *txa_inst_id);
 				return ret;
+			}
 		} else {
 			struct rte_eth_dev *eth_dev;
 
@@ -1351,6 +1364,8 @@ rte_event_eth_tx_adapter_instance_get(uint16_t eth_dev_id,
 			if (txa_service_is_queue_added(txa, eth_dev,
 						       tx_queue_id)) {
 				*txa_inst_id = txa->id;
+				rte_eventdev_trace_eth_tx_adapter_instance_get(eth_dev_id,
+								tx_queue_id, *txa_inst_id);
 				return 0;
 			}
 		}
diff --git a/lib/eventdev/rte_event_ring.c b/lib/eventdev/rte_event_ring.c
index c070715148..b965970cf9 100644
--- a/lib/eventdev/rte_event_ring.c
+++ b/lib/eventdev/rte_event_ring.c
@@ -5,6 +5,7 @@
 
 
 #include "rte_event_ring.h"
+#include "eventdev_trace.h"
 
 int
 rte_event_ring_init(struct rte_event_ring *r, const char *name,
@@ -14,6 +15,8 @@ rte_event_ring_init(struct rte_event_ring *r, const char *name,
 	RTE_BUILD_BUG_ON((sizeof(struct rte_event_ring) &
 			  RTE_CACHE_LINE_MASK) != 0);
 
+	rte_eventdev_trace_ring_init(r, name, count, flags);
+
 	/* init the ring structure */
 	return rte_ring_init(&r->r, name, count, flags);
 }
@@ -23,6 +26,8 @@ struct rte_event_ring *
 rte_event_ring_create(const char *name, unsigned int count, int socket_id,
 		unsigned int flags)
 {
+	rte_eventdev_trace_ring_create(name, count, socket_id, flags);
+
 	return (struct rte_event_ring *)rte_ring_create_elem(name,
 						sizeof(struct rte_event),
 						count, socket_id, flags);
@@ -32,6 +37,8 @@ rte_event_ring_create(const char *name, unsigned int count, int socket_id,
 struct rte_event_ring *
 rte_event_ring_lookup(const char *name)
 {
+	rte_eventdev_trace_ring_lookup(name);
+
 	return (struct rte_event_ring *)rte_ring_lookup(name);
 }
 
@@ -39,5 +46,7 @@ rte_event_ring_lookup(const char *name)
 void
 rte_event_ring_free(struct rte_event_ring *r)
 {
+	rte_eventdev_trace_ring_free(r->r.name);
+
 	rte_ring_free((struct rte_ring *)r);
 }
diff --git a/lib/eventdev/rte_event_timer_adapter.c b/lib/eventdev/rte_event_timer_adapter.c
index d357f7403a..2a86c7bd25 100644
--- a/lib/eventdev/rte_event_timer_adapter.c
+++ b/lib/eventdev/rte_event_timer_adapter.c
@@ -275,6 +275,8 @@ rte_event_timer_adapter_get_info(const struct rte_event_timer_adapter *adapter,
 	adapter_info->event_dev_port_id = adapter->data->event_port_id;
 	adapter_info->caps = adapter->data->caps;
 
+	rte_eventdev_trace_timer_adapter_get_info(adapter, adapter_info);
+
 	return 0;
 }
 
@@ -386,6 +388,8 @@ rte_event_timer_adapter_lookup(uint16_t adapter_id)
 
 	adapter->allocated = 1;
 
+	rte_eventdev_trace_timer_adapter_lookup(adapter_id, adapter);
+
 	return adapter;
 }
 
@@ -436,9 +440,14 @@ rte_event_timer_adapter_service_id_get(struct rte_event_timer_adapter *adapter,
 {
 	ADAPTER_VALID_OR_ERR_RET(adapter, -EINVAL);
 
+	if (service_id == NULL)
+		return -EINVAL;
+
 	if (adapter->data->service_inited && service_id != NULL)
 		*service_id = adapter->data->service_id;
 
+	rte_eventdev_trace_timer_adapter_service_id_get(adapter, *service_id);
+
 	return adapter->data->service_inited ? 0 : -ESRCH;
 }
 
diff --git a/lib/eventdev/rte_eventdev.c b/lib/eventdev/rte_eventdev.c
index b0414206d9..8e146a9bc0 100644
--- a/lib/eventdev/rte_eventdev.c
+++ b/lib/eventdev/rte_eventdev.c
@@ -62,8 +62,10 @@ rte_event_dev_get_dev_id(const char *name)
 				rte_event_devices[i].dev->driver->name, name,
 					 RTE_EVENTDEV_NAME_MAX_LEN) == 0) : 0);
 		if (cmp && (rte_event_devices[i].attached ==
-					RTE_EVENTDEV_ATTACHED))
+					RTE_EVENTDEV_ATTACHED)) {
+			rte_eventdev_trace_get_dev_id(name, i);
 			return i;
+		}
 	}
 	return -ENODEV;
 }
@@ -76,6 +78,9 @@ rte_event_dev_socket_id(uint8_t dev_id)
 	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
 	dev = &rte_eventdevs[dev_id];
 
+	rte_eventdev_trace_socket_id(dev->data->name, dev->data->dev_id,
+		dev->data->socket_id);
+
 	return dev->data->socket_id;
 }
 
@@ -99,6 +104,10 @@ rte_event_dev_info_get(uint8_t dev_id, struct rte_event_dev_info *dev_info)
 	dev_info->dequeue_timeout_ns = dev->data->dev_conf.dequeue_timeout_ns;
 
 	dev_info->dev = dev->dev;
+
+	rte_eventdev_trace_info_get(dev->data->name, dev->data->dev_id,
+		dev->data->socket_id, dev->dev->name, dev_info->driver_name);
+
 	return 0;
 }
 
@@ -121,6 +130,9 @@ rte_event_eth_rx_adapter_caps_get(uint8_t dev_id, uint16_t eth_port_id,
 	else
 		*caps = 0;
 
+	rte_eventdev_trace_eth_rx_adapter_caps_get(dev->data->name,
+		dev->data->dev_id, dev->data->socket_id, eth_port_id);
+
 	return dev->dev_ops->eth_rx_adapter_caps_get ?
 				(*dev->dev_ops->eth_rx_adapter_caps_get)(dev,
 						&rte_eth_devices[eth_port_id],
@@ -146,6 +158,9 @@ rte_event_timer_adapter_caps_get(uint8_t dev_id, uint32_t *caps)
 	else
 		*caps = 0;
 
+	rte_eventdev_trace_timer_adapter_caps_get(dev->data->name,
+		dev->data->dev_id, dev->data->socket_id);
+
 	return dev->dev_ops->timer_adapter_caps_get ?
 				(*dev->dev_ops->timer_adapter_caps_get)(dev,
 									0,
@@ -176,6 +191,8 @@ rte_event_crypto_adapter_caps_get(uint8_t dev_id, uint8_t cdev_id,
 	else
 		*caps = 0;
 
+	rte_eventdev_trace_crypto_adapter_caps_get(dev, cdev);
+
 	return dev->dev_ops->crypto_adapter_caps_get ?
 		(*dev->dev_ops->crypto_adapter_caps_get)
 		(dev, cdev, caps) : 0;
@@ -202,6 +219,8 @@ rte_event_eth_tx_adapter_caps_get(uint8_t dev_id, uint16_t eth_port_id,
 	else
 		*caps = 0;
 
+	rte_eventdev_trace_eth_tx_adapter_caps_get(dev, eth_dev, eth_port_id);
+
 	return dev->dev_ops->eth_tx_adapter_caps_get ?
 			(*dev->dev_ops->eth_tx_adapter_caps_get)(dev,
 								eth_dev,
@@ -524,6 +543,9 @@ rte_event_queue_default_conf_get(uint8_t dev_id, uint8_t queue_id,
 		return -ENOTSUP;
 	memset(queue_conf, 0, sizeof(struct rte_event_queue_conf));
 	(*dev->dev_ops->queue_def_conf)(dev, queue_id, queue_conf);
+
+	rte_eventdev_trace_queue_default_conf_get(dev, queue_id, queue_conf);
+
 	return 0;
 }
 
@@ -652,6 +674,9 @@ rte_event_port_default_conf_get(uint8_t dev_id, uint8_t port_id,
 		return -ENOTSUP;
 	memset(port_conf, 0, sizeof(struct rte_event_port_conf));
 	(*dev->dev_ops->port_def_conf)(dev, port_id, port_conf);
+
+	rte_eventdev_trace_port_default_conf_get(dev, port_id, port_conf);
+
 	return 0;
 }
 
@@ -759,6 +784,8 @@ rte_event_port_quiesce(uint8_t dev_id, uint8_t port_id,
 		return;
 	}
 
+	rte_eventdev_trace_port_quiesce(dev, port_id);
+
 	if (dev->dev_ops->port_quiesce)
 		(*dev->dev_ops->port_quiesce)(dev, dev->data->ports[port_id],
 					      release_cb, args);
@@ -789,6 +816,8 @@ rte_event_dev_attr_get(uint8_t dev_id, uint32_t attr_id,
 		return -EINVAL;
 	}
 
+	rte_eventdev_trace_attr_get(dev, attr_id, *attr_value);
+
 	return 0;
 }
 
@@ -829,6 +858,9 @@ rte_event_port_attr_get(uint8_t dev_id, uint8_t port_id, uint32_t attr_id,
 	default:
 		return -EINVAL;
 	};
+
+	rte_eventdev_trace_port_attr_get(dev, port_id, attr_id, *attr_value);
+
 	return 0;
 }
 
@@ -851,6 +883,8 @@ rte_event_queue_attr_get(uint8_t dev_id, uint8_t queue_id, uint32_t attr_id,
 
 	conf = &dev->data->queues_cfg[queue_id];
 
+	rte_eventdev_trace_queue_attr_get(dev, conf, queue_id, attr_id);
+
 	switch (attr_id) {
 	case RTE_EVENT_QUEUE_ATTR_PRIORITY:
 		*attr_value = RTE_EVENT_DEV_PRIORITY_NORMAL;
@@ -894,6 +928,8 @@ rte_event_queue_attr_set(uint8_t dev_id, uint8_t queue_id, uint32_t attr_id,
 {
 	struct rte_eventdev *dev;
 
+	rte_eventdev_trace_queue_attr_set(dev_id, queue_id, attr_id, attr_value);
+
 	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
 	dev = &rte_eventdevs[dev_id];
 	if (!is_valid_queue(dev, queue_id)) {
@@ -1048,6 +1084,8 @@ rte_event_port_unlinks_in_progress(uint8_t dev_id, uint8_t port_id)
 {
 	struct rte_eventdev *dev;
 
+	rte_eventdev_trace_port_unlinks_in_progress(dev_id, port_id);
+
 	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
 	dev = &rte_eventdevs[dev_id];
 	if (!is_valid_port(dev, port_id)) {
@@ -1091,6 +1129,9 @@ rte_event_port_links_get(uint8_t dev_id, uint8_t port_id,
 			++count;
 		}
 	}
+
+	rte_eventdev_trace_port_links_get(dev_id, port_id, count);
+
 	return count;
 }
 
@@ -1100,6 +1141,8 @@ rte_event_dequeue_timeout_ticks(uint8_t dev_id, uint64_t ns,
 {
 	struct rte_eventdev *dev;
 
+	rte_eventdev_trace_dequeue_timeout_ticks(dev_id, ns, timeout_ticks);
+
 	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
 	dev = &rte_eventdevs[dev_id];
 	if (*dev->dev_ops->timeout_ticks == NULL)
@@ -1125,6 +1168,8 @@ rte_event_dev_service_id_get(uint8_t dev_id, uint32_t *service_id)
 	if (dev->data->service_inited)
 		*service_id = dev->data->service_id;
 
+	rte_eventdev_trace_service_id_get(dev_id, *service_id);
+
 	return dev->data->service_inited ? 0 : -ESRCH;
 }
 
@@ -1285,6 +1330,9 @@ rte_event_vector_pool_create(const char *name, unsigned int n,
 	if (ret < 0)
 		goto err;
 
+	rte_eventdev_trace_vector_pool_create(mp, mp->name, mp->socket_id,
+		mp->size, mp->cache_size, mp->elt_size);
+
 	return mp;
 err:
 	rte_mempool_free(mp);
@@ -1332,6 +1380,8 @@ rte_event_dev_stop_flush_callback_register(uint8_t dev_id,
 
 	RTE_EDEV_LOG_DEBUG("Stop flush register dev_id=%" PRIu8, dev_id);
 
+	rte_eventdev_trace_stop_flush_callback_register(dev_id, callback, userdata);
+
 	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
 	dev = &rte_eventdevs[dev_id];
 
diff --git a/lib/eventdev/version.map b/lib/eventdev/version.map
index 4405cd38eb..f6ab242a3d 100644
--- a/lib/eventdev/version.map
+++ b/lib/eventdev/version.map
@@ -121,6 +121,60 @@ EXPERIMENTAL {
 
 	# added in 23.03
 	rte_event_timer_remaining_ticks_get;
+	__rte_eventdev_trace_eth_rx_adapter_caps_get;
+	__rte_eventdev_trace_eth_tx_adapter_caps_get;
+	__rte_eventdev_trace_timer_adapter_caps_get;
+	__rte_eventdev_trace_crypto_adapter_caps_get;
+	__rte_eventdev_trace_crypto_adapter_event_port_get;
+	__rte_eventdev_trace_crypto_adapter_service_id_get;
+	__rte_eventdev_trace_eth_rx_adapter_cb_register;
+	__rte_eventdev_trace_eth_rx_adapter_create_with_params;
+	__rte_eventdev_trace_eth_rx_adapter_queue_conf_get;
+	__rte_eventdev_trace_eth_rx_adapter_service_id_get;
+	__rte_eventdev_trace_eth_rx_adapter_vector_limits_get;
+	__rte_eventdev_trace_eth_tx_adapter_event_port_get;
+	__rte_eventdev_trace_eth_tx_adapter_service_id_get;
+	__rte_eventdev_trace_port_attr_get;
+	__rte_eventdev_trace_port_default_conf_get;
+	__rte_eventdev_trace_port_links_get;
+	__rte_eventdev_trace_port_quiesce;
+	__rte_eventdev_trace_port_unlinks_in_progress;
+	__rte_eventdev_trace_queue_attr_get;
+	__rte_eventdev_trace_queue_attr_set;
+	__rte_eventdev_trace_queue_default_conf_get;
+	__rte_eventdev_trace_ring_create;
+	__rte_eventdev_trace_ring_free;
+	__rte_eventdev_trace_ring_init;
+	__rte_eventdev_trace_ring_lookup;
+	__rte_eventdev_trace_timer_adapter_get_info;
+	__rte_eventdev_trace_timer_adapter_lookup;
+	__rte_eventdev_trace_timer_adapter_service_id_get;
+	__rte_eventdev_trace_attr_get;
+	__rte_eventdev_trace_close;
+	__rte_eventdev_trace_configure;
+	__rte_eventdev_trace_dump;
+	__rte_eventdev_trace_get_dev_id;
+	__rte_eventdev_trace_info_get;
+	__rte_eventdev_trace_selftest;
+	__rte_eventdev_trace_service_id_get;
+	__rte_eventdev_trace_socket_id;
+	__rte_eventdev_trace_start;
+	__rte_eventdev_trace_stop;
+	__rte_eventdev_trace_stop_flush_callback_register;
+	__rte_eventdev_trace_vector_pool_create;
+	__rte_eventdev_trace_dequeue_timeout_ticks;
+	__rte_eventdev_trace_crypto_adapter_stats_get;
+	__rte_eventdev_trace_crypto_adapter_stats_reset;
+	__rte_eventdev_trace_eth_rx_adapter_stats_get;
+	__rte_eventdev_trace_crypto_adapter_vector_limits_get;
+	__rte_eventdev_trace_eth_rx_adapter_queue_stats_get;
+	__rte_eventdev_trace_eth_rx_adapter_stats_reset;
+	__rte_eventdev_trace_eth_rx_adapter_queue_stats_reset;
+	__rte_eventdev_trace_eth_rx_adapter_event_port_get;
+	__rte_eventdev_trace_eth_rx_adapter_instance_get;
+	__rte_eventdev_trace_eth_tx_adapter_stats_get;
+	__rte_eventdev_trace_eth_tx_adapter_stats_reset;
+	__rte_eventdev_trace_eth_tx_adapter_instance_get;
 };
 
 INTERNAL {
-- 
2.25.1


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PATCH v2] eventdev: add trace points
  2023-01-30 10:13 ` [PATCH v2] " Amit Prakash Shukla
@ 2023-01-30 14:31   ` Jerin Jacob
  2023-01-30 14:52     ` [EXT] " Amit Prakash Shukla
  2023-01-30 17:30   ` [PATCH v3] " Amit Prakash Shukla
  1 sibling, 1 reply; 14+ messages in thread
From: Jerin Jacob @ 2023-01-30 14:31 UTC (permalink / raw)
  To: Amit Prakash Shukla
  Cc: Jerin Jacob, Abhinandan Gujjar, Naga Harish K S V,
	Erik Gabriel Carrillo, dev

On Mon, Jan 30, 2023 at 3:44 PM Amit Prakash Shukla
<amitprakashs@marvell.com> wrote:
>
> Add trace points for eventdev functions.
>
> Signed-off-by: Amit Prakash Shukla <amitprakashs@marvell.com>
> ---

> diff --git a/lib/eventdev/version.map b/lib/eventdev/version.map
> index 4405cd38eb..f6ab242a3d 100644
> --- a/lib/eventdev/version.map
> +++ b/lib/eventdev/version.map
> @@ -121,6 +121,60 @@ EXPERIMENTAL {
>
>         # added in 23.03
>         rte_event_timer_remaining_ticks_get;

Following updates are not needed in version.map based on the
discussion happened ethdev trace thread as it is not required to
expose the symbol.

> +       __rte_eventdev_trace_eth_rx_adapter_caps_get;
> +       __rte_eventdev_trace_eth_tx_adapter_caps_get;
> +       __rte_eventdev_trace_timer_adapter_caps_get;
> +       __rte_eventdev_trace_crypto_adapter_caps_get;
> +       __rte_eventdev_trace_crypto_adapter_event_port_get;
> +       __rte_eventdev_trace_crypto_adapter_service_id_get;
> +       __rte_eventdev_trace_eth_rx_adapter_cb_register;
> +       __rte_eventdev_trace_eth_rx_adapter_create_with_params;
> +       __rte_eventdev_trace_eth_rx_adapter_queue_conf_get;
> +       __rte_eventdev_trace_eth_rx_adapter_service_id_get;
> +       __rte_eventdev_trace_eth_rx_adapter_vector_limits_get;
> +       __rte_eventdev_trace_eth_tx_adapter_event_port_get;
> +       __rte_eventdev_trace_eth_tx_adapter_service_id_get;
> +       __rte_eventdev_trace_port_attr_get;
> +       __rte_eventdev_trace_port_default_conf_get;
> +       __rte_eventdev_trace_port_links_get;
> +       __rte_eventdev_trace_port_quiesce;
> +       __rte_eventdev_trace_port_unlinks_in_progress;
> +       __rte_eventdev_trace_queue_attr_get;
> +       __rte_eventdev_trace_queue_attr_set;
> +       __rte_eventdev_trace_queue_default_conf_get;
> +       __rte_eventdev_trace_ring_create;
> +       __rte_eventdev_trace_ring_free;
> +       __rte_eventdev_trace_ring_init;
> +       __rte_eventdev_trace_ring_lookup;
> +       __rte_eventdev_trace_timer_adapter_get_info;
> +       __rte_eventdev_trace_timer_adapter_lookup;
> +       __rte_eventdev_trace_timer_adapter_service_id_get;
> +       __rte_eventdev_trace_attr_get;
> +       __rte_eventdev_trace_close;
> +       __rte_eventdev_trace_configure;
> +       __rte_eventdev_trace_dump;
> +       __rte_eventdev_trace_get_dev_id;
> +       __rte_eventdev_trace_info_get;
> +       __rte_eventdev_trace_selftest;
> +       __rte_eventdev_trace_service_id_get;
> +       __rte_eventdev_trace_socket_id;
> +       __rte_eventdev_trace_start;
> +       __rte_eventdev_trace_stop;
> +       __rte_eventdev_trace_stop_flush_callback_register;
> +       __rte_eventdev_trace_vector_pool_create;
> +       __rte_eventdev_trace_dequeue_timeout_ticks;
> +       __rte_eventdev_trace_crypto_adapter_stats_get;
> +       __rte_eventdev_trace_crypto_adapter_stats_reset;
> +       __rte_eventdev_trace_eth_rx_adapter_stats_get;
> +       __rte_eventdev_trace_crypto_adapter_vector_limits_get;
> +       __rte_eventdev_trace_eth_rx_adapter_queue_stats_get;
> +       __rte_eventdev_trace_eth_rx_adapter_stats_reset;
> +       __rte_eventdev_trace_eth_rx_adapter_queue_stats_reset;
> +       __rte_eventdev_trace_eth_rx_adapter_event_port_get;
> +       __rte_eventdev_trace_eth_rx_adapter_instance_get;
> +       __rte_eventdev_trace_eth_tx_adapter_stats_get;
> +       __rte_eventdev_trace_eth_tx_adapter_stats_reset;
> +       __rte_eventdev_trace_eth_tx_adapter_instance_get;
>  };
>
>  INTERNAL {
> --
> 2.25.1
>

^ permalink raw reply	[flat|nested] 14+ messages in thread

* RE: [EXT] Re: [PATCH v2] eventdev: add trace points
  2023-01-30 14:31   ` Jerin Jacob
@ 2023-01-30 14:52     ` Amit Prakash Shukla
  0 siblings, 0 replies; 14+ messages in thread
From: Amit Prakash Shukla @ 2023-01-30 14:52 UTC (permalink / raw)
  To: Jerin Jacob
  Cc: Jerin Jacob Kollanukkaran, Abhinandan Gujjar, Naga Harish K S V,
	Erik Gabriel Carrillo, dev

Thanks Jerin for the review and feedback. Sure, I will send next version of the patch without symbols.

> -----Original Message-----
> From: Jerin Jacob <jerinjacobk@gmail.com>
> Sent: Monday, January 30, 2023 8:02 PM
> To: Amit Prakash Shukla <amitprakashs@marvell.com>
> Cc: Jerin Jacob Kollanukkaran <jerinj@marvell.com>; Abhinandan Gujjar
> <abhinandan.gujjar@intel.com>; Naga Harish K S V
> <s.v.naga.harish.k@intel.com>; Erik Gabriel Carrillo
> <erik.g.carrillo@intel.com>; dev@dpdk.org
> Subject: [EXT] Re: [PATCH v2] eventdev: add trace points
> 
> External Email
> 
> ----------------------------------------------------------------------
> On Mon, Jan 30, 2023 at 3:44 PM Amit Prakash Shukla
> <amitprakashs@marvell.com> wrote:
> >
> > Add trace points for eventdev functions.
> >
> > Signed-off-by: Amit Prakash Shukla <amitprakashs@marvell.com>
> > ---
> 
> > diff --git a/lib/eventdev/version.map b/lib/eventdev/version.map index
> > 4405cd38eb..f6ab242a3d 100644
> > --- a/lib/eventdev/version.map
> > +++ b/lib/eventdev/version.map
> > @@ -121,6 +121,60 @@ EXPERIMENTAL {
> >
> >         # added in 23.03
> >         rte_event_timer_remaining_ticks_get;
> 
> Following updates are not needed in version.map based on the discussion
> happened ethdev trace thread as it is not required to expose the symbol.
> 
> > +       __rte_eventdev_trace_eth_rx_adapter_caps_get;
> > +       __rte_eventdev_trace_eth_tx_adapter_caps_get;
> > +       __rte_eventdev_trace_timer_adapter_caps_get;
> > +       __rte_eventdev_trace_crypto_adapter_caps_get;
> > +       __rte_eventdev_trace_crypto_adapter_event_port_get;
> > +       __rte_eventdev_trace_crypto_adapter_service_id_get;
> > +       __rte_eventdev_trace_eth_rx_adapter_cb_register;
> > +       __rte_eventdev_trace_eth_rx_adapter_create_with_params;
> > +       __rte_eventdev_trace_eth_rx_adapter_queue_conf_get;
> > +       __rte_eventdev_trace_eth_rx_adapter_service_id_get;
> > +       __rte_eventdev_trace_eth_rx_adapter_vector_limits_get;
> > +       __rte_eventdev_trace_eth_tx_adapter_event_port_get;
> > +       __rte_eventdev_trace_eth_tx_adapter_service_id_get;
> > +       __rte_eventdev_trace_port_attr_get;
> > +       __rte_eventdev_trace_port_default_conf_get;
> > +       __rte_eventdev_trace_port_links_get;
> > +       __rte_eventdev_trace_port_quiesce;
> > +       __rte_eventdev_trace_port_unlinks_in_progress;
> > +       __rte_eventdev_trace_queue_attr_get;
> > +       __rte_eventdev_trace_queue_attr_set;
> > +       __rte_eventdev_trace_queue_default_conf_get;
> > +       __rte_eventdev_trace_ring_create;
> > +       __rte_eventdev_trace_ring_free;
> > +       __rte_eventdev_trace_ring_init;
> > +       __rte_eventdev_trace_ring_lookup;
> > +       __rte_eventdev_trace_timer_adapter_get_info;
> > +       __rte_eventdev_trace_timer_adapter_lookup;
> > +       __rte_eventdev_trace_timer_adapter_service_id_get;
> > +       __rte_eventdev_trace_attr_get;
> > +       __rte_eventdev_trace_close;
> > +       __rte_eventdev_trace_configure;
> > +       __rte_eventdev_trace_dump;
> > +       __rte_eventdev_trace_get_dev_id;
> > +       __rte_eventdev_trace_info_get;
> > +       __rte_eventdev_trace_selftest;
> > +       __rte_eventdev_trace_service_id_get;
> > +       __rte_eventdev_trace_socket_id;
> > +       __rte_eventdev_trace_start;
> > +       __rte_eventdev_trace_stop;
> > +       __rte_eventdev_trace_stop_flush_callback_register;
> > +       __rte_eventdev_trace_vector_pool_create;
> > +       __rte_eventdev_trace_dequeue_timeout_ticks;
> > +       __rte_eventdev_trace_crypto_adapter_stats_get;
> > +       __rte_eventdev_trace_crypto_adapter_stats_reset;
> > +       __rte_eventdev_trace_eth_rx_adapter_stats_get;
> > +       __rte_eventdev_trace_crypto_adapter_vector_limits_get;
> > +       __rte_eventdev_trace_eth_rx_adapter_queue_stats_get;
> > +       __rte_eventdev_trace_eth_rx_adapter_stats_reset;
> > +       __rte_eventdev_trace_eth_rx_adapter_queue_stats_reset;
> > +       __rte_eventdev_trace_eth_rx_adapter_event_port_get;
> > +       __rte_eventdev_trace_eth_rx_adapter_instance_get;
> > +       __rte_eventdev_trace_eth_tx_adapter_stats_get;
> > +       __rte_eventdev_trace_eth_tx_adapter_stats_reset;
> > +       __rte_eventdev_trace_eth_tx_adapter_instance_get;
> >  };
> >
> >  INTERNAL {
> > --
> > 2.25.1
> >

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [PATCH v3] eventdev: add trace points
  2023-01-30 10:13 ` [PATCH v2] " Amit Prakash Shukla
  2023-01-30 14:31   ` Jerin Jacob
@ 2023-01-30 17:30   ` Amit Prakash Shukla
  2023-01-31 13:30     ` [PATCH v4] " Amit Prakash Shukla
  1 sibling, 1 reply; 14+ messages in thread
From: Amit Prakash Shukla @ 2023-01-30 17:30 UTC (permalink / raw)
  To: Jerin Jacob, Abhinandan Gujjar, Naga Harish K S V, Erik Gabriel Carrillo
  Cc: dev, Amit Prakash Shukla

Add trace points for eventdev functions.

Signed-off-by: Amit Prakash Shukla <amitprakashs@marvell.com>
---
v2:
 - Fixed CI test failure
 - Code review suggestion from Abhinandan

v3:
 - Removed trace symbols from version.map

 lib/eventdev/eventdev_trace.h           | 513 +++++++++++++++++++++++-
 lib/eventdev/eventdev_trace_points.c    | 150 +++++++
 lib/eventdev/rte_event_crypto_adapter.c |  18 +-
 lib/eventdev/rte_event_eth_rx_adapter.c |  31 +-
 lib/eventdev/rte_event_eth_tx_adapter.c |  17 +-
 lib/eventdev/rte_event_ring.c           |   9 +
 lib/eventdev/rte_event_timer_adapter.c  |   9 +
 lib/eventdev/rte_eventdev.c             |  52 ++-
 8 files changed, 786 insertions(+), 13 deletions(-)

diff --git a/lib/eventdev/eventdev_trace.h b/lib/eventdev/eventdev_trace.h
index d48cd58850..f02313279b 100644
--- a/lib/eventdev/eventdev_trace.h
+++ b/lib/eventdev/eventdev_trace.h
@@ -21,6 +21,9 @@ extern "C" {
 #include "rte_event_crypto_adapter.h"
 #include "rte_event_eth_rx_adapter.h"
 #include "rte_event_timer_adapter.h"
+#include "eventdev_pmd.h"
+#include "cryptodev_pmd.h"
+#include "ethdev_driver.h"
 
 RTE_TRACE_POINT(
 	rte_eventdev_trace_configure,
@@ -63,6 +66,7 @@ RTE_TRACE_POINT(
 	rte_trace_point_emit_u16(port_conf->enqueue_depth);
 	rte_trace_point_emit_u32(port_conf->event_port_cfg);
 	rte_trace_point_emit_int(rc);
+	rte_trace_point_emit_ptr(port_conf);
 )
 
 RTE_TRACE_POINT(
@@ -250,16 +254,17 @@ RTE_TRACE_POINT(
 
 RTE_TRACE_POINT(
 	rte_eventdev_trace_crypto_adapter_create,
-	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint8_t dev_id, void *adapter,
-		struct rte_event_port_conf *port_conf, uint8_t mode),
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint8_t dev_id,
+		struct rte_event_port_conf *port_config, int mode, int ret),
 	rte_trace_point_emit_u8(adptr_id);
 	rte_trace_point_emit_u8(dev_id);
-	rte_trace_point_emit_ptr(adapter);
-	rte_trace_point_emit_u8(mode);
-	rte_trace_point_emit_i32(port_conf->new_event_threshold);
-	rte_trace_point_emit_u16(port_conf->dequeue_depth);
-	rte_trace_point_emit_u16(port_conf->enqueue_depth);
-	rte_trace_point_emit_u32(port_conf->event_port_cfg);
+	rte_trace_point_emit_ptr(port_config);
+	rte_trace_point_emit_i32(port_config->new_event_threshold);
+	rte_trace_point_emit_u16(port_config->dequeue_depth);
+	rte_trace_point_emit_u16(port_config->enqueue_depth);
+	rte_trace_point_emit_u32(port_config->event_port_cfg);
+	rte_trace_point_emit_int(mode);
+	rte_trace_point_emit_int(ret);
 )
 
 RTE_TRACE_POINT(
@@ -303,6 +308,498 @@ RTE_TRACE_POINT(
 	rte_trace_point_emit_u8(adptr_id);
 )
 
+RTE_TRACE_POINT(
+	rte_eventdev_trace_crypto_adapter_event_port_get,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint8_t event_port_id),
+	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_u8(event_port_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_crypto_adapter_service_id_get,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint32_t service_id),
+	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_u32(service_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_attr_get,
+	RTE_TRACE_POINT_ARGS(const struct rte_eventdev *dev, uint32_t attr_id,
+		uint32_t attr_value),
+	rte_trace_point_emit_ptr(dev);
+	rte_trace_point_emit_string(dev->data->name);
+	rte_trace_point_emit_u8(dev->data->dev_id);
+	rte_trace_point_emit_int(dev->data->socket_id);
+	rte_trace_point_emit_u32(attr_id);
+	rte_trace_point_emit_u32(attr_value);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_dump,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *f),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_ptr(f);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_get_dev_id,
+	RTE_TRACE_POINT_ARGS(const char *name, int dev_id),
+	rte_trace_point_emit_string(name);
+	rte_trace_point_emit_int(dev_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_info_get,
+	RTE_TRACE_POINT_ARGS(const char *name, uint8_t dev_id, int socket_id,
+		const char *device_name, const char *driver_name),
+	rte_trace_point_emit_string(name);
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_int(socket_id);
+	rte_trace_point_emit_string(device_name);
+	rte_trace_point_emit_string(driver_name);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_selftest,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id),
+	rte_trace_point_emit_u8(dev_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_service_id_get,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint32_t service_id),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_u32(service_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_socket_id,
+	RTE_TRACE_POINT_ARGS(const char *name, uint8_t dev_id, int socket_id),
+	rte_trace_point_emit_string(name);
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_int(socket_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_stop_flush_callback_register,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id,
+		eventdev_stop_flush_t callback, const void *userdata),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_ptr(callback);
+	rte_trace_point_emit_ptr(userdata);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_rx_adapter_caps_get,
+	RTE_TRACE_POINT_ARGS(const char *name, uint8_t dev_id, int socket_id,
+		uint16_t eth_port_id),
+	rte_trace_point_emit_string(name);
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_int(socket_id);
+	rte_trace_point_emit_u16(eth_port_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_rx_adapter_cb_register,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint16_t eth_dev_id, const void *cb_fn,
+		const void *cb_arg),
+	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_u16(eth_dev_id);
+	rte_trace_point_emit_ptr(cb_fn);
+	rte_trace_point_emit_ptr(cb_arg);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_rx_adapter_create_with_params,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint8_t dev_id,
+		const struct rte_event_port_conf *port_config,
+		const struct rte_event_eth_rx_adapter_params *rxa_params,
+		int ret),
+	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_ptr(port_config);
+	rte_trace_point_emit_i32(port_config->new_event_threshold);
+	rte_trace_point_emit_u16(port_config->dequeue_depth);
+	rte_trace_point_emit_u16(port_config->enqueue_depth);
+	rte_trace_point_emit_u32(port_config->event_port_cfg);
+	rte_trace_point_emit_ptr(rxa_params);
+	rte_trace_point_emit_u16(rxa_params->event_buf_size);
+	rte_trace_point_emit_int(ret);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_rx_adapter_service_id_get,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint32_t service_id),
+	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_u32(service_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_rx_adapter_event_port_get,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint8_t event_port_id),
+	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_u8(event_port_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_rx_adapter_vector_limits_get,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint16_t eth_port_id,
+		uint16_t min_sz, uint16_t max_sz, uint8_t log2_sz,
+		uint64_t min_timeout_ns, uint64_t max_timeout_ns, int ret),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_u16(eth_port_id);
+	rte_trace_point_emit_u16(min_sz);
+	rte_trace_point_emit_u16(max_sz);
+	rte_trace_point_emit_u8(log2_sz);
+	rte_trace_point_emit_u64(min_timeout_ns);
+	rte_trace_point_emit_u64(max_timeout_ns);
+	rte_trace_point_emit_int(ret);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_tx_adapter_caps_get,
+	RTE_TRACE_POINT_ARGS(const struct rte_eventdev *dev,
+		const struct rte_eth_dev *eth_dev, uint16_t eth_port_id),
+	rte_trace_point_emit_ptr(dev);
+	rte_trace_point_emit_string(dev->data->name);
+	rte_trace_point_emit_u8(dev->data->dev_id);
+	rte_trace_point_emit_int(dev->data->socket_id);
+	rte_trace_point_emit_ptr(eth_dev);
+	rte_trace_point_emit_string(eth_dev->data->name);
+	rte_trace_point_emit_u16(eth_port_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_tx_adapter_event_port_get,
+	RTE_TRACE_POINT_ARGS(uint8_t id),
+	rte_trace_point_emit_u8(id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_tx_adapter_service_id_get,
+	RTE_TRACE_POINT_ARGS(uint8_t id, uint32_t service_id),
+	rte_trace_point_emit_u8(id);
+	rte_trace_point_emit_u32(service_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_port_attr_get,
+	RTE_TRACE_POINT_ARGS(const struct rte_eventdev *dev, uint8_t port_id,
+		uint32_t attr_id, uint32_t attr_value),
+	rte_trace_point_emit_ptr(dev);
+	rte_trace_point_emit_string(dev->data->name);
+	rte_trace_point_emit_u8(dev->data->dev_id);
+	rte_trace_point_emit_int(dev->data->socket_id);
+	rte_trace_point_emit_u8(port_id);
+	rte_trace_point_emit_u32(attr_id);
+	rte_trace_point_emit_u32(attr_value);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_port_default_conf_get,
+	RTE_TRACE_POINT_ARGS(const struct rte_eventdev *dev, uint8_t port_id,
+		const struct rte_event_port_conf *port_conf),
+	rte_trace_point_emit_ptr(dev);
+	rte_trace_point_emit_string(dev->data->name);
+	rte_trace_point_emit_u8(dev->data->dev_id);
+	rte_trace_point_emit_int(dev->data->socket_id);
+	rte_trace_point_emit_u8(port_id);
+	rte_trace_point_emit_ptr(port_conf);
+	rte_trace_point_emit_i32(port_conf->new_event_threshold);
+	rte_trace_point_emit_u16(port_conf->dequeue_depth);
+	rte_trace_point_emit_u16(port_conf->enqueue_depth);
+	rte_trace_point_emit_u32(port_conf->event_port_cfg);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_port_links_get,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint8_t port_id, int count),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_u8(port_id);
+	rte_trace_point_emit_int(count);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_port_unlinks_in_progress,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint8_t port_id),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_u8(port_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_queue_attr_get,
+	RTE_TRACE_POINT_ARGS(const struct rte_eventdev *dev,
+		const struct rte_event_queue_conf *conf, uint8_t queue_id,
+		uint32_t attr_id),
+	rte_trace_point_emit_ptr(dev);
+	rte_trace_point_emit_string(dev->data->name);
+	rte_trace_point_emit_u8(dev->data->dev_id);
+	rte_trace_point_emit_int(dev->data->socket_id);
+	rte_trace_point_emit_ptr(conf);
+	rte_trace_point_emit_u32(conf->nb_atomic_flows);
+	rte_trace_point_emit_u32(conf->nb_atomic_order_sequences);
+	rte_trace_point_emit_u32(conf->event_queue_cfg);
+	rte_trace_point_emit_u8(conf->schedule_type);
+	rte_trace_point_emit_u8(conf->priority);
+	rte_trace_point_emit_u8(queue_id);
+	rte_trace_point_emit_u32(attr_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_queue_default_conf_get,
+	RTE_TRACE_POINT_ARGS(const struct rte_eventdev *dev, uint8_t queue_id,
+		const struct rte_event_queue_conf *queue_conf),
+	rte_trace_point_emit_ptr(dev);
+	rte_trace_point_emit_string(dev->data->name);
+	rte_trace_point_emit_u8(dev->data->dev_id);
+	rte_trace_point_emit_int(dev->data->socket_id);
+	rte_trace_point_emit_u8(queue_id);
+	rte_trace_point_emit_ptr(queue_conf);
+	rte_trace_point_emit_u32(queue_conf->nb_atomic_flows);
+	rte_trace_point_emit_u32(queue_conf->nb_atomic_order_sequences);
+	rte_trace_point_emit_u32(queue_conf->event_queue_cfg);
+	rte_trace_point_emit_u8(queue_conf->schedule_type);
+	rte_trace_point_emit_u8(queue_conf->priority);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_ring_create,
+	RTE_TRACE_POINT_ARGS(const char *name, unsigned int count,
+		int socket_id, unsigned int flags),
+	rte_trace_point_emit_string(name);
+	rte_trace_point_emit_u32(count);
+	rte_trace_point_emit_int(socket_id);
+	rte_trace_point_emit_u32(flags);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_ring_free,
+	RTE_TRACE_POINT_ARGS(const char *name),
+	rte_trace_point_emit_string(name);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_ring_init,
+	RTE_TRACE_POINT_ARGS(const void *r, const char *name,
+		unsigned int count, unsigned int flags),
+	rte_trace_point_emit_ptr(r);
+	rte_trace_point_emit_string(name);
+	rte_trace_point_emit_u32(count);
+	rte_trace_point_emit_u32(flags);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_ring_lookup,
+	RTE_TRACE_POINT_ARGS(const char *name),
+	rte_trace_point_emit_string(name);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_timer_adapter_caps_get,
+	RTE_TRACE_POINT_ARGS(const char *name, uint8_t dev_id, int socket_id),
+	rte_trace_point_emit_string(name);
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_int(socket_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_timer_adapter_get_info,
+	RTE_TRACE_POINT_ARGS(const struct rte_event_timer_adapter *adapter,
+		const struct rte_event_timer_adapter_info *adapter_info),
+	rte_trace_point_emit_ptr(adapter);
+	rte_trace_point_emit_u8(adapter->data->id);
+	rte_trace_point_emit_u8(adapter->data->event_dev_id);
+	rte_trace_point_emit_u32(adapter->data->socket_id);
+	rte_trace_point_emit_ptr(adapter_info);
+	rte_trace_point_emit_u64(adapter_info->min_resolution_ns);
+	rte_trace_point_emit_u64(adapter_info->max_tmo_ns);
+	rte_trace_point_emit_u32(adapter_info->caps);
+	rte_trace_point_emit_u16(adapter_info->event_dev_port_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_timer_adapter_lookup,
+	RTE_TRACE_POINT_ARGS(uint16_t adapter_id, const void *adapter),
+	rte_trace_point_emit_u16(adapter_id);
+	rte_trace_point_emit_ptr(adapter);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_timer_adapter_service_id_get,
+	RTE_TRACE_POINT_ARGS(const struct rte_event_timer_adapter *adapter,
+		uint32_t service_id),
+	rte_trace_point_emit_ptr(adapter);
+	rte_trace_point_emit_u32(service_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_vector_pool_create,
+	RTE_TRACE_POINT_ARGS(const void *mp, const char *name, int socket_id,
+		uint32_t size, uint32_t cache_size, uint32_t elt_size),
+	rte_trace_point_emit_ptr(mp);
+	rte_trace_point_emit_string(name);
+	rte_trace_point_emit_int(socket_id);
+	rte_trace_point_emit_u32(size);
+	rte_trace_point_emit_u32(cache_size);
+	rte_trace_point_emit_u32(elt_size);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_rx_adapter_queue_conf_get,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint16_t eth_dev_id,
+		uint16_t rx_queue_id, const void *queue_conf),
+	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_u16(eth_dev_id);
+	rte_trace_point_emit_u16(rx_queue_id);
+	rte_trace_point_emit_ptr(queue_conf);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_queue_attr_set,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint8_t queue_id, uint32_t attr_id,
+		uint32_t attr_value),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_u8(queue_id);
+	rte_trace_point_emit_u32(attr_id);
+	rte_trace_point_emit_u32(attr_value);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_port_quiesce,
+	RTE_TRACE_POINT_ARGS(const struct rte_eventdev *dev, uint8_t port_id),
+	rte_trace_point_emit_ptr(dev);
+	rte_trace_point_emit_string(dev->data->name);
+	rte_trace_point_emit_u8(dev->data->dev_id);
+	rte_trace_point_emit_int(dev->data->socket_id);
+	rte_trace_point_emit_u8(port_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_crypto_adapter_caps_get,
+	RTE_TRACE_POINT_ARGS(const struct rte_eventdev *dev,
+		const struct rte_cryptodev *cdev),
+	rte_trace_point_emit_ptr(dev);
+	rte_trace_point_emit_string(dev->data->name);
+	rte_trace_point_emit_u8(dev->data->dev_id);
+	rte_trace_point_emit_int(dev->data->socket_id);
+	rte_trace_point_emit_ptr(cdev);
+	rte_trace_point_emit_string(cdev->data->name);
+	rte_trace_point_emit_u8(cdev->data->dev_id);
+	rte_trace_point_emit_u8(cdev->data->socket_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_dequeue_timeout_ticks,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint64_t ns,
+		const void *timeout_ticks),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_u64(ns);
+	rte_trace_point_emit_ptr(timeout_ticks);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_crypto_adapter_stats_get,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, const void *stats,
+		uint64_t event_poll_count, uint64_t event_deq_count,
+		uint64_t crypto_enq_count, uint64_t crypto_enq_fail,
+		uint64_t crypto_deq_count, uint64_t event_enq_count,
+		uint64_t event_enq_retry_count, uint64_t event_enq_fail_count),
+	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_ptr(stats);
+	rte_trace_point_emit_u64(event_poll_count);
+	rte_trace_point_emit_u64(event_deq_count);
+	rte_trace_point_emit_u64(crypto_enq_count);
+	rte_trace_point_emit_u64(crypto_enq_fail);
+	rte_trace_point_emit_u64(crypto_deq_count);
+	rte_trace_point_emit_u64(event_enq_count);
+	rte_trace_point_emit_u64(event_enq_retry_count);
+	rte_trace_point_emit_u64(event_enq_fail_count);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_crypto_adapter_stats_reset,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id),
+	rte_trace_point_emit_u8(adptr_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_rx_adapter_stats_get,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, const void *stats),
+	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_ptr(stats);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_crypto_adapter_vector_limits_get,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint16_t cdev_id,
+		const void *limits),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_u16(cdev_id);
+	rte_trace_point_emit_ptr(limits);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_rx_adapter_queue_stats_get,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint16_t eth_dev_id,
+		uint16_t rx_queue_id, const void *stats),
+	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_u16(eth_dev_id);
+	rte_trace_point_emit_u16(rx_queue_id);
+	rte_trace_point_emit_ptr(stats);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_rx_adapter_stats_reset,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id),
+	rte_trace_point_emit_u8(adptr_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_rx_adapter_queue_stats_reset,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint16_t eth_dev_id,
+		uint16_t rx_queue_id),
+	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_u16(eth_dev_id);
+	rte_trace_point_emit_u16(rx_queue_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_rx_adapter_instance_get,
+	RTE_TRACE_POINT_ARGS(uint16_t eth_dev_id, uint16_t rx_queue_id,
+		uint8_t rxa_inst_id),
+	rte_trace_point_emit_u16(eth_dev_id);
+	rte_trace_point_emit_u16(rx_queue_id);
+	rte_trace_point_emit_u8(rxa_inst_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_tx_adapter_stats_get,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint64_t tx_retry,
+		uint64_t tx_packets, uint64_t tx_dropped, int ret),
+	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_u64(tx_retry);
+	rte_trace_point_emit_u64(tx_packets);
+	rte_trace_point_emit_u64(tx_dropped);
+	rte_trace_point_emit_int(ret);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_tx_adapter_stats_reset,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, int ret),
+	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_int(ret);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_tx_adapter_instance_get,
+	RTE_TRACE_POINT_ARGS(uint16_t eth_dev_id, uint16_t tx_queue_id,
+		uint8_t txa_inst_id),
+	rte_trace_point_emit_u16(eth_dev_id);
+	rte_trace_point_emit_u16(tx_queue_id);
+	rte_trace_point_emit_u8(txa_inst_id);
+)
+
+
 #ifdef __cplusplus
 }
 #endif
diff --git a/lib/eventdev/eventdev_trace_points.c b/lib/eventdev/eventdev_trace_points.c
index de6b1f4417..a26a267d20 100644
--- a/lib/eventdev/eventdev_trace_points.c
+++ b/lib/eventdev/eventdev_trace_points.c
@@ -124,3 +124,153 @@ RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_stop,
 
 RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_enqueue,
 	lib.eventdev.crypto.enq)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_event_port_get,
+	lib.eventdev.crypto.adapter_event_port_get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_service_id_get,
+	lib.eventdev.crypto.adapter_service_id_get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_vector_limits_get,
+	lib.eventdev.crypto.adapter_vector_limits_get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_attr_get,
+	lib.eventdev.attr_get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_dump,
+	lib.eventdev.dump)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_get_dev_id,
+	lib.eventdev.get_dev_id)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_info_get,
+	lib.eventdev.info_get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_selftest,
+	lib.eventdev.selftest)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_service_id_get,
+	lib.eventdev.service_id_get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_socket_id,
+	lib.eventdev.socket.id)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_stop_flush_callback_register,
+	lib.eventdev.stop.flush.callback.register)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_caps_get,
+	lib.eventdev.eth.rx.adapter.caps.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_cb_register,
+	lib.eventdev.eth.rx.adapter.cb.register)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_service_id_get,
+	lib.eventdev.eth.rx.adapter.service.id.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_event_port_get,
+	lib.eventdev.eth.rx.adapter.event.port.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_vector_limits_get,
+	lib.eventdev.eth.rx.adapter.vector.limits.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_queue_stats_get,
+	lib.eventdev.eth.rx.adapter.queue.stats.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_stats_reset,
+	lib.eventdev.eth.rx.adapter.stats.reset)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_queue_stats_reset,
+	lib.eventdev.eth.rx.adapter.queue.stats.reset)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_instance_get,
+	lib.eventdev.eth.rx.adapter.instance.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_caps_get,
+	lib.eventdev.eth.tx.adapter.caps.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_event_port_get,
+	lib.eventdev.eth.tx.adapter.event.port.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_service_id_get,
+	lib.eventdev.eth.tx.adapter.service.id.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_stats_get,
+	lib.eventdev.eth.tx.adapter.stats.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_stats_reset,
+	lib.eventdev.eth.tx.adapter.stats.reset)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_instance_get,
+	lib.eventdev.eth.tx.adapter.instance.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_port_attr_get,
+	lib.eventdev.port.attr.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_port_default_conf_get,
+	lib.eventdev.port.default.conf.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_port_links_get,
+	lib.eventdev.port.links.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_port_unlinks_in_progress,
+	lib.eventdev.port.unlinks.in.progress)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_queue_attr_get,
+	lib.eventdev.queue.attr.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_queue_default_conf_get,
+	lib.eventdev.queue.default.conf.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_ring_create,
+	lib.eventdev.ring.create)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_ring_free,
+	lib.eventdev.ring.free)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_ring_init,
+	lib.eventdev.ring.init)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_ring_lookup,
+	lib.eventdev.ring.lookup)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_adapter_caps_get,
+	lib.eventdev.timer.adapter.caps.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_adapter_get_info,
+	lib.eventdev.timer.adapter.get.info)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_adapter_lookup,
+	lib.eventdev.timer.adapter.lookup)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_adapter_service_id_get,
+	lib.eventdev.timer.adapter.service.id.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_vector_pool_create,
+	lib.eventdev.vector.pool.create)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_create_with_params,
+	lib.eventdev.eth.rx.adapter.create.with.params)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_queue_conf_get,
+	lib.eventdev.eth.rx.adapter.queue.conf.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_queue_attr_set,
+	lib.eventdev.queue.attr.set)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_port_quiesce,
+	lib.eventdev.port.quiesce)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_caps_get,
+	lib.eventdev.crypto.adapter.caps.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_dequeue_timeout_ticks,
+	lib.eventdev.dequeue.timeout.ticks)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_stats_get,
+	lib.eventdev.crypto.adapter.stats.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_stats_reset,
+	lib.eventdev.crypto.adapter.stats.reset)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_stats_get,
+	lib.eventdev.rx.adapter.stats.get)
diff --git a/lib/eventdev/rte_event_crypto_adapter.c b/lib/eventdev/rte_event_crypto_adapter.c
index bb782208f0..7f0a25a4cc 100644
--- a/lib/eventdev/rte_event_crypto_adapter.c
+++ b/lib/eventdev/rte_event_crypto_adapter.c
@@ -386,8 +386,6 @@ rte_event_crypto_adapter_create_ext(uint8_t id, uint8_t dev_id,
 
 	event_crypto_adapter[id] = adapter;
 
-	rte_eventdev_trace_crypto_adapter_create(id, dev_id, adapter, conf_arg,
-		mode);
 	return 0;
 }
 
@@ -415,6 +413,8 @@ rte_event_crypto_adapter_create(uint8_t id, uint8_t dev_id,
 	if (ret)
 		rte_free(pc);
 
+	rte_eventdev_trace_crypto_adapter_create(id, dev_id, port_config, mode,	ret);
+
 	return ret;
 }
 
@@ -1293,6 +1293,12 @@ rte_event_crypto_adapter_stats_get(uint8_t id,
 	stats->crypto_deq_count += dev_stats_sum.crypto_deq_count;
 	stats->event_enq_count += dev_stats_sum.event_enq_count;
 
+	rte_eventdev_trace_crypto_adapter_stats_get(id, stats,
+		stats->event_poll_count, stats->event_deq_count,
+		stats->crypto_enq_count, stats->crypto_enq_fail,
+		stats->crypto_deq_count, stats->event_enq_count,
+		stats->event_enq_retry_count, stats->event_enq_fail_count);
+
 	return 0;
 }
 
@@ -1304,6 +1310,8 @@ rte_event_crypto_adapter_stats_reset(uint8_t id)
 	struct rte_eventdev *dev;
 	uint32_t i;
 
+	rte_eventdev_trace_crypto_adapter_stats_reset(id);
+
 	if (eca_memzone_lookup())
 		return -ENOMEM;
 
@@ -1341,6 +1349,8 @@ rte_event_crypto_adapter_service_id_get(uint8_t id, uint32_t *service_id)
 	if (adapter->service_inited)
 		*service_id = adapter->service_id;
 
+	rte_eventdev_trace_crypto_adapter_service_id_get(id, *service_id);
+
 	return adapter->service_inited ? 0 : -ESRCH;
 }
 
@@ -1357,6 +1367,8 @@ rte_event_crypto_adapter_event_port_get(uint8_t id, uint8_t *event_port_id)
 
 	*event_port_id = adapter->event_port_id;
 
+	rte_eventdev_trace_crypto_adapter_event_port_get(id, *event_port_id);
+
 	return 0;
 }
 
@@ -1370,6 +1382,8 @@ rte_event_crypto_adapter_vector_limits_get(
 	uint32_t cap;
 	int ret;
 
+	rte_eventdev_trace_crypto_adapter_vector_limits_get(dev_id, cdev_id, limits);
+
 	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
 
 	if (!rte_cryptodev_is_valid_dev(cdev_id)) {
diff --git a/lib/eventdev/rte_event_eth_rx_adapter.c b/lib/eventdev/rte_event_eth_rx_adapter.c
index 34aa87379e..91bbba715b 100644
--- a/lib/eventdev/rte_event_eth_rx_adapter.c
+++ b/lib/eventdev/rte_event_eth_rx_adapter.c
@@ -2541,6 +2541,9 @@ rte_event_eth_rx_adapter_create_with_params(uint8_t id, uint8_t dev_id,
 	if (ret)
 		rte_free(pc);
 
+	rte_eventdev_trace_eth_rx_adapter_create_with_params(id, dev_id,
+		port_config, rxa_params, ret);
+
 	return ret;
 }
 
@@ -2929,6 +2932,9 @@ rte_event_eth_rx_adapter_vector_limits_get(
 		ret = rxa_sw_vector_limits(limits);
 	}
 
+	rte_eventdev_trace_eth_rx_adapter_vector_limits_get(dev_id, eth_port_id,
+		limits->min_sz, limits->max_sz, limits->log2_sz,
+		limits->min_timeout_ns, limits->max_timeout_ns, ret);
 	return ret;
 }
 
@@ -2970,6 +2976,8 @@ rte_event_eth_rx_adapter_stats_get(uint8_t id,
 	uint32_t i, j;
 	int ret;
 
+	rte_eventdev_trace_eth_rx_adapter_stats_get(id, stats);
+
 	if (rxa_memzone_lookup())
 		return -ENOMEM;
 
@@ -3041,6 +3049,9 @@ rte_event_eth_rx_adapter_queue_stats_get(uint8_t id,
 	struct rte_event_eth_rx_adapter_stats *q_stats;
 	struct rte_eventdev *dev;
 
+	rte_eventdev_trace_eth_rx_adapter_queue_stats_get(id, eth_dev_id,
+							  rx_queue_id, stats);
+
 	if (rxa_memzone_lookup())
 		return -ENOMEM;
 
@@ -3098,6 +3109,8 @@ rte_event_eth_rx_adapter_stats_reset(uint8_t id)
 	struct eth_rx_queue_info *queue_info;
 	uint32_t i, j;
 
+	rte_eventdev_trace_eth_rx_adapter_stats_reset(id);
+
 	if (rxa_memzone_lookup())
 		return -ENOMEM;
 
@@ -3145,6 +3158,9 @@ rte_event_eth_rx_adapter_queue_stats_reset(uint8_t id,
 	struct eth_rx_queue_info *queue_info;
 	struct rte_eventdev *dev;
 
+	rte_eventdev_trace_eth_rx_adapter_queue_stats_reset(id, eth_dev_id,
+							    rx_queue_id);
+
 	if (rxa_memzone_lookup())
 		return -ENOMEM;
 
@@ -3203,6 +3219,8 @@ rte_event_eth_rx_adapter_service_id_get(uint8_t id, uint32_t *service_id)
 	if (rx_adapter->service_inited)
 		*service_id = rx_adapter->service_id;
 
+	rte_eventdev_trace_eth_rx_adapter_service_id_get(id, *service_id);
+
 	return rx_adapter->service_inited ? 0 : -ESRCH;
 }
 
@@ -3223,6 +3241,8 @@ rte_event_eth_rx_adapter_event_port_get(uint8_t id, uint8_t *event_port_id)
 	if (rx_adapter->service_inited)
 		*event_port_id = rx_adapter->event_port_id;
 
+	rte_eventdev_trace_eth_rx_adapter_event_port_get(id, *event_port_id);
+
 	return rx_adapter->service_inited ? 0 : -ESRCH;
 }
 
@@ -3237,6 +3257,9 @@ rte_event_eth_rx_adapter_cb_register(uint8_t id,
 	uint32_t cap;
 	int ret;
 
+	rte_eventdev_trace_eth_rx_adapter_cb_register(id, eth_dev_id, cb_fn,
+						      cb_arg);
+
 	RTE_EVENT_ETH_RX_ADAPTER_ID_VALID_OR_ERR_RET(id, -EINVAL);
 	RTE_ETH_VALID_PORTID_OR_ERR_RET(eth_dev_id, -EINVAL);
 
@@ -3284,6 +3307,9 @@ rte_event_eth_rx_adapter_queue_conf_get(uint8_t id,
 	struct eth_rx_queue_info *queue_info;
 	int ret;
 
+	rte_eventdev_trace_eth_rx_adapter_queue_conf_get(id, eth_dev_id,
+							 rx_queue_id, queue_conf);
+
 	if (rxa_memzone_lookup())
 		return -ENOMEM;
 
@@ -3429,8 +3455,11 @@ rte_event_eth_rx_adapter_instance_get(uint16_t eth_dev_id,
 		}
 
 		/* return if entry found */
-		if (ret == 0)
+		if (ret == 0) {
+			rte_eventdev_trace_eth_rx_adapter_instance_get(eth_dev_id, rx_queue_id,
+								       *rxa_inst_id);
 			return ret;
+		}
 	}
 
 	return -EINVAL;
diff --git a/lib/eventdev/rte_event_eth_tx_adapter.c b/lib/eventdev/rte_event_eth_tx_adapter.c
index 6e9bcb1b79..29580d9c94 100644
--- a/lib/eventdev/rte_event_eth_tx_adapter.c
+++ b/lib/eventdev/rte_event_eth_tx_adapter.c
@@ -995,6 +995,8 @@ txa_service_id_get(uint8_t id, uint32_t *service_id)
 		return -EINVAL;
 
 	*service_id = txa->service_id;
+
+	rte_eventdev_trace_eth_tx_adapter_service_id_get(id, *service_id);
 	return 0;
 }
 
@@ -1123,6 +1125,8 @@ rte_event_eth_tx_adapter_create_ext(uint8_t id, uint8_t dev_id,
 int
 rte_event_eth_tx_adapter_event_port_get(uint8_t id, uint8_t *event_port_id)
 {
+	rte_eventdev_trace_eth_tx_adapter_event_port_get(id);
+
 	TXA_CHECK_OR_ERR_RET(id);
 
 	return txa_service_event_port_get(id, event_port_id);
@@ -1264,6 +1268,9 @@ rte_event_eth_tx_adapter_stats_get(uint8_t id,
 			ret = txa_service_stats_get(id, stats);
 	}
 
+	rte_eventdev_trace_eth_tx_adapter_stats_get(id, stats->tx_retry, stats->tx_packets,
+						    stats->tx_dropped, ret);
+
 	return ret;
 }
 
@@ -1278,6 +1285,9 @@ rte_event_eth_tx_adapter_stats_reset(uint8_t id)
 		txa_dev_stats_reset(id)(id, txa_evdev(id)) : 0;
 	if (ret == 0)
 		ret = txa_service_stats_reset(id);
+
+	rte_eventdev_trace_eth_tx_adapter_stats_reset(id, ret);
+
 	return ret;
 }
 
@@ -1341,8 +1351,11 @@ rte_event_eth_tx_adapter_instance_get(uint16_t eth_dev_id,
 								 tx_queue_id,
 								 txa_inst_id)
 							: -EINVAL;
-			if (ret == 0)
+			if (ret == 0) {
+				rte_eventdev_trace_eth_tx_adapter_instance_get(eth_dev_id,
+								tx_queue_id, *txa_inst_id);
 				return ret;
+			}
 		} else {
 			struct rte_eth_dev *eth_dev;
 
@@ -1351,6 +1364,8 @@ rte_event_eth_tx_adapter_instance_get(uint16_t eth_dev_id,
 			if (txa_service_is_queue_added(txa, eth_dev,
 						       tx_queue_id)) {
 				*txa_inst_id = txa->id;
+				rte_eventdev_trace_eth_tx_adapter_instance_get(eth_dev_id,
+								tx_queue_id, *txa_inst_id);
 				return 0;
 			}
 		}
diff --git a/lib/eventdev/rte_event_ring.c b/lib/eventdev/rte_event_ring.c
index c070715148..b965970cf9 100644
--- a/lib/eventdev/rte_event_ring.c
+++ b/lib/eventdev/rte_event_ring.c
@@ -5,6 +5,7 @@
 
 
 #include "rte_event_ring.h"
+#include "eventdev_trace.h"
 
 int
 rte_event_ring_init(struct rte_event_ring *r, const char *name,
@@ -14,6 +15,8 @@ rte_event_ring_init(struct rte_event_ring *r, const char *name,
 	RTE_BUILD_BUG_ON((sizeof(struct rte_event_ring) &
 			  RTE_CACHE_LINE_MASK) != 0);
 
+	rte_eventdev_trace_ring_init(r, name, count, flags);
+
 	/* init the ring structure */
 	return rte_ring_init(&r->r, name, count, flags);
 }
@@ -23,6 +26,8 @@ struct rte_event_ring *
 rte_event_ring_create(const char *name, unsigned int count, int socket_id,
 		unsigned int flags)
 {
+	rte_eventdev_trace_ring_create(name, count, socket_id, flags);
+
 	return (struct rte_event_ring *)rte_ring_create_elem(name,
 						sizeof(struct rte_event),
 						count, socket_id, flags);
@@ -32,6 +37,8 @@ rte_event_ring_create(const char *name, unsigned int count, int socket_id,
 struct rte_event_ring *
 rte_event_ring_lookup(const char *name)
 {
+	rte_eventdev_trace_ring_lookup(name);
+
 	return (struct rte_event_ring *)rte_ring_lookup(name);
 }
 
@@ -39,5 +46,7 @@ rte_event_ring_lookup(const char *name)
 void
 rte_event_ring_free(struct rte_event_ring *r)
 {
+	rte_eventdev_trace_ring_free(r->r.name);
+
 	rte_ring_free((struct rte_ring *)r);
 }
diff --git a/lib/eventdev/rte_event_timer_adapter.c b/lib/eventdev/rte_event_timer_adapter.c
index d357f7403a..2a86c7bd25 100644
--- a/lib/eventdev/rte_event_timer_adapter.c
+++ b/lib/eventdev/rte_event_timer_adapter.c
@@ -275,6 +275,8 @@ rte_event_timer_adapter_get_info(const struct rte_event_timer_adapter *adapter,
 	adapter_info->event_dev_port_id = adapter->data->event_port_id;
 	adapter_info->caps = adapter->data->caps;
 
+	rte_eventdev_trace_timer_adapter_get_info(adapter, adapter_info);
+
 	return 0;
 }
 
@@ -386,6 +388,8 @@ rte_event_timer_adapter_lookup(uint16_t adapter_id)
 
 	adapter->allocated = 1;
 
+	rte_eventdev_trace_timer_adapter_lookup(adapter_id, adapter);
+
 	return adapter;
 }
 
@@ -436,9 +440,14 @@ rte_event_timer_adapter_service_id_get(struct rte_event_timer_adapter *adapter,
 {
 	ADAPTER_VALID_OR_ERR_RET(adapter, -EINVAL);
 
+	if (service_id == NULL)
+		return -EINVAL;
+
 	if (adapter->data->service_inited && service_id != NULL)
 		*service_id = adapter->data->service_id;
 
+	rte_eventdev_trace_timer_adapter_service_id_get(adapter, *service_id);
+
 	return adapter->data->service_inited ? 0 : -ESRCH;
 }
 
diff --git a/lib/eventdev/rte_eventdev.c b/lib/eventdev/rte_eventdev.c
index b0414206d9..8e146a9bc0 100644
--- a/lib/eventdev/rte_eventdev.c
+++ b/lib/eventdev/rte_eventdev.c
@@ -62,8 +62,10 @@ rte_event_dev_get_dev_id(const char *name)
 				rte_event_devices[i].dev->driver->name, name,
 					 RTE_EVENTDEV_NAME_MAX_LEN) == 0) : 0);
 		if (cmp && (rte_event_devices[i].attached ==
-					RTE_EVENTDEV_ATTACHED))
+					RTE_EVENTDEV_ATTACHED)) {
+			rte_eventdev_trace_get_dev_id(name, i);
 			return i;
+		}
 	}
 	return -ENODEV;
 }
@@ -76,6 +78,9 @@ rte_event_dev_socket_id(uint8_t dev_id)
 	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
 	dev = &rte_eventdevs[dev_id];
 
+	rte_eventdev_trace_socket_id(dev->data->name, dev->data->dev_id,
+		dev->data->socket_id);
+
 	return dev->data->socket_id;
 }
 
@@ -99,6 +104,10 @@ rte_event_dev_info_get(uint8_t dev_id, struct rte_event_dev_info *dev_info)
 	dev_info->dequeue_timeout_ns = dev->data->dev_conf.dequeue_timeout_ns;
 
 	dev_info->dev = dev->dev;
+
+	rte_eventdev_trace_info_get(dev->data->name, dev->data->dev_id,
+		dev->data->socket_id, dev->dev->name, dev_info->driver_name);
+
 	return 0;
 }
 
@@ -121,6 +130,9 @@ rte_event_eth_rx_adapter_caps_get(uint8_t dev_id, uint16_t eth_port_id,
 	else
 		*caps = 0;
 
+	rte_eventdev_trace_eth_rx_adapter_caps_get(dev->data->name,
+		dev->data->dev_id, dev->data->socket_id, eth_port_id);
+
 	return dev->dev_ops->eth_rx_adapter_caps_get ?
 				(*dev->dev_ops->eth_rx_adapter_caps_get)(dev,
 						&rte_eth_devices[eth_port_id],
@@ -146,6 +158,9 @@ rte_event_timer_adapter_caps_get(uint8_t dev_id, uint32_t *caps)
 	else
 		*caps = 0;
 
+	rte_eventdev_trace_timer_adapter_caps_get(dev->data->name,
+		dev->data->dev_id, dev->data->socket_id);
+
 	return dev->dev_ops->timer_adapter_caps_get ?
 				(*dev->dev_ops->timer_adapter_caps_get)(dev,
 									0,
@@ -176,6 +191,8 @@ rte_event_crypto_adapter_caps_get(uint8_t dev_id, uint8_t cdev_id,
 	else
 		*caps = 0;
 
+	rte_eventdev_trace_crypto_adapter_caps_get(dev, cdev);
+
 	return dev->dev_ops->crypto_adapter_caps_get ?
 		(*dev->dev_ops->crypto_adapter_caps_get)
 		(dev, cdev, caps) : 0;
@@ -202,6 +219,8 @@ rte_event_eth_tx_adapter_caps_get(uint8_t dev_id, uint16_t eth_port_id,
 	else
 		*caps = 0;
 
+	rte_eventdev_trace_eth_tx_adapter_caps_get(dev, eth_dev, eth_port_id);
+
 	return dev->dev_ops->eth_tx_adapter_caps_get ?
 			(*dev->dev_ops->eth_tx_adapter_caps_get)(dev,
 								eth_dev,
@@ -524,6 +543,9 @@ rte_event_queue_default_conf_get(uint8_t dev_id, uint8_t queue_id,
 		return -ENOTSUP;
 	memset(queue_conf, 0, sizeof(struct rte_event_queue_conf));
 	(*dev->dev_ops->queue_def_conf)(dev, queue_id, queue_conf);
+
+	rte_eventdev_trace_queue_default_conf_get(dev, queue_id, queue_conf);
+
 	return 0;
 }
 
@@ -652,6 +674,9 @@ rte_event_port_default_conf_get(uint8_t dev_id, uint8_t port_id,
 		return -ENOTSUP;
 	memset(port_conf, 0, sizeof(struct rte_event_port_conf));
 	(*dev->dev_ops->port_def_conf)(dev, port_id, port_conf);
+
+	rte_eventdev_trace_port_default_conf_get(dev, port_id, port_conf);
+
 	return 0;
 }
 
@@ -759,6 +784,8 @@ rte_event_port_quiesce(uint8_t dev_id, uint8_t port_id,
 		return;
 	}
 
+	rte_eventdev_trace_port_quiesce(dev, port_id);
+
 	if (dev->dev_ops->port_quiesce)
 		(*dev->dev_ops->port_quiesce)(dev, dev->data->ports[port_id],
 					      release_cb, args);
@@ -789,6 +816,8 @@ rte_event_dev_attr_get(uint8_t dev_id, uint32_t attr_id,
 		return -EINVAL;
 	}
 
+	rte_eventdev_trace_attr_get(dev, attr_id, *attr_value);
+
 	return 0;
 }
 
@@ -829,6 +858,9 @@ rte_event_port_attr_get(uint8_t dev_id, uint8_t port_id, uint32_t attr_id,
 	default:
 		return -EINVAL;
 	};
+
+	rte_eventdev_trace_port_attr_get(dev, port_id, attr_id, *attr_value);
+
 	return 0;
 }
 
@@ -851,6 +883,8 @@ rte_event_queue_attr_get(uint8_t dev_id, uint8_t queue_id, uint32_t attr_id,
 
 	conf = &dev->data->queues_cfg[queue_id];
 
+	rte_eventdev_trace_queue_attr_get(dev, conf, queue_id, attr_id);
+
 	switch (attr_id) {
 	case RTE_EVENT_QUEUE_ATTR_PRIORITY:
 		*attr_value = RTE_EVENT_DEV_PRIORITY_NORMAL;
@@ -894,6 +928,8 @@ rte_event_queue_attr_set(uint8_t dev_id, uint8_t queue_id, uint32_t attr_id,
 {
 	struct rte_eventdev *dev;
 
+	rte_eventdev_trace_queue_attr_set(dev_id, queue_id, attr_id, attr_value);
+
 	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
 	dev = &rte_eventdevs[dev_id];
 	if (!is_valid_queue(dev, queue_id)) {
@@ -1048,6 +1084,8 @@ rte_event_port_unlinks_in_progress(uint8_t dev_id, uint8_t port_id)
 {
 	struct rte_eventdev *dev;
 
+	rte_eventdev_trace_port_unlinks_in_progress(dev_id, port_id);
+
 	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
 	dev = &rte_eventdevs[dev_id];
 	if (!is_valid_port(dev, port_id)) {
@@ -1091,6 +1129,9 @@ rte_event_port_links_get(uint8_t dev_id, uint8_t port_id,
 			++count;
 		}
 	}
+
+	rte_eventdev_trace_port_links_get(dev_id, port_id, count);
+
 	return count;
 }
 
@@ -1100,6 +1141,8 @@ rte_event_dequeue_timeout_ticks(uint8_t dev_id, uint64_t ns,
 {
 	struct rte_eventdev *dev;
 
+	rte_eventdev_trace_dequeue_timeout_ticks(dev_id, ns, timeout_ticks);
+
 	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
 	dev = &rte_eventdevs[dev_id];
 	if (*dev->dev_ops->timeout_ticks == NULL)
@@ -1125,6 +1168,8 @@ rte_event_dev_service_id_get(uint8_t dev_id, uint32_t *service_id)
 	if (dev->data->service_inited)
 		*service_id = dev->data->service_id;
 
+	rte_eventdev_trace_service_id_get(dev_id, *service_id);
+
 	return dev->data->service_inited ? 0 : -ESRCH;
 }
 
@@ -1285,6 +1330,9 @@ rte_event_vector_pool_create(const char *name, unsigned int n,
 	if (ret < 0)
 		goto err;
 
+	rte_eventdev_trace_vector_pool_create(mp, mp->name, mp->socket_id,
+		mp->size, mp->cache_size, mp->elt_size);
+
 	return mp;
 err:
 	rte_mempool_free(mp);
@@ -1332,6 +1380,8 @@ rte_event_dev_stop_flush_callback_register(uint8_t dev_id,
 
 	RTE_EDEV_LOG_DEBUG("Stop flush register dev_id=%" PRIu8, dev_id);
 
+	rte_eventdev_trace_stop_flush_callback_register(dev_id, callback, userdata);
+
 	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
 	dev = &rte_eventdevs[dev_id];
 
-- 
2.25.1


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [PATCH v4] eventdev: add trace points
  2023-01-30 17:30   ` [PATCH v3] " Amit Prakash Shukla
@ 2023-01-31 13:30     ` Amit Prakash Shukla
  2023-01-31 13:44       ` [PATCH v5] " Amit Prakash Shukla
  0 siblings, 1 reply; 14+ messages in thread
From: Amit Prakash Shukla @ 2023-01-31 13:30 UTC (permalink / raw)
  To: Jerin Jacob, Abhinandan Gujjar, Naga Harish K S V, Erik Gabriel Carrillo
  Cc: dev, Amit Prakash Shukla

Add trace points for eventdev functions.

Signed-off-by: Amit Prakash Shukla <amitprakashs@marvell.com>
---
v2:
 - Fixed CI test failure
 - Code review suggestion from Abhinandan

v3:
 - Removed trace symbols from version.map
 
v4:
 - Fixed CI test failure
 - Cleaned-up unwanted includes and trace functions
 - Added traces to pending functions

 lib/eventdev/eventdev_trace.h           | 495 +++++++++++++++++++++++-
 lib/eventdev/eventdev_trace_points.c    | 159 ++++++++
 lib/eventdev/rte_event_crypto_adapter.c |  18 +-
 lib/eventdev/rte_event_eth_rx_adapter.c |  31 +-
 lib/eventdev/rte_event_eth_tx_adapter.c |  21 +-
 lib/eventdev/rte_event_ring.c           |   9 +
 lib/eventdev/rte_event_timer_adapter.c  |  15 +
 lib/eventdev/rte_eventdev.c             |  49 ++-
 8 files changed, 784 insertions(+), 13 deletions(-)

diff --git a/lib/eventdev/eventdev_trace.h b/lib/eventdev/eventdev_trace.h
index d48cd58850..9dd6bbc8da 100644
--- a/lib/eventdev/eventdev_trace.h
+++ b/lib/eventdev/eventdev_trace.h
@@ -63,6 +63,7 @@ RTE_TRACE_POINT(
 	rte_trace_point_emit_u16(port_conf->enqueue_depth);
 	rte_trace_point_emit_u32(port_conf->event_port_cfg);
 	rte_trace_point_emit_int(rc);
+	rte_trace_point_emit_ptr(port_conf);
 )
 
 RTE_TRACE_POINT(
@@ -250,16 +251,17 @@ RTE_TRACE_POINT(
 
 RTE_TRACE_POINT(
 	rte_eventdev_trace_crypto_adapter_create,
-	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint8_t dev_id, void *adapter,
-		struct rte_event_port_conf *port_conf, uint8_t mode),
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint8_t dev_id,
+		struct rte_event_port_conf *port_config, int mode, int ret),
 	rte_trace_point_emit_u8(adptr_id);
 	rte_trace_point_emit_u8(dev_id);
-	rte_trace_point_emit_ptr(adapter);
-	rte_trace_point_emit_u8(mode);
-	rte_trace_point_emit_i32(port_conf->new_event_threshold);
-	rte_trace_point_emit_u16(port_conf->dequeue_depth);
-	rte_trace_point_emit_u16(port_conf->enqueue_depth);
-	rte_trace_point_emit_u32(port_conf->event_port_cfg);
+	rte_trace_point_emit_ptr(port_config);
+	rte_trace_point_emit_i32(port_config->new_event_threshold);
+	rte_trace_point_emit_u16(port_config->dequeue_depth);
+	rte_trace_point_emit_u16(port_config->enqueue_depth);
+	rte_trace_point_emit_u32(port_config->event_port_cfg);
+	rte_trace_point_emit_int(mode);
+	rte_trace_point_emit_int(ret);
 )
 
 RTE_TRACE_POINT(
@@ -303,6 +305,483 @@ RTE_TRACE_POINT(
 	rte_trace_point_emit_u8(adptr_id);
 )
 
+RTE_TRACE_POINT(
+	rte_eventdev_trace_crypto_adapter_event_port_get,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint8_t event_port_id),
+	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_u8(event_port_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_crypto_adapter_service_id_get,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint32_t service_id),
+	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_u32(service_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_attr_get,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *dev, uint32_t attr_id,
+		uint32_t attr_value),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_ptr(dev);
+	rte_trace_point_emit_u32(attr_id);
+	rte_trace_point_emit_u32(attr_value);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_get_dev_id,
+	RTE_TRACE_POINT_ARGS(const char *name, int dev_id),
+	rte_trace_point_emit_string(name);
+	rte_trace_point_emit_int(dev_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_info_get,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *dev_info, const void *dev),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_ptr(dev_info);
+	rte_trace_point_emit_ptr(dev);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_service_id_get,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint32_t service_id),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_u32(service_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_socket_id,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *dev, int socket_id),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_ptr(dev);
+	rte_trace_point_emit_int(socket_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_stop_flush_callback_register,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *callback, const void *userdata),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_ptr(callback);
+	rte_trace_point_emit_ptr(userdata);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_rx_adapter_caps_get,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint16_t eth_port_id),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_u16(eth_port_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_rx_adapter_cb_register,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint16_t eth_dev_id, const void *cb_fn,
+		const void *cb_arg),
+	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_u16(eth_dev_id);
+	rte_trace_point_emit_ptr(cb_fn);
+	rte_trace_point_emit_ptr(cb_arg);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_rx_adapter_create_with_params,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint8_t dev_id,
+		const struct rte_event_port_conf *port_config,
+		const struct rte_event_eth_rx_adapter_params *rxa_params,
+		int ret),
+	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_ptr(port_config);
+	rte_trace_point_emit_i32(port_config->new_event_threshold);
+	rte_trace_point_emit_u16(port_config->dequeue_depth);
+	rte_trace_point_emit_u16(port_config->enqueue_depth);
+	rte_trace_point_emit_u32(port_config->event_port_cfg);
+	rte_trace_point_emit_ptr(rxa_params);
+	rte_trace_point_emit_u16(rxa_params->event_buf_size);
+	rte_trace_point_emit_int(ret);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_rx_adapter_service_id_get,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint32_t service_id),
+	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_u32(service_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_rx_adapter_event_port_get,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint8_t event_port_id),
+	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_u8(event_port_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_rx_adapter_vector_limits_get,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint16_t eth_port_id,
+		uint16_t min_sz, uint16_t max_sz, uint8_t log2_sz,
+		uint64_t min_timeout_ns, uint64_t max_timeout_ns, int ret),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_u16(eth_port_id);
+	rte_trace_point_emit_u16(min_sz);
+	rte_trace_point_emit_u16(max_sz);
+	rte_trace_point_emit_u8(log2_sz);
+	rte_trace_point_emit_u64(min_timeout_ns);
+	rte_trace_point_emit_u64(max_timeout_ns);
+	rte_trace_point_emit_int(ret);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_tx_adapter_caps_get,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *dev, uint16_t eth_port_id, 
+		const void *eth_dev),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_ptr(dev);
+	rte_trace_point_emit_u16(eth_port_id);
+	rte_trace_point_emit_ptr(eth_dev);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_tx_adapter_event_port_get,
+	RTE_TRACE_POINT_ARGS(uint8_t id),
+	rte_trace_point_emit_u8(id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_tx_adapter_service_id_get,
+	RTE_TRACE_POINT_ARGS(uint8_t id, uint32_t service_id),
+	rte_trace_point_emit_u8(id);
+	rte_trace_point_emit_u32(service_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_port_attr_get,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *dev, uint8_t port_id,
+		uint32_t attr_id, uint32_t attr_value),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_ptr(dev);
+	rte_trace_point_emit_u8(port_id);
+	rte_trace_point_emit_u32(attr_id);
+	rte_trace_point_emit_u32(attr_value);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_port_default_conf_get,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *dev, uint8_t port_id,
+		const struct rte_event_port_conf *port_conf),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_ptr(dev);
+	rte_trace_point_emit_u8(port_id);
+	rte_trace_point_emit_ptr(port_conf);
+	rte_trace_point_emit_i32(port_conf->new_event_threshold);
+	rte_trace_point_emit_u16(port_conf->dequeue_depth);
+	rte_trace_point_emit_u16(port_conf->enqueue_depth);
+	rte_trace_point_emit_u32(port_conf->event_port_cfg);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_port_links_get,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint8_t port_id, int count),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_u8(port_id);
+	rte_trace_point_emit_int(count);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_port_unlinks_in_progress,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint8_t port_id),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_u8(port_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_queue_attr_get,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *dev, uint8_t queue_id,
+		uint32_t attr_id, uint32_t attr_value),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_ptr(dev);
+	rte_trace_point_emit_u8(queue_id);
+	rte_trace_point_emit_u32(attr_id);
+	rte_trace_point_emit_u32(attr_value);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_queue_default_conf_get,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *dev, uint8_t queue_id,
+		const struct rte_event_queue_conf *queue_conf),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_ptr(dev);
+	rte_trace_point_emit_u8(queue_id);
+	rte_trace_point_emit_ptr(queue_conf);
+	rte_trace_point_emit_u32(queue_conf->nb_atomic_flows);
+	rte_trace_point_emit_u32(queue_conf->nb_atomic_order_sequences);
+	rte_trace_point_emit_u32(queue_conf->event_queue_cfg);
+	rte_trace_point_emit_u8(queue_conf->schedule_type);
+	rte_trace_point_emit_u8(queue_conf->priority);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_ring_create,
+	RTE_TRACE_POINT_ARGS(const char *name, unsigned int count,
+		int socket_id, unsigned int flags),
+	rte_trace_point_emit_string(name);
+	rte_trace_point_emit_u32(count);
+	rte_trace_point_emit_int(socket_id);
+	rte_trace_point_emit_u32(flags);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_ring_free,
+	RTE_TRACE_POINT_ARGS(const char *name),
+	rte_trace_point_emit_string(name);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_ring_init,
+	RTE_TRACE_POINT_ARGS(const void *r, const char *name,
+		unsigned int count, unsigned int flags),
+	rte_trace_point_emit_ptr(r);
+	rte_trace_point_emit_string(name);
+	rte_trace_point_emit_u32(count);
+	rte_trace_point_emit_u32(flags);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_ring_lookup,
+	RTE_TRACE_POINT_ARGS(const char *name),
+	rte_trace_point_emit_string(name);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_timer_adapter_caps_get,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id),
+	rte_trace_point_emit_u8(dev_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_timer_adapter_get_info,
+	RTE_TRACE_POINT_ARGS(const void *adapter,
+		const struct rte_event_timer_adapter_info *adapter_info),
+	rte_trace_point_emit_ptr(adapter);
+	rte_trace_point_emit_ptr(adapter_info);
+	rte_trace_point_emit_u64(adapter_info->min_resolution_ns);
+	rte_trace_point_emit_u64(adapter_info->max_tmo_ns);
+	rte_trace_point_emit_u32(adapter_info->caps);
+	rte_trace_point_emit_u16(adapter_info->event_dev_port_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_timer_adapter_lookup,
+	RTE_TRACE_POINT_ARGS(uint16_t adapter_id, const void *adapter),
+	rte_trace_point_emit_u16(adapter_id);
+	rte_trace_point_emit_ptr(adapter);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_timer_adapter_service_id_get,
+	RTE_TRACE_POINT_ARGS(const struct rte_event_timer_adapter *adapter,
+		uint32_t service_id),
+	rte_trace_point_emit_ptr(adapter);
+	rte_trace_point_emit_u32(service_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_vector_pool_create,
+	RTE_TRACE_POINT_ARGS(const void *mp, const char *name, int socket_id,
+		uint32_t size, uint32_t cache_size, uint32_t elt_size),
+	rte_trace_point_emit_ptr(mp);
+	rte_trace_point_emit_string(name);
+	rte_trace_point_emit_int(socket_id);
+	rte_trace_point_emit_u32(size);
+	rte_trace_point_emit_u32(cache_size);
+	rte_trace_point_emit_u32(elt_size);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_rx_adapter_queue_conf_get,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint16_t eth_dev_id,
+		uint16_t rx_queue_id, const void *queue_conf),
+	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_u16(eth_dev_id);
+	rte_trace_point_emit_u16(rx_queue_id);
+	rte_trace_point_emit_ptr(queue_conf);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_queue_attr_set,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint8_t queue_id, uint32_t attr_id,
+		uint32_t attr_value),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_u8(queue_id);
+	rte_trace_point_emit_u32(attr_id);
+	rte_trace_point_emit_u32(attr_value);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_port_quiesce,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *dev, uint8_t port_id, const void *args),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_ptr(dev);
+	rte_trace_point_emit_u8(port_id);
+	rte_trace_point_emit_ptr(args);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_crypto_adapter_caps_get,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *dev, uint8_t cdev_id,
+		const void *cdev),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_ptr(dev);
+	rte_trace_point_emit_u8(cdev_id);
+	rte_trace_point_emit_ptr(cdev);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_dequeue_timeout_ticks,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint64_t ns,
+		const void *timeout_ticks),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_u64(ns);
+	rte_trace_point_emit_ptr(timeout_ticks);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_crypto_adapter_stats_get,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, const void *stats,
+		uint64_t event_poll_count, uint64_t event_deq_count,
+		uint64_t crypto_enq_count, uint64_t crypto_enq_fail,
+		uint64_t crypto_deq_count, uint64_t event_enq_count,
+		uint64_t event_enq_retry_count, uint64_t event_enq_fail_count),
+	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_ptr(stats);
+	rte_trace_point_emit_u64(event_poll_count);
+	rte_trace_point_emit_u64(event_deq_count);
+	rte_trace_point_emit_u64(crypto_enq_count);
+	rte_trace_point_emit_u64(crypto_enq_fail);
+	rte_trace_point_emit_u64(crypto_deq_count);
+	rte_trace_point_emit_u64(event_enq_count);
+	rte_trace_point_emit_u64(event_enq_retry_count);
+	rte_trace_point_emit_u64(event_enq_fail_count);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_crypto_adapter_stats_reset,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id),
+	rte_trace_point_emit_u8(adptr_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_rx_adapter_stats_get,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, const void *stats),
+	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_ptr(stats);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_crypto_adapter_vector_limits_get,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint16_t cdev_id,
+		const void *limits),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_u16(cdev_id);
+	rte_trace_point_emit_ptr(limits);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_rx_adapter_queue_stats_get,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint16_t eth_dev_id,
+		uint16_t rx_queue_id, const void *stats),
+	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_u16(eth_dev_id);
+	rte_trace_point_emit_u16(rx_queue_id);
+	rte_trace_point_emit_ptr(stats);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_rx_adapter_stats_reset,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id),
+	rte_trace_point_emit_u8(adptr_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_rx_adapter_queue_stats_reset,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint16_t eth_dev_id,
+		uint16_t rx_queue_id),
+	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_u16(eth_dev_id);
+	rte_trace_point_emit_u16(rx_queue_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_rx_adapter_instance_get,
+	RTE_TRACE_POINT_ARGS(uint16_t eth_dev_id, uint16_t rx_queue_id,
+		uint8_t rxa_inst_id),
+	rte_trace_point_emit_u16(eth_dev_id);
+	rte_trace_point_emit_u16(rx_queue_id);
+	rte_trace_point_emit_u8(rxa_inst_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_tx_adapter_stats_get,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint64_t tx_retry,
+		uint64_t tx_packets, uint64_t tx_dropped, int ret),
+	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_u64(tx_retry);
+	rte_trace_point_emit_u64(tx_packets);
+	rte_trace_point_emit_u64(tx_dropped);
+	rte_trace_point_emit_int(ret);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_tx_adapter_stats_reset,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, int ret),
+	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_int(ret);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_tx_adapter_instance_get,
+	RTE_TRACE_POINT_ARGS(uint16_t eth_dev_id, uint16_t tx_queue_id,
+		uint8_t txa_inst_id),
+	rte_trace_point_emit_u16(eth_dev_id);
+	rte_trace_point_emit_u16(tx_queue_id);
+	rte_trace_point_emit_u8(txa_inst_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_tx_adapter_queue_start,
+	RTE_TRACE_POINT_ARGS(uint16_t eth_dev_id, uint16_t tx_queue_id),
+	rte_trace_point_emit_u16(eth_dev_id);
+	rte_trace_point_emit_u16(tx_queue_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_tx_adapter_queue_stop,
+	RTE_TRACE_POINT_ARGS(uint16_t eth_dev_id, uint16_t tx_queue_id),
+	rte_trace_point_emit_u16(eth_dev_id);
+	rte_trace_point_emit_u16(tx_queue_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_timer_adapter_stats_get,
+	RTE_TRACE_POINT_ARGS(const void *adapter, const void *stats),
+	rte_trace_point_emit_ptr(adapter);
+	rte_trace_point_emit_ptr(stats);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_timer_adapter_stats_reset,
+	RTE_TRACE_POINT_ARGS(const void *adapter),
+	rte_trace_point_emit_ptr(adapter);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_timer_remaining_ticks_get,
+	RTE_TRACE_POINT_ARGS(const void *adapter, const void *evtim, const void *ticks_remaining),
+	rte_trace_point_emit_ptr(adapter);
+	rte_trace_point_emit_ptr(evtim);
+	rte_trace_point_emit_ptr(ticks_remaining);
+)
+
 #ifdef __cplusplus
 }
 #endif
diff --git a/lib/eventdev/eventdev_trace_points.c b/lib/eventdev/eventdev_trace_points.c
index de6b1f4417..76144cfe75 100644
--- a/lib/eventdev/eventdev_trace_points.c
+++ b/lib/eventdev/eventdev_trace_points.c
@@ -124,3 +124,162 @@ RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_stop,
 
 RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_enqueue,
 	lib.eventdev.crypto.enq)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_event_port_get,
+	lib.eventdev.crypto.adapter_event_port_get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_service_id_get,
+	lib.eventdev.crypto.adapter_service_id_get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_vector_limits_get,
+	lib.eventdev.crypto.adapter_vector_limits_get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_attr_get,
+	lib.eventdev.attr_get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_get_dev_id,
+	lib.eventdev.get_dev_id)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_info_get,
+	lib.eventdev.info_get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_service_id_get,
+	lib.eventdev.service_id_get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_socket_id,
+	lib.eventdev.socket.id)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_stop_flush_callback_register,
+	lib.eventdev.stop.flush.callback.register)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_caps_get,
+	lib.eventdev.eth.rx.adapter.caps.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_cb_register,
+	lib.eventdev.eth.rx.adapter.cb.register)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_service_id_get,
+	lib.eventdev.eth.rx.adapter.service.id.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_event_port_get,
+	lib.eventdev.eth.rx.adapter.event.port.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_vector_limits_get,
+	lib.eventdev.eth.rx.adapter.vector.limits.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_queue_stats_get,
+	lib.eventdev.eth.rx.adapter.queue.stats.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_stats_reset,
+	lib.eventdev.eth.rx.adapter.stats.reset)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_queue_stats_reset,
+	lib.eventdev.eth.rx.adapter.queue.stats.reset)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_instance_get,
+	lib.eventdev.eth.rx.adapter.instance.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_caps_get,
+	lib.eventdev.eth.tx.adapter.caps.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_event_port_get,
+	lib.eventdev.eth.tx.adapter.event.port.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_service_id_get,
+	lib.eventdev.eth.tx.adapter.service.id.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_stats_get,
+	lib.eventdev.eth.tx.adapter.stats.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_stats_reset,
+	lib.eventdev.eth.tx.adapter.stats.reset)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_instance_get,
+	lib.eventdev.eth.tx.adapter.instance.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_port_attr_get,
+	lib.eventdev.port.attr.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_port_default_conf_get,
+	lib.eventdev.port.default.conf.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_port_links_get,
+	lib.eventdev.port.links.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_port_unlinks_in_progress,
+	lib.eventdev.port.unlinks.in.progress)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_queue_attr_get,
+	lib.eventdev.queue.attr.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_queue_default_conf_get,
+	lib.eventdev.queue.default.conf.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_ring_create,
+	lib.eventdev.ring.create)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_ring_free,
+	lib.eventdev.ring.free)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_ring_init,
+	lib.eventdev.ring.init)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_ring_lookup,
+	lib.eventdev.ring.lookup)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_adapter_caps_get,
+	lib.eventdev.timer.adapter.caps.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_adapter_get_info,
+	lib.eventdev.timer.adapter.get.info)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_adapter_lookup,
+	lib.eventdev.timer.adapter.lookup)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_adapter_service_id_get,
+	lib.eventdev.timer.adapter.service.id.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_vector_pool_create,
+	lib.eventdev.vector.pool.create)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_create_with_params,
+	lib.eventdev.eth.rx.adapter.create.with.params)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_queue_conf_get,
+	lib.eventdev.eth.rx.adapter.queue.conf.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_queue_attr_set,
+	lib.eventdev.queue.attr.set)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_port_quiesce,
+	lib.eventdev.port.quiesce)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_caps_get,
+	lib.eventdev.crypto.adapter.caps.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_dequeue_timeout_ticks,
+	lib.eventdev.dequeue.timeout.ticks)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_stats_get,
+	lib.eventdev.crypto.adapter.stats.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_stats_reset,
+	lib.eventdev.crypto.adapter.stats.reset)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_stats_get,
+	lib.eventdev.rx.adapter.stats.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_queue_start,
+	lib.eventdev.tx.adapter.queue.start)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_queue_stop,
+	lib.eventdev.tx.adapter.queue.stop)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_adapter_stats_get,
+	lib.eventdev.timer.adapter.stats.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_adapter_stats_reset,
+	lib.eventdev.timer.adapter.stats.reset)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_remaining_ticks_get,
+	lib.eventdev.timer.remaining.ticks.get)
diff --git a/lib/eventdev/rte_event_crypto_adapter.c b/lib/eventdev/rte_event_crypto_adapter.c
index bb782208f0..7f0a25a4cc 100644
--- a/lib/eventdev/rte_event_crypto_adapter.c
+++ b/lib/eventdev/rte_event_crypto_adapter.c
@@ -386,8 +386,6 @@ rte_event_crypto_adapter_create_ext(uint8_t id, uint8_t dev_id,
 
 	event_crypto_adapter[id] = adapter;
 
-	rte_eventdev_trace_crypto_adapter_create(id, dev_id, adapter, conf_arg,
-		mode);
 	return 0;
 }
 
@@ -415,6 +413,8 @@ rte_event_crypto_adapter_create(uint8_t id, uint8_t dev_id,
 	if (ret)
 		rte_free(pc);
 
+	rte_eventdev_trace_crypto_adapter_create(id, dev_id, port_config, mode,	ret);
+
 	return ret;
 }
 
@@ -1293,6 +1293,12 @@ rte_event_crypto_adapter_stats_get(uint8_t id,
 	stats->crypto_deq_count += dev_stats_sum.crypto_deq_count;
 	stats->event_enq_count += dev_stats_sum.event_enq_count;
 
+	rte_eventdev_trace_crypto_adapter_stats_get(id, stats,
+		stats->event_poll_count, stats->event_deq_count,
+		stats->crypto_enq_count, stats->crypto_enq_fail,
+		stats->crypto_deq_count, stats->event_enq_count,
+		stats->event_enq_retry_count, stats->event_enq_fail_count);
+
 	return 0;
 }
 
@@ -1304,6 +1310,8 @@ rte_event_crypto_adapter_stats_reset(uint8_t id)
 	struct rte_eventdev *dev;
 	uint32_t i;
 
+	rte_eventdev_trace_crypto_adapter_stats_reset(id);
+
 	if (eca_memzone_lookup())
 		return -ENOMEM;
 
@@ -1341,6 +1349,8 @@ rte_event_crypto_adapter_service_id_get(uint8_t id, uint32_t *service_id)
 	if (adapter->service_inited)
 		*service_id = adapter->service_id;
 
+	rte_eventdev_trace_crypto_adapter_service_id_get(id, *service_id);
+
 	return adapter->service_inited ? 0 : -ESRCH;
 }
 
@@ -1357,6 +1367,8 @@ rte_event_crypto_adapter_event_port_get(uint8_t id, uint8_t *event_port_id)
 
 	*event_port_id = adapter->event_port_id;
 
+	rte_eventdev_trace_crypto_adapter_event_port_get(id, *event_port_id);
+
 	return 0;
 }
 
@@ -1370,6 +1382,8 @@ rte_event_crypto_adapter_vector_limits_get(
 	uint32_t cap;
 	int ret;
 
+	rte_eventdev_trace_crypto_adapter_vector_limits_get(dev_id, cdev_id, limits);
+
 	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
 
 	if (!rte_cryptodev_is_valid_dev(cdev_id)) {
diff --git a/lib/eventdev/rte_event_eth_rx_adapter.c b/lib/eventdev/rte_event_eth_rx_adapter.c
index 34aa87379e..91bbba715b 100644
--- a/lib/eventdev/rte_event_eth_rx_adapter.c
+++ b/lib/eventdev/rte_event_eth_rx_adapter.c
@@ -2541,6 +2541,9 @@ rte_event_eth_rx_adapter_create_with_params(uint8_t id, uint8_t dev_id,
 	if (ret)
 		rte_free(pc);
 
+	rte_eventdev_trace_eth_rx_adapter_create_with_params(id, dev_id,
+		port_config, rxa_params, ret);
+
 	return ret;
 }
 
@@ -2929,6 +2932,9 @@ rte_event_eth_rx_adapter_vector_limits_get(
 		ret = rxa_sw_vector_limits(limits);
 	}
 
+	rte_eventdev_trace_eth_rx_adapter_vector_limits_get(dev_id, eth_port_id,
+		limits->min_sz, limits->max_sz, limits->log2_sz,
+		limits->min_timeout_ns, limits->max_timeout_ns, ret);
 	return ret;
 }
 
@@ -2970,6 +2976,8 @@ rte_event_eth_rx_adapter_stats_get(uint8_t id,
 	uint32_t i, j;
 	int ret;
 
+	rte_eventdev_trace_eth_rx_adapter_stats_get(id, stats);
+
 	if (rxa_memzone_lookup())
 		return -ENOMEM;
 
@@ -3041,6 +3049,9 @@ rte_event_eth_rx_adapter_queue_stats_get(uint8_t id,
 	struct rte_event_eth_rx_adapter_stats *q_stats;
 	struct rte_eventdev *dev;
 
+	rte_eventdev_trace_eth_rx_adapter_queue_stats_get(id, eth_dev_id,
+							  rx_queue_id, stats);
+
 	if (rxa_memzone_lookup())
 		return -ENOMEM;
 
@@ -3098,6 +3109,8 @@ rte_event_eth_rx_adapter_stats_reset(uint8_t id)
 	struct eth_rx_queue_info *queue_info;
 	uint32_t i, j;
 
+	rte_eventdev_trace_eth_rx_adapter_stats_reset(id);
+
 	if (rxa_memzone_lookup())
 		return -ENOMEM;
 
@@ -3145,6 +3158,9 @@ rte_event_eth_rx_adapter_queue_stats_reset(uint8_t id,
 	struct eth_rx_queue_info *queue_info;
 	struct rte_eventdev *dev;
 
+	rte_eventdev_trace_eth_rx_adapter_queue_stats_reset(id, eth_dev_id,
+							    rx_queue_id);
+
 	if (rxa_memzone_lookup())
 		return -ENOMEM;
 
@@ -3203,6 +3219,8 @@ rte_event_eth_rx_adapter_service_id_get(uint8_t id, uint32_t *service_id)
 	if (rx_adapter->service_inited)
 		*service_id = rx_adapter->service_id;
 
+	rte_eventdev_trace_eth_rx_adapter_service_id_get(id, *service_id);
+
 	return rx_adapter->service_inited ? 0 : -ESRCH;
 }
 
@@ -3223,6 +3241,8 @@ rte_event_eth_rx_adapter_event_port_get(uint8_t id, uint8_t *event_port_id)
 	if (rx_adapter->service_inited)
 		*event_port_id = rx_adapter->event_port_id;
 
+	rte_eventdev_trace_eth_rx_adapter_event_port_get(id, *event_port_id);
+
 	return rx_adapter->service_inited ? 0 : -ESRCH;
 }
 
@@ -3237,6 +3257,9 @@ rte_event_eth_rx_adapter_cb_register(uint8_t id,
 	uint32_t cap;
 	int ret;
 
+	rte_eventdev_trace_eth_rx_adapter_cb_register(id, eth_dev_id, cb_fn,
+						      cb_arg);
+
 	RTE_EVENT_ETH_RX_ADAPTER_ID_VALID_OR_ERR_RET(id, -EINVAL);
 	RTE_ETH_VALID_PORTID_OR_ERR_RET(eth_dev_id, -EINVAL);
 
@@ -3284,6 +3307,9 @@ rte_event_eth_rx_adapter_queue_conf_get(uint8_t id,
 	struct eth_rx_queue_info *queue_info;
 	int ret;
 
+	rte_eventdev_trace_eth_rx_adapter_queue_conf_get(id, eth_dev_id,
+							 rx_queue_id, queue_conf);
+
 	if (rxa_memzone_lookup())
 		return -ENOMEM;
 
@@ -3429,8 +3455,11 @@ rte_event_eth_rx_adapter_instance_get(uint16_t eth_dev_id,
 		}
 
 		/* return if entry found */
-		if (ret == 0)
+		if (ret == 0) {
+			rte_eventdev_trace_eth_rx_adapter_instance_get(eth_dev_id, rx_queue_id,
+								       *rxa_inst_id);
 			return ret;
+		}
 	}
 
 	return -EINVAL;
diff --git a/lib/eventdev/rte_event_eth_tx_adapter.c b/lib/eventdev/rte_event_eth_tx_adapter.c
index 6e9bcb1b79..cce50c3c18 100644
--- a/lib/eventdev/rte_event_eth_tx_adapter.c
+++ b/lib/eventdev/rte_event_eth_tx_adapter.c
@@ -995,6 +995,8 @@ txa_service_id_get(uint8_t id, uint32_t *service_id)
 		return -EINVAL;
 
 	*service_id = txa->service_id;
+
+	rte_eventdev_trace_eth_tx_adapter_service_id_get(id, *service_id);
 	return 0;
 }
 
@@ -1123,6 +1125,8 @@ rte_event_eth_tx_adapter_create_ext(uint8_t id, uint8_t dev_id,
 int
 rte_event_eth_tx_adapter_event_port_get(uint8_t id, uint8_t *event_port_id)
 {
+	rte_eventdev_trace_eth_tx_adapter_event_port_get(id);
+
 	TXA_CHECK_OR_ERR_RET(id);
 
 	return txa_service_event_port_get(id, event_port_id);
@@ -1264,6 +1268,9 @@ rte_event_eth_tx_adapter_stats_get(uint8_t id,
 			ret = txa_service_stats_get(id, stats);
 	}
 
+	rte_eventdev_trace_eth_tx_adapter_stats_get(id, stats->tx_retry, stats->tx_packets,
+						    stats->tx_dropped, ret);
+
 	return ret;
 }
 
@@ -1278,6 +1285,9 @@ rte_event_eth_tx_adapter_stats_reset(uint8_t id)
 		txa_dev_stats_reset(id)(id, txa_evdev(id)) : 0;
 	if (ret == 0)
 		ret = txa_service_stats_reset(id);
+
+	rte_eventdev_trace_eth_tx_adapter_stats_reset(id, ret);
+
 	return ret;
 }
 
@@ -1341,8 +1351,11 @@ rte_event_eth_tx_adapter_instance_get(uint16_t eth_dev_id,
 								 tx_queue_id,
 								 txa_inst_id)
 							: -EINVAL;
-			if (ret == 0)
+			if (ret == 0) {
+				rte_eventdev_trace_eth_tx_adapter_instance_get(eth_dev_id,
+								tx_queue_id, *txa_inst_id);
 				return ret;
+			}
 		} else {
 			struct rte_eth_dev *eth_dev;
 
@@ -1351,6 +1364,8 @@ rte_event_eth_tx_adapter_instance_get(uint16_t eth_dev_id,
 			if (txa_service_is_queue_added(txa, eth_dev,
 						       tx_queue_id)) {
 				*txa_inst_id = txa->id;
+				rte_eventdev_trace_eth_tx_adapter_instance_get(eth_dev_id,
+								tx_queue_id, *txa_inst_id);
 				return 0;
 			}
 		}
@@ -1426,11 +1441,15 @@ txa_queue_start_state_set(uint16_t eth_dev_id, uint16_t tx_queue_id,
 int
 rte_event_eth_tx_adapter_queue_start(uint16_t eth_dev_id, uint16_t tx_queue_id)
 {
+	rte_eventdev_trace_eth_tx_adapter_queue_start(eth_dev_id, tx_queue_id);
+
 	return txa_queue_start_state_set(eth_dev_id, tx_queue_id, true);
 }
 
 int
 rte_event_eth_tx_adapter_queue_stop(uint16_t eth_dev_id, uint16_t tx_queue_id)
 {
+	rte_eventdev_trace_eth_tx_adapter_queue_stop(eth_dev_id, tx_queue_id);
+
 	return txa_queue_start_state_set(eth_dev_id, tx_queue_id, false);
 }
diff --git a/lib/eventdev/rte_event_ring.c b/lib/eventdev/rte_event_ring.c
index c070715148..b965970cf9 100644
--- a/lib/eventdev/rte_event_ring.c
+++ b/lib/eventdev/rte_event_ring.c
@@ -5,6 +5,7 @@
 
 
 #include "rte_event_ring.h"
+#include "eventdev_trace.h"
 
 int
 rte_event_ring_init(struct rte_event_ring *r, const char *name,
@@ -14,6 +15,8 @@ rte_event_ring_init(struct rte_event_ring *r, const char *name,
 	RTE_BUILD_BUG_ON((sizeof(struct rte_event_ring) &
 			  RTE_CACHE_LINE_MASK) != 0);
 
+	rte_eventdev_trace_ring_init(r, name, count, flags);
+
 	/* init the ring structure */
 	return rte_ring_init(&r->r, name, count, flags);
 }
@@ -23,6 +26,8 @@ struct rte_event_ring *
 rte_event_ring_create(const char *name, unsigned int count, int socket_id,
 		unsigned int flags)
 {
+	rte_eventdev_trace_ring_create(name, count, socket_id, flags);
+
 	return (struct rte_event_ring *)rte_ring_create_elem(name,
 						sizeof(struct rte_event),
 						count, socket_id, flags);
@@ -32,6 +37,8 @@ rte_event_ring_create(const char *name, unsigned int count, int socket_id,
 struct rte_event_ring *
 rte_event_ring_lookup(const char *name)
 {
+	rte_eventdev_trace_ring_lookup(name);
+
 	return (struct rte_event_ring *)rte_ring_lookup(name);
 }
 
@@ -39,5 +46,7 @@ rte_event_ring_lookup(const char *name)
 void
 rte_event_ring_free(struct rte_event_ring *r)
 {
+	rte_eventdev_trace_ring_free(r->r.name);
+
 	rte_ring_free((struct rte_ring *)r);
 }
diff --git a/lib/eventdev/rte_event_timer_adapter.c b/lib/eventdev/rte_event_timer_adapter.c
index d357f7403a..61712c3bd5 100644
--- a/lib/eventdev/rte_event_timer_adapter.c
+++ b/lib/eventdev/rte_event_timer_adapter.c
@@ -275,6 +275,8 @@ rte_event_timer_adapter_get_info(const struct rte_event_timer_adapter *adapter,
 	adapter_info->event_dev_port_id = adapter->data->event_port_id;
 	adapter_info->caps = adapter->data->caps;
 
+	rte_eventdev_trace_timer_adapter_get_info(adapter, adapter_info);
+
 	return 0;
 }
 
@@ -386,6 +388,8 @@ rte_event_timer_adapter_lookup(uint16_t adapter_id)
 
 	adapter->allocated = 1;
 
+	rte_eventdev_trace_timer_adapter_lookup(adapter_id, adapter);
+
 	return adapter;
 }
 
@@ -436,9 +440,14 @@ rte_event_timer_adapter_service_id_get(struct rte_event_timer_adapter *adapter,
 {
 	ADAPTER_VALID_OR_ERR_RET(adapter, -EINVAL);
 
+	if (service_id == NULL)
+		return -EINVAL;
+
 	if (adapter->data->service_inited && service_id != NULL)
 		*service_id = adapter->data->service_id;
 
+	rte_eventdev_trace_timer_adapter_service_id_get(adapter, *service_id);
+
 	return adapter->data->service_inited ? 0 : -ESRCH;
 }
 
@@ -446,6 +455,8 @@ int
 rte_event_timer_adapter_stats_get(struct rte_event_timer_adapter *adapter,
 				  struct rte_event_timer_adapter_stats *stats)
 {
+	rte_eventdev_trace_timer_adapter_stats_get(adapter, stats);
+
 	ADAPTER_VALID_OR_ERR_RET(adapter, -EINVAL);
 	FUNC_PTR_OR_ERR_RET(adapter->ops->stats_get, -EINVAL);
 	if (stats == NULL)
@@ -457,6 +468,8 @@ rte_event_timer_adapter_stats_get(struct rte_event_timer_adapter *adapter,
 int
 rte_event_timer_adapter_stats_reset(struct rte_event_timer_adapter *adapter)
 {
+	rte_eventdev_trace_timer_adapter_stats_reset(adapter);
+
 	ADAPTER_VALID_OR_ERR_RET(adapter, -EINVAL);
 	FUNC_PTR_OR_ERR_RET(adapter->ops->stats_reset, -EINVAL);
 	return adapter->ops->stats_reset(adapter);
@@ -468,6 +481,8 @@ rte_event_timer_remaining_ticks_get(
 			const struct rte_event_timer *evtim,
 			uint64_t *ticks_remaining)
 {
+	rte_eventdev_trace_timer_remaining_ticks_get(adapter, evtim, ticks_remaining);
+
 	ADAPTER_VALID_OR_ERR_RET(adapter, -EINVAL);
 	FUNC_PTR_OR_ERR_RET(adapter->ops->remaining_ticks_get, -ENOTSUP);
 
diff --git a/lib/eventdev/rte_eventdev.c b/lib/eventdev/rte_eventdev.c
index b0414206d9..245b1d2d4e 100644
--- a/lib/eventdev/rte_eventdev.c
+++ b/lib/eventdev/rte_eventdev.c
@@ -62,8 +62,10 @@ rte_event_dev_get_dev_id(const char *name)
 				rte_event_devices[i].dev->driver->name, name,
 					 RTE_EVENTDEV_NAME_MAX_LEN) == 0) : 0);
 		if (cmp && (rte_event_devices[i].attached ==
-					RTE_EVENTDEV_ATTACHED))
+					RTE_EVENTDEV_ATTACHED)) {
+			rte_eventdev_trace_get_dev_id(name, i);
 			return i;
+		}
 	}
 	return -ENODEV;
 }
@@ -76,6 +78,8 @@ rte_event_dev_socket_id(uint8_t dev_id)
 	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
 	dev = &rte_eventdevs[dev_id];
 
+	rte_eventdev_trace_socket_id(dev_id, dev, dev->data->socket_id);
+
 	return dev->data->socket_id;
 }
 
@@ -99,6 +103,9 @@ rte_event_dev_info_get(uint8_t dev_id, struct rte_event_dev_info *dev_info)
 	dev_info->dequeue_timeout_ns = dev->data->dev_conf.dequeue_timeout_ns;
 
 	dev_info->dev = dev->dev;
+
+	rte_eventdev_trace_info_get(dev_id, dev_info, dev_info->dev);
+
 	return 0;
 }
 
@@ -108,6 +115,8 @@ rte_event_eth_rx_adapter_caps_get(uint8_t dev_id, uint16_t eth_port_id,
 {
 	struct rte_eventdev *dev;
 
+	rte_eventdev_trace_eth_rx_adapter_caps_get(dev_id, eth_port_id);
+
 	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
 	RTE_ETH_VALID_PORTID_OR_ERR_RET(eth_port_id, -EINVAL);
 
@@ -134,6 +143,8 @@ rte_event_timer_adapter_caps_get(uint8_t dev_id, uint32_t *caps)
 	struct rte_eventdev *dev;
 	const struct event_timer_adapter_ops *ops;
 
+	rte_eventdev_trace_timer_adapter_caps_get(dev_id);
+
 	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
 
 	dev = &rte_eventdevs[dev_id];
@@ -168,6 +179,8 @@ rte_event_crypto_adapter_caps_get(uint8_t dev_id, uint8_t cdev_id,
 	dev = &rte_eventdevs[dev_id];
 	cdev = rte_cryptodev_pmd_get_dev(cdev_id);
 
+	rte_eventdev_trace_crypto_adapter_caps_get(dev_id, dev, cdev_id, cdev);
+
 	if (caps == NULL)
 		return -EINVAL;
 
@@ -194,6 +207,8 @@ rte_event_eth_tx_adapter_caps_get(uint8_t dev_id, uint16_t eth_port_id,
 	dev = &rte_eventdevs[dev_id];
 	eth_dev = &rte_eth_devices[eth_port_id];
 
+	rte_eventdev_trace_eth_tx_adapter_caps_get(dev_id, dev, eth_port_id, eth_dev);
+
 	if (caps == NULL)
 		return -EINVAL;
 
@@ -524,6 +539,9 @@ rte_event_queue_default_conf_get(uint8_t dev_id, uint8_t queue_id,
 		return -ENOTSUP;
 	memset(queue_conf, 0, sizeof(struct rte_event_queue_conf));
 	(*dev->dev_ops->queue_def_conf)(dev, queue_id, queue_conf);
+
+	rte_eventdev_trace_queue_default_conf_get(dev_id, dev, queue_id, queue_conf);
+
 	return 0;
 }
 
@@ -652,6 +670,9 @@ rte_event_port_default_conf_get(uint8_t dev_id, uint8_t port_id,
 		return -ENOTSUP;
 	memset(port_conf, 0, sizeof(struct rte_event_port_conf));
 	(*dev->dev_ops->port_def_conf)(dev, port_id, port_conf);
+
+	rte_eventdev_trace_port_default_conf_get(dev_id, dev, port_id, port_conf);
+
 	return 0;
 }
 
@@ -754,6 +775,8 @@ rte_event_port_quiesce(uint8_t dev_id, uint8_t port_id,
 	RTE_EVENTDEV_VALID_DEVID_OR_RET(dev_id);
 	dev = &rte_eventdevs[dev_id];
 
+	rte_eventdev_trace_port_quiesce(dev_id, dev, port_id, args);
+
 	if (!is_valid_port(dev, port_id)) {
 		RTE_EDEV_LOG_ERR("Invalid port_id=%" PRIu8, port_id);
 		return;
@@ -789,6 +812,8 @@ rte_event_dev_attr_get(uint8_t dev_id, uint32_t attr_id,
 		return -EINVAL;
 	}
 
+	rte_eventdev_trace_attr_get(dev_id, dev, attr_id, *attr_value);
+
 	return 0;
 }
 
@@ -829,6 +854,9 @@ rte_event_port_attr_get(uint8_t dev_id, uint8_t port_id, uint32_t attr_id,
 	default:
 		return -EINVAL;
 	};
+
+	rte_eventdev_trace_port_attr_get(dev_id, dev, port_id, attr_id, *attr_value);
+
 	return 0;
 }
 
@@ -885,6 +913,9 @@ rte_event_queue_attr_get(uint8_t dev_id, uint8_t queue_id, uint32_t attr_id,
 	default:
 		return -EINVAL;
 	};
+
+	rte_eventdev_trace_queue_attr_get(dev_id, dev, queue_id, attr_id, *attr_value);
+
 	return 0;
 }
 
@@ -894,6 +925,8 @@ rte_event_queue_attr_set(uint8_t dev_id, uint8_t queue_id, uint32_t attr_id,
 {
 	struct rte_eventdev *dev;
 
+	rte_eventdev_trace_queue_attr_set(dev_id, queue_id, attr_id, attr_value);
+
 	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
 	dev = &rte_eventdevs[dev_id];
 	if (!is_valid_queue(dev, queue_id)) {
@@ -1048,6 +1081,8 @@ rte_event_port_unlinks_in_progress(uint8_t dev_id, uint8_t port_id)
 {
 	struct rte_eventdev *dev;
 
+	rte_eventdev_trace_port_unlinks_in_progress(dev_id, port_id);
+
 	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
 	dev = &rte_eventdevs[dev_id];
 	if (!is_valid_port(dev, port_id)) {
@@ -1091,6 +1126,9 @@ rte_event_port_links_get(uint8_t dev_id, uint8_t port_id,
 			++count;
 		}
 	}
+
+	rte_eventdev_trace_port_links_get(dev_id, port_id, count);
+
 	return count;
 }
 
@@ -1100,6 +1138,8 @@ rte_event_dequeue_timeout_ticks(uint8_t dev_id, uint64_t ns,
 {
 	struct rte_eventdev *dev;
 
+	rte_eventdev_trace_dequeue_timeout_ticks(dev_id, ns, timeout_ticks);
+
 	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
 	dev = &rte_eventdevs[dev_id];
 	if (*dev->dev_ops->timeout_ticks == NULL)
@@ -1125,6 +1165,8 @@ rte_event_dev_service_id_get(uint8_t dev_id, uint32_t *service_id)
 	if (dev->data->service_inited)
 		*service_id = dev->data->service_id;
 
+	rte_eventdev_trace_service_id_get(dev_id, *service_id);
+
 	return dev->data->service_inited ? 0 : -ESRCH;
 }
 
@@ -1285,6 +1327,9 @@ rte_event_vector_pool_create(const char *name, unsigned int n,
 	if (ret < 0)
 		goto err;
 
+	rte_eventdev_trace_vector_pool_create(mp, mp->name, mp->socket_id,
+		mp->size, mp->cache_size, mp->elt_size);
+
 	return mp;
 err:
 	rte_mempool_free(mp);
@@ -1332,6 +1377,8 @@ rte_event_dev_stop_flush_callback_register(uint8_t dev_id,
 
 	RTE_EDEV_LOG_DEBUG("Stop flush register dev_id=%" PRIu8, dev_id);
 
+	rte_eventdev_trace_stop_flush_callback_register(dev_id, callback, userdata);
+
 	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
 	dev = &rte_eventdevs[dev_id];
 
-- 
2.25.1


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [PATCH v5] eventdev: add trace points
  2023-01-31 13:30     ` [PATCH v4] " Amit Prakash Shukla
@ 2023-01-31 13:44       ` Amit Prakash Shukla
  2023-02-01 10:16         ` [EXT] " Shijith Thotton
  2023-02-02  9:17         ` [PATCH v6] " Amit Prakash Shukla
  0 siblings, 2 replies; 14+ messages in thread
From: Amit Prakash Shukla @ 2023-01-31 13:44 UTC (permalink / raw)
  To: Jerin Jacob, Abhinandan Gujjar, Naga Harish K S V, Erik Gabriel Carrillo
  Cc: dev, Amit Prakash Shukla

Add trace points for eventdev functions.

Signed-off-by: Amit Prakash Shukla <amitprakashs@marvell.com>
---
v2:
 - Fixed CI test failure
 - Code review suggestion from Abhinandan

v3:
 - Removed trace symbols from version.map
 
v4:
 - Fixed CI test failure
 - Cleaned-up unwanted includes and trace functions
 - Added traces to pending functions

v5:
 - Fixed coding style issue

 lib/eventdev/eventdev_trace.h           | 495 +++++++++++++++++++++++-
 lib/eventdev/eventdev_trace_points.c    | 159 ++++++++
 lib/eventdev/rte_event_crypto_adapter.c |  18 +-
 lib/eventdev/rte_event_eth_rx_adapter.c |  31 +-
 lib/eventdev/rte_event_eth_tx_adapter.c |  21 +-
 lib/eventdev/rte_event_ring.c           |   9 +
 lib/eventdev/rte_event_timer_adapter.c  |  15 +
 lib/eventdev/rte_eventdev.c             |  49 ++-
 8 files changed, 784 insertions(+), 13 deletions(-)

diff --git a/lib/eventdev/eventdev_trace.h b/lib/eventdev/eventdev_trace.h
index d48cd58850..71e996e562 100644
--- a/lib/eventdev/eventdev_trace.h
+++ b/lib/eventdev/eventdev_trace.h
@@ -63,6 +63,7 @@ RTE_TRACE_POINT(
 	rte_trace_point_emit_u16(port_conf->enqueue_depth);
 	rte_trace_point_emit_u32(port_conf->event_port_cfg);
 	rte_trace_point_emit_int(rc);
+	rte_trace_point_emit_ptr(port_conf);
 )
 
 RTE_TRACE_POINT(
@@ -250,16 +251,17 @@ RTE_TRACE_POINT(
 
 RTE_TRACE_POINT(
 	rte_eventdev_trace_crypto_adapter_create,
-	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint8_t dev_id, void *adapter,
-		struct rte_event_port_conf *port_conf, uint8_t mode),
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint8_t dev_id,
+		struct rte_event_port_conf *port_config, int mode, int ret),
 	rte_trace_point_emit_u8(adptr_id);
 	rte_trace_point_emit_u8(dev_id);
-	rte_trace_point_emit_ptr(adapter);
-	rte_trace_point_emit_u8(mode);
-	rte_trace_point_emit_i32(port_conf->new_event_threshold);
-	rte_trace_point_emit_u16(port_conf->dequeue_depth);
-	rte_trace_point_emit_u16(port_conf->enqueue_depth);
-	rte_trace_point_emit_u32(port_conf->event_port_cfg);
+	rte_trace_point_emit_ptr(port_config);
+	rte_trace_point_emit_i32(port_config->new_event_threshold);
+	rte_trace_point_emit_u16(port_config->dequeue_depth);
+	rte_trace_point_emit_u16(port_config->enqueue_depth);
+	rte_trace_point_emit_u32(port_config->event_port_cfg);
+	rte_trace_point_emit_int(mode);
+	rte_trace_point_emit_int(ret);
 )
 
 RTE_TRACE_POINT(
@@ -303,6 +305,483 @@ RTE_TRACE_POINT(
 	rte_trace_point_emit_u8(adptr_id);
 )
 
+RTE_TRACE_POINT(
+	rte_eventdev_trace_crypto_adapter_event_port_get,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint8_t event_port_id),
+	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_u8(event_port_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_crypto_adapter_service_id_get,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint32_t service_id),
+	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_u32(service_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_attr_get,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *dev, uint32_t attr_id,
+		uint32_t attr_value),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_ptr(dev);
+	rte_trace_point_emit_u32(attr_id);
+	rte_trace_point_emit_u32(attr_value);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_get_dev_id,
+	RTE_TRACE_POINT_ARGS(const char *name, int dev_id),
+	rte_trace_point_emit_string(name);
+	rte_trace_point_emit_int(dev_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_info_get,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *dev_info, const void *dev),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_ptr(dev_info);
+	rte_trace_point_emit_ptr(dev);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_service_id_get,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint32_t service_id),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_u32(service_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_socket_id,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *dev, int socket_id),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_ptr(dev);
+	rte_trace_point_emit_int(socket_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_stop_flush_callback_register,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *callback, const void *userdata),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_ptr(callback);
+	rte_trace_point_emit_ptr(userdata);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_rx_adapter_caps_get,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint16_t eth_port_id),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_u16(eth_port_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_rx_adapter_cb_register,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint16_t eth_dev_id, const void *cb_fn,
+		const void *cb_arg),
+	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_u16(eth_dev_id);
+	rte_trace_point_emit_ptr(cb_fn);
+	rte_trace_point_emit_ptr(cb_arg);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_rx_adapter_create_with_params,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint8_t dev_id,
+		const struct rte_event_port_conf *port_config,
+		const struct rte_event_eth_rx_adapter_params *rxa_params,
+		int ret),
+	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_ptr(port_config);
+	rte_trace_point_emit_i32(port_config->new_event_threshold);
+	rte_trace_point_emit_u16(port_config->dequeue_depth);
+	rte_trace_point_emit_u16(port_config->enqueue_depth);
+	rte_trace_point_emit_u32(port_config->event_port_cfg);
+	rte_trace_point_emit_ptr(rxa_params);
+	rte_trace_point_emit_u16(rxa_params->event_buf_size);
+	rte_trace_point_emit_int(ret);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_rx_adapter_service_id_get,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint32_t service_id),
+	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_u32(service_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_rx_adapter_event_port_get,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint8_t event_port_id),
+	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_u8(event_port_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_rx_adapter_vector_limits_get,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint16_t eth_port_id,
+		uint16_t min_sz, uint16_t max_sz, uint8_t log2_sz,
+		uint64_t min_timeout_ns, uint64_t max_timeout_ns, int ret),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_u16(eth_port_id);
+	rte_trace_point_emit_u16(min_sz);
+	rte_trace_point_emit_u16(max_sz);
+	rte_trace_point_emit_u8(log2_sz);
+	rte_trace_point_emit_u64(min_timeout_ns);
+	rte_trace_point_emit_u64(max_timeout_ns);
+	rte_trace_point_emit_int(ret);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_tx_adapter_caps_get,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *dev, uint16_t eth_port_id,
+		const void *eth_dev),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_ptr(dev);
+	rte_trace_point_emit_u16(eth_port_id);
+	rte_trace_point_emit_ptr(eth_dev);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_tx_adapter_event_port_get,
+	RTE_TRACE_POINT_ARGS(uint8_t id),
+	rte_trace_point_emit_u8(id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_tx_adapter_service_id_get,
+	RTE_TRACE_POINT_ARGS(uint8_t id, uint32_t service_id),
+	rte_trace_point_emit_u8(id);
+	rte_trace_point_emit_u32(service_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_port_attr_get,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *dev, uint8_t port_id,
+		uint32_t attr_id, uint32_t attr_value),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_ptr(dev);
+	rte_trace_point_emit_u8(port_id);
+	rte_trace_point_emit_u32(attr_id);
+	rte_trace_point_emit_u32(attr_value);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_port_default_conf_get,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *dev, uint8_t port_id,
+		const struct rte_event_port_conf *port_conf),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_ptr(dev);
+	rte_trace_point_emit_u8(port_id);
+	rte_trace_point_emit_ptr(port_conf);
+	rte_trace_point_emit_i32(port_conf->new_event_threshold);
+	rte_trace_point_emit_u16(port_conf->dequeue_depth);
+	rte_trace_point_emit_u16(port_conf->enqueue_depth);
+	rte_trace_point_emit_u32(port_conf->event_port_cfg);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_port_links_get,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint8_t port_id, int count),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_u8(port_id);
+	rte_trace_point_emit_int(count);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_port_unlinks_in_progress,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint8_t port_id),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_u8(port_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_queue_attr_get,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *dev, uint8_t queue_id,
+		uint32_t attr_id, uint32_t attr_value),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_ptr(dev);
+	rte_trace_point_emit_u8(queue_id);
+	rte_trace_point_emit_u32(attr_id);
+	rte_trace_point_emit_u32(attr_value);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_queue_default_conf_get,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *dev, uint8_t queue_id,
+		const struct rte_event_queue_conf *queue_conf),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_ptr(dev);
+	rte_trace_point_emit_u8(queue_id);
+	rte_trace_point_emit_ptr(queue_conf);
+	rte_trace_point_emit_u32(queue_conf->nb_atomic_flows);
+	rte_trace_point_emit_u32(queue_conf->nb_atomic_order_sequences);
+	rte_trace_point_emit_u32(queue_conf->event_queue_cfg);
+	rte_trace_point_emit_u8(queue_conf->schedule_type);
+	rte_trace_point_emit_u8(queue_conf->priority);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_ring_create,
+	RTE_TRACE_POINT_ARGS(const char *name, unsigned int count,
+		int socket_id, unsigned int flags),
+	rte_trace_point_emit_string(name);
+	rte_trace_point_emit_u32(count);
+	rte_trace_point_emit_int(socket_id);
+	rte_trace_point_emit_u32(flags);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_ring_free,
+	RTE_TRACE_POINT_ARGS(const char *name),
+	rte_trace_point_emit_string(name);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_ring_init,
+	RTE_TRACE_POINT_ARGS(const void *r, const char *name,
+		unsigned int count, unsigned int flags),
+	rte_trace_point_emit_ptr(r);
+	rte_trace_point_emit_string(name);
+	rte_trace_point_emit_u32(count);
+	rte_trace_point_emit_u32(flags);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_ring_lookup,
+	RTE_TRACE_POINT_ARGS(const char *name),
+	rte_trace_point_emit_string(name);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_timer_adapter_caps_get,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id),
+	rte_trace_point_emit_u8(dev_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_timer_adapter_get_info,
+	RTE_TRACE_POINT_ARGS(const void *adapter,
+		const struct rte_event_timer_adapter_info *adapter_info),
+	rte_trace_point_emit_ptr(adapter);
+	rte_trace_point_emit_ptr(adapter_info);
+	rte_trace_point_emit_u64(adapter_info->min_resolution_ns);
+	rte_trace_point_emit_u64(adapter_info->max_tmo_ns);
+	rte_trace_point_emit_u32(adapter_info->caps);
+	rte_trace_point_emit_u16(adapter_info->event_dev_port_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_timer_adapter_lookup,
+	RTE_TRACE_POINT_ARGS(uint16_t adapter_id, const void *adapter),
+	rte_trace_point_emit_u16(adapter_id);
+	rte_trace_point_emit_ptr(adapter);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_timer_adapter_service_id_get,
+	RTE_TRACE_POINT_ARGS(const struct rte_event_timer_adapter *adapter,
+		uint32_t service_id),
+	rte_trace_point_emit_ptr(adapter);
+	rte_trace_point_emit_u32(service_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_vector_pool_create,
+	RTE_TRACE_POINT_ARGS(const void *mp, const char *name, int socket_id,
+		uint32_t size, uint32_t cache_size, uint32_t elt_size),
+	rte_trace_point_emit_ptr(mp);
+	rte_trace_point_emit_string(name);
+	rte_trace_point_emit_int(socket_id);
+	rte_trace_point_emit_u32(size);
+	rte_trace_point_emit_u32(cache_size);
+	rte_trace_point_emit_u32(elt_size);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_rx_adapter_queue_conf_get,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint16_t eth_dev_id,
+		uint16_t rx_queue_id, const void *queue_conf),
+	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_u16(eth_dev_id);
+	rte_trace_point_emit_u16(rx_queue_id);
+	rte_trace_point_emit_ptr(queue_conf);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_queue_attr_set,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint8_t queue_id, uint32_t attr_id,
+		uint32_t attr_value),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_u8(queue_id);
+	rte_trace_point_emit_u32(attr_id);
+	rte_trace_point_emit_u32(attr_value);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_port_quiesce,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *dev, uint8_t port_id, const void *args),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_ptr(dev);
+	rte_trace_point_emit_u8(port_id);
+	rte_trace_point_emit_ptr(args);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_crypto_adapter_caps_get,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *dev, uint8_t cdev_id,
+		const void *cdev),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_ptr(dev);
+	rte_trace_point_emit_u8(cdev_id);
+	rte_trace_point_emit_ptr(cdev);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_dequeue_timeout_ticks,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint64_t ns,
+		const void *timeout_ticks),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_u64(ns);
+	rte_trace_point_emit_ptr(timeout_ticks);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_crypto_adapter_stats_get,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, const void *stats,
+		uint64_t event_poll_count, uint64_t event_deq_count,
+		uint64_t crypto_enq_count, uint64_t crypto_enq_fail,
+		uint64_t crypto_deq_count, uint64_t event_enq_count,
+		uint64_t event_enq_retry_count, uint64_t event_enq_fail_count),
+	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_ptr(stats);
+	rte_trace_point_emit_u64(event_poll_count);
+	rte_trace_point_emit_u64(event_deq_count);
+	rte_trace_point_emit_u64(crypto_enq_count);
+	rte_trace_point_emit_u64(crypto_enq_fail);
+	rte_trace_point_emit_u64(crypto_deq_count);
+	rte_trace_point_emit_u64(event_enq_count);
+	rte_trace_point_emit_u64(event_enq_retry_count);
+	rte_trace_point_emit_u64(event_enq_fail_count);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_crypto_adapter_stats_reset,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id),
+	rte_trace_point_emit_u8(adptr_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_rx_adapter_stats_get,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, const void *stats),
+	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_ptr(stats);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_crypto_adapter_vector_limits_get,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint16_t cdev_id,
+		const void *limits),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_u16(cdev_id);
+	rte_trace_point_emit_ptr(limits);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_rx_adapter_queue_stats_get,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint16_t eth_dev_id,
+		uint16_t rx_queue_id, const void *stats),
+	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_u16(eth_dev_id);
+	rte_trace_point_emit_u16(rx_queue_id);
+	rte_trace_point_emit_ptr(stats);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_rx_adapter_stats_reset,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id),
+	rte_trace_point_emit_u8(adptr_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_rx_adapter_queue_stats_reset,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint16_t eth_dev_id,
+		uint16_t rx_queue_id),
+	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_u16(eth_dev_id);
+	rte_trace_point_emit_u16(rx_queue_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_rx_adapter_instance_get,
+	RTE_TRACE_POINT_ARGS(uint16_t eth_dev_id, uint16_t rx_queue_id,
+		uint8_t rxa_inst_id),
+	rte_trace_point_emit_u16(eth_dev_id);
+	rte_trace_point_emit_u16(rx_queue_id);
+	rte_trace_point_emit_u8(rxa_inst_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_tx_adapter_stats_get,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint64_t tx_retry,
+		uint64_t tx_packets, uint64_t tx_dropped, int ret),
+	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_u64(tx_retry);
+	rte_trace_point_emit_u64(tx_packets);
+	rte_trace_point_emit_u64(tx_dropped);
+	rte_trace_point_emit_int(ret);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_tx_adapter_stats_reset,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, int ret),
+	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_int(ret);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_tx_adapter_instance_get,
+	RTE_TRACE_POINT_ARGS(uint16_t eth_dev_id, uint16_t tx_queue_id,
+		uint8_t txa_inst_id),
+	rte_trace_point_emit_u16(eth_dev_id);
+	rte_trace_point_emit_u16(tx_queue_id);
+	rte_trace_point_emit_u8(txa_inst_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_tx_adapter_queue_start,
+	RTE_TRACE_POINT_ARGS(uint16_t eth_dev_id, uint16_t tx_queue_id),
+	rte_trace_point_emit_u16(eth_dev_id);
+	rte_trace_point_emit_u16(tx_queue_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_tx_adapter_queue_stop,
+	RTE_TRACE_POINT_ARGS(uint16_t eth_dev_id, uint16_t tx_queue_id),
+	rte_trace_point_emit_u16(eth_dev_id);
+	rte_trace_point_emit_u16(tx_queue_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_timer_adapter_stats_get,
+	RTE_TRACE_POINT_ARGS(const void *adapter, const void *stats),
+	rte_trace_point_emit_ptr(adapter);
+	rte_trace_point_emit_ptr(stats);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_timer_adapter_stats_reset,
+	RTE_TRACE_POINT_ARGS(const void *adapter),
+	rte_trace_point_emit_ptr(adapter);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_timer_remaining_ticks_get,
+	RTE_TRACE_POINT_ARGS(const void *adapter, const void *evtim, const void *ticks_remaining),
+	rte_trace_point_emit_ptr(adapter);
+	rte_trace_point_emit_ptr(evtim);
+	rte_trace_point_emit_ptr(ticks_remaining);
+)
+
 #ifdef __cplusplus
 }
 #endif
diff --git a/lib/eventdev/eventdev_trace_points.c b/lib/eventdev/eventdev_trace_points.c
index de6b1f4417..76144cfe75 100644
--- a/lib/eventdev/eventdev_trace_points.c
+++ b/lib/eventdev/eventdev_trace_points.c
@@ -124,3 +124,162 @@ RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_stop,
 
 RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_enqueue,
 	lib.eventdev.crypto.enq)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_event_port_get,
+	lib.eventdev.crypto.adapter_event_port_get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_service_id_get,
+	lib.eventdev.crypto.adapter_service_id_get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_vector_limits_get,
+	lib.eventdev.crypto.adapter_vector_limits_get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_attr_get,
+	lib.eventdev.attr_get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_get_dev_id,
+	lib.eventdev.get_dev_id)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_info_get,
+	lib.eventdev.info_get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_service_id_get,
+	lib.eventdev.service_id_get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_socket_id,
+	lib.eventdev.socket.id)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_stop_flush_callback_register,
+	lib.eventdev.stop.flush.callback.register)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_caps_get,
+	lib.eventdev.eth.rx.adapter.caps.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_cb_register,
+	lib.eventdev.eth.rx.adapter.cb.register)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_service_id_get,
+	lib.eventdev.eth.rx.adapter.service.id.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_event_port_get,
+	lib.eventdev.eth.rx.adapter.event.port.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_vector_limits_get,
+	lib.eventdev.eth.rx.adapter.vector.limits.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_queue_stats_get,
+	lib.eventdev.eth.rx.adapter.queue.stats.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_stats_reset,
+	lib.eventdev.eth.rx.adapter.stats.reset)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_queue_stats_reset,
+	lib.eventdev.eth.rx.adapter.queue.stats.reset)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_instance_get,
+	lib.eventdev.eth.rx.adapter.instance.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_caps_get,
+	lib.eventdev.eth.tx.adapter.caps.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_event_port_get,
+	lib.eventdev.eth.tx.adapter.event.port.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_service_id_get,
+	lib.eventdev.eth.tx.adapter.service.id.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_stats_get,
+	lib.eventdev.eth.tx.adapter.stats.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_stats_reset,
+	lib.eventdev.eth.tx.adapter.stats.reset)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_instance_get,
+	lib.eventdev.eth.tx.adapter.instance.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_port_attr_get,
+	lib.eventdev.port.attr.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_port_default_conf_get,
+	lib.eventdev.port.default.conf.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_port_links_get,
+	lib.eventdev.port.links.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_port_unlinks_in_progress,
+	lib.eventdev.port.unlinks.in.progress)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_queue_attr_get,
+	lib.eventdev.queue.attr.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_queue_default_conf_get,
+	lib.eventdev.queue.default.conf.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_ring_create,
+	lib.eventdev.ring.create)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_ring_free,
+	lib.eventdev.ring.free)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_ring_init,
+	lib.eventdev.ring.init)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_ring_lookup,
+	lib.eventdev.ring.lookup)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_adapter_caps_get,
+	lib.eventdev.timer.adapter.caps.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_adapter_get_info,
+	lib.eventdev.timer.adapter.get.info)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_adapter_lookup,
+	lib.eventdev.timer.adapter.lookup)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_adapter_service_id_get,
+	lib.eventdev.timer.adapter.service.id.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_vector_pool_create,
+	lib.eventdev.vector.pool.create)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_create_with_params,
+	lib.eventdev.eth.rx.adapter.create.with.params)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_queue_conf_get,
+	lib.eventdev.eth.rx.adapter.queue.conf.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_queue_attr_set,
+	lib.eventdev.queue.attr.set)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_port_quiesce,
+	lib.eventdev.port.quiesce)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_caps_get,
+	lib.eventdev.crypto.adapter.caps.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_dequeue_timeout_ticks,
+	lib.eventdev.dequeue.timeout.ticks)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_stats_get,
+	lib.eventdev.crypto.adapter.stats.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_stats_reset,
+	lib.eventdev.crypto.adapter.stats.reset)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_stats_get,
+	lib.eventdev.rx.adapter.stats.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_queue_start,
+	lib.eventdev.tx.adapter.queue.start)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_queue_stop,
+	lib.eventdev.tx.adapter.queue.stop)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_adapter_stats_get,
+	lib.eventdev.timer.adapter.stats.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_adapter_stats_reset,
+	lib.eventdev.timer.adapter.stats.reset)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_remaining_ticks_get,
+	lib.eventdev.timer.remaining.ticks.get)
diff --git a/lib/eventdev/rte_event_crypto_adapter.c b/lib/eventdev/rte_event_crypto_adapter.c
index bb782208f0..7f0a25a4cc 100644
--- a/lib/eventdev/rte_event_crypto_adapter.c
+++ b/lib/eventdev/rte_event_crypto_adapter.c
@@ -386,8 +386,6 @@ rte_event_crypto_adapter_create_ext(uint8_t id, uint8_t dev_id,
 
 	event_crypto_adapter[id] = adapter;
 
-	rte_eventdev_trace_crypto_adapter_create(id, dev_id, adapter, conf_arg,
-		mode);
 	return 0;
 }
 
@@ -415,6 +413,8 @@ rte_event_crypto_adapter_create(uint8_t id, uint8_t dev_id,
 	if (ret)
 		rte_free(pc);
 
+	rte_eventdev_trace_crypto_adapter_create(id, dev_id, port_config, mode,	ret);
+
 	return ret;
 }
 
@@ -1293,6 +1293,12 @@ rte_event_crypto_adapter_stats_get(uint8_t id,
 	stats->crypto_deq_count += dev_stats_sum.crypto_deq_count;
 	stats->event_enq_count += dev_stats_sum.event_enq_count;
 
+	rte_eventdev_trace_crypto_adapter_stats_get(id, stats,
+		stats->event_poll_count, stats->event_deq_count,
+		stats->crypto_enq_count, stats->crypto_enq_fail,
+		stats->crypto_deq_count, stats->event_enq_count,
+		stats->event_enq_retry_count, stats->event_enq_fail_count);
+
 	return 0;
 }
 
@@ -1304,6 +1310,8 @@ rte_event_crypto_adapter_stats_reset(uint8_t id)
 	struct rte_eventdev *dev;
 	uint32_t i;
 
+	rte_eventdev_trace_crypto_adapter_stats_reset(id);
+
 	if (eca_memzone_lookup())
 		return -ENOMEM;
 
@@ -1341,6 +1349,8 @@ rte_event_crypto_adapter_service_id_get(uint8_t id, uint32_t *service_id)
 	if (adapter->service_inited)
 		*service_id = adapter->service_id;
 
+	rte_eventdev_trace_crypto_adapter_service_id_get(id, *service_id);
+
 	return adapter->service_inited ? 0 : -ESRCH;
 }
 
@@ -1357,6 +1367,8 @@ rte_event_crypto_adapter_event_port_get(uint8_t id, uint8_t *event_port_id)
 
 	*event_port_id = adapter->event_port_id;
 
+	rte_eventdev_trace_crypto_adapter_event_port_get(id, *event_port_id);
+
 	return 0;
 }
 
@@ -1370,6 +1382,8 @@ rte_event_crypto_adapter_vector_limits_get(
 	uint32_t cap;
 	int ret;
 
+	rte_eventdev_trace_crypto_adapter_vector_limits_get(dev_id, cdev_id, limits);
+
 	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
 
 	if (!rte_cryptodev_is_valid_dev(cdev_id)) {
diff --git a/lib/eventdev/rte_event_eth_rx_adapter.c b/lib/eventdev/rte_event_eth_rx_adapter.c
index 34aa87379e..91bbba715b 100644
--- a/lib/eventdev/rte_event_eth_rx_adapter.c
+++ b/lib/eventdev/rte_event_eth_rx_adapter.c
@@ -2541,6 +2541,9 @@ rte_event_eth_rx_adapter_create_with_params(uint8_t id, uint8_t dev_id,
 	if (ret)
 		rte_free(pc);
 
+	rte_eventdev_trace_eth_rx_adapter_create_with_params(id, dev_id,
+		port_config, rxa_params, ret);
+
 	return ret;
 }
 
@@ -2929,6 +2932,9 @@ rte_event_eth_rx_adapter_vector_limits_get(
 		ret = rxa_sw_vector_limits(limits);
 	}
 
+	rte_eventdev_trace_eth_rx_adapter_vector_limits_get(dev_id, eth_port_id,
+		limits->min_sz, limits->max_sz, limits->log2_sz,
+		limits->min_timeout_ns, limits->max_timeout_ns, ret);
 	return ret;
 }
 
@@ -2970,6 +2976,8 @@ rte_event_eth_rx_adapter_stats_get(uint8_t id,
 	uint32_t i, j;
 	int ret;
 
+	rte_eventdev_trace_eth_rx_adapter_stats_get(id, stats);
+
 	if (rxa_memzone_lookup())
 		return -ENOMEM;
 
@@ -3041,6 +3049,9 @@ rte_event_eth_rx_adapter_queue_stats_get(uint8_t id,
 	struct rte_event_eth_rx_adapter_stats *q_stats;
 	struct rte_eventdev *dev;
 
+	rte_eventdev_trace_eth_rx_adapter_queue_stats_get(id, eth_dev_id,
+							  rx_queue_id, stats);
+
 	if (rxa_memzone_lookup())
 		return -ENOMEM;
 
@@ -3098,6 +3109,8 @@ rte_event_eth_rx_adapter_stats_reset(uint8_t id)
 	struct eth_rx_queue_info *queue_info;
 	uint32_t i, j;
 
+	rte_eventdev_trace_eth_rx_adapter_stats_reset(id);
+
 	if (rxa_memzone_lookup())
 		return -ENOMEM;
 
@@ -3145,6 +3158,9 @@ rte_event_eth_rx_adapter_queue_stats_reset(uint8_t id,
 	struct eth_rx_queue_info *queue_info;
 	struct rte_eventdev *dev;
 
+	rte_eventdev_trace_eth_rx_adapter_queue_stats_reset(id, eth_dev_id,
+							    rx_queue_id);
+
 	if (rxa_memzone_lookup())
 		return -ENOMEM;
 
@@ -3203,6 +3219,8 @@ rte_event_eth_rx_adapter_service_id_get(uint8_t id, uint32_t *service_id)
 	if (rx_adapter->service_inited)
 		*service_id = rx_adapter->service_id;
 
+	rte_eventdev_trace_eth_rx_adapter_service_id_get(id, *service_id);
+
 	return rx_adapter->service_inited ? 0 : -ESRCH;
 }
 
@@ -3223,6 +3241,8 @@ rte_event_eth_rx_adapter_event_port_get(uint8_t id, uint8_t *event_port_id)
 	if (rx_adapter->service_inited)
 		*event_port_id = rx_adapter->event_port_id;
 
+	rte_eventdev_trace_eth_rx_adapter_event_port_get(id, *event_port_id);
+
 	return rx_adapter->service_inited ? 0 : -ESRCH;
 }
 
@@ -3237,6 +3257,9 @@ rte_event_eth_rx_adapter_cb_register(uint8_t id,
 	uint32_t cap;
 	int ret;
 
+	rte_eventdev_trace_eth_rx_adapter_cb_register(id, eth_dev_id, cb_fn,
+						      cb_arg);
+
 	RTE_EVENT_ETH_RX_ADAPTER_ID_VALID_OR_ERR_RET(id, -EINVAL);
 	RTE_ETH_VALID_PORTID_OR_ERR_RET(eth_dev_id, -EINVAL);
 
@@ -3284,6 +3307,9 @@ rte_event_eth_rx_adapter_queue_conf_get(uint8_t id,
 	struct eth_rx_queue_info *queue_info;
 	int ret;
 
+	rte_eventdev_trace_eth_rx_adapter_queue_conf_get(id, eth_dev_id,
+							 rx_queue_id, queue_conf);
+
 	if (rxa_memzone_lookup())
 		return -ENOMEM;
 
@@ -3429,8 +3455,11 @@ rte_event_eth_rx_adapter_instance_get(uint16_t eth_dev_id,
 		}
 
 		/* return if entry found */
-		if (ret == 0)
+		if (ret == 0) {
+			rte_eventdev_trace_eth_rx_adapter_instance_get(eth_dev_id, rx_queue_id,
+								       *rxa_inst_id);
 			return ret;
+		}
 	}
 
 	return -EINVAL;
diff --git a/lib/eventdev/rte_event_eth_tx_adapter.c b/lib/eventdev/rte_event_eth_tx_adapter.c
index 6e9bcb1b79..cce50c3c18 100644
--- a/lib/eventdev/rte_event_eth_tx_adapter.c
+++ b/lib/eventdev/rte_event_eth_tx_adapter.c
@@ -995,6 +995,8 @@ txa_service_id_get(uint8_t id, uint32_t *service_id)
 		return -EINVAL;
 
 	*service_id = txa->service_id;
+
+	rte_eventdev_trace_eth_tx_adapter_service_id_get(id, *service_id);
 	return 0;
 }
 
@@ -1123,6 +1125,8 @@ rte_event_eth_tx_adapter_create_ext(uint8_t id, uint8_t dev_id,
 int
 rte_event_eth_tx_adapter_event_port_get(uint8_t id, uint8_t *event_port_id)
 {
+	rte_eventdev_trace_eth_tx_adapter_event_port_get(id);
+
 	TXA_CHECK_OR_ERR_RET(id);
 
 	return txa_service_event_port_get(id, event_port_id);
@@ -1264,6 +1268,9 @@ rte_event_eth_tx_adapter_stats_get(uint8_t id,
 			ret = txa_service_stats_get(id, stats);
 	}
 
+	rte_eventdev_trace_eth_tx_adapter_stats_get(id, stats->tx_retry, stats->tx_packets,
+						    stats->tx_dropped, ret);
+
 	return ret;
 }
 
@@ -1278,6 +1285,9 @@ rte_event_eth_tx_adapter_stats_reset(uint8_t id)
 		txa_dev_stats_reset(id)(id, txa_evdev(id)) : 0;
 	if (ret == 0)
 		ret = txa_service_stats_reset(id);
+
+	rte_eventdev_trace_eth_tx_adapter_stats_reset(id, ret);
+
 	return ret;
 }
 
@@ -1341,8 +1351,11 @@ rte_event_eth_tx_adapter_instance_get(uint16_t eth_dev_id,
 								 tx_queue_id,
 								 txa_inst_id)
 							: -EINVAL;
-			if (ret == 0)
+			if (ret == 0) {
+				rte_eventdev_trace_eth_tx_adapter_instance_get(eth_dev_id,
+								tx_queue_id, *txa_inst_id);
 				return ret;
+			}
 		} else {
 			struct rte_eth_dev *eth_dev;
 
@@ -1351,6 +1364,8 @@ rte_event_eth_tx_adapter_instance_get(uint16_t eth_dev_id,
 			if (txa_service_is_queue_added(txa, eth_dev,
 						       tx_queue_id)) {
 				*txa_inst_id = txa->id;
+				rte_eventdev_trace_eth_tx_adapter_instance_get(eth_dev_id,
+								tx_queue_id, *txa_inst_id);
 				return 0;
 			}
 		}
@@ -1426,11 +1441,15 @@ txa_queue_start_state_set(uint16_t eth_dev_id, uint16_t tx_queue_id,
 int
 rte_event_eth_tx_adapter_queue_start(uint16_t eth_dev_id, uint16_t tx_queue_id)
 {
+	rte_eventdev_trace_eth_tx_adapter_queue_start(eth_dev_id, tx_queue_id);
+
 	return txa_queue_start_state_set(eth_dev_id, tx_queue_id, true);
 }
 
 int
 rte_event_eth_tx_adapter_queue_stop(uint16_t eth_dev_id, uint16_t tx_queue_id)
 {
+	rte_eventdev_trace_eth_tx_adapter_queue_stop(eth_dev_id, tx_queue_id);
+
 	return txa_queue_start_state_set(eth_dev_id, tx_queue_id, false);
 }
diff --git a/lib/eventdev/rte_event_ring.c b/lib/eventdev/rte_event_ring.c
index c070715148..b965970cf9 100644
--- a/lib/eventdev/rte_event_ring.c
+++ b/lib/eventdev/rte_event_ring.c
@@ -5,6 +5,7 @@
 
 
 #include "rte_event_ring.h"
+#include "eventdev_trace.h"
 
 int
 rte_event_ring_init(struct rte_event_ring *r, const char *name,
@@ -14,6 +15,8 @@ rte_event_ring_init(struct rte_event_ring *r, const char *name,
 	RTE_BUILD_BUG_ON((sizeof(struct rte_event_ring) &
 			  RTE_CACHE_LINE_MASK) != 0);
 
+	rte_eventdev_trace_ring_init(r, name, count, flags);
+
 	/* init the ring structure */
 	return rte_ring_init(&r->r, name, count, flags);
 }
@@ -23,6 +26,8 @@ struct rte_event_ring *
 rte_event_ring_create(const char *name, unsigned int count, int socket_id,
 		unsigned int flags)
 {
+	rte_eventdev_trace_ring_create(name, count, socket_id, flags);
+
 	return (struct rte_event_ring *)rte_ring_create_elem(name,
 						sizeof(struct rte_event),
 						count, socket_id, flags);
@@ -32,6 +37,8 @@ rte_event_ring_create(const char *name, unsigned int count, int socket_id,
 struct rte_event_ring *
 rte_event_ring_lookup(const char *name)
 {
+	rte_eventdev_trace_ring_lookup(name);
+
 	return (struct rte_event_ring *)rte_ring_lookup(name);
 }
 
@@ -39,5 +46,7 @@ rte_event_ring_lookup(const char *name)
 void
 rte_event_ring_free(struct rte_event_ring *r)
 {
+	rte_eventdev_trace_ring_free(r->r.name);
+
 	rte_ring_free((struct rte_ring *)r);
 }
diff --git a/lib/eventdev/rte_event_timer_adapter.c b/lib/eventdev/rte_event_timer_adapter.c
index d357f7403a..61712c3bd5 100644
--- a/lib/eventdev/rte_event_timer_adapter.c
+++ b/lib/eventdev/rte_event_timer_adapter.c
@@ -275,6 +275,8 @@ rte_event_timer_adapter_get_info(const struct rte_event_timer_adapter *adapter,
 	adapter_info->event_dev_port_id = adapter->data->event_port_id;
 	adapter_info->caps = adapter->data->caps;
 
+	rte_eventdev_trace_timer_adapter_get_info(adapter, adapter_info);
+
 	return 0;
 }
 
@@ -386,6 +388,8 @@ rte_event_timer_adapter_lookup(uint16_t adapter_id)
 
 	adapter->allocated = 1;
 
+	rte_eventdev_trace_timer_adapter_lookup(adapter_id, adapter);
+
 	return adapter;
 }
 
@@ -436,9 +440,14 @@ rte_event_timer_adapter_service_id_get(struct rte_event_timer_adapter *adapter,
 {
 	ADAPTER_VALID_OR_ERR_RET(adapter, -EINVAL);
 
+	if (service_id == NULL)
+		return -EINVAL;
+
 	if (adapter->data->service_inited && service_id != NULL)
 		*service_id = adapter->data->service_id;
 
+	rte_eventdev_trace_timer_adapter_service_id_get(adapter, *service_id);
+
 	return adapter->data->service_inited ? 0 : -ESRCH;
 }
 
@@ -446,6 +455,8 @@ int
 rte_event_timer_adapter_stats_get(struct rte_event_timer_adapter *adapter,
 				  struct rte_event_timer_adapter_stats *stats)
 {
+	rte_eventdev_trace_timer_adapter_stats_get(adapter, stats);
+
 	ADAPTER_VALID_OR_ERR_RET(adapter, -EINVAL);
 	FUNC_PTR_OR_ERR_RET(adapter->ops->stats_get, -EINVAL);
 	if (stats == NULL)
@@ -457,6 +468,8 @@ rte_event_timer_adapter_stats_get(struct rte_event_timer_adapter *adapter,
 int
 rte_event_timer_adapter_stats_reset(struct rte_event_timer_adapter *adapter)
 {
+	rte_eventdev_trace_timer_adapter_stats_reset(adapter);
+
 	ADAPTER_VALID_OR_ERR_RET(adapter, -EINVAL);
 	FUNC_PTR_OR_ERR_RET(adapter->ops->stats_reset, -EINVAL);
 	return adapter->ops->stats_reset(adapter);
@@ -468,6 +481,8 @@ rte_event_timer_remaining_ticks_get(
 			const struct rte_event_timer *evtim,
 			uint64_t *ticks_remaining)
 {
+	rte_eventdev_trace_timer_remaining_ticks_get(adapter, evtim, ticks_remaining);
+
 	ADAPTER_VALID_OR_ERR_RET(adapter, -EINVAL);
 	FUNC_PTR_OR_ERR_RET(adapter->ops->remaining_ticks_get, -ENOTSUP);
 
diff --git a/lib/eventdev/rte_eventdev.c b/lib/eventdev/rte_eventdev.c
index b0414206d9..245b1d2d4e 100644
--- a/lib/eventdev/rte_eventdev.c
+++ b/lib/eventdev/rte_eventdev.c
@@ -62,8 +62,10 @@ rte_event_dev_get_dev_id(const char *name)
 				rte_event_devices[i].dev->driver->name, name,
 					 RTE_EVENTDEV_NAME_MAX_LEN) == 0) : 0);
 		if (cmp && (rte_event_devices[i].attached ==
-					RTE_EVENTDEV_ATTACHED))
+					RTE_EVENTDEV_ATTACHED)) {
+			rte_eventdev_trace_get_dev_id(name, i);
 			return i;
+		}
 	}
 	return -ENODEV;
 }
@@ -76,6 +78,8 @@ rte_event_dev_socket_id(uint8_t dev_id)
 	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
 	dev = &rte_eventdevs[dev_id];
 
+	rte_eventdev_trace_socket_id(dev_id, dev, dev->data->socket_id);
+
 	return dev->data->socket_id;
 }
 
@@ -99,6 +103,9 @@ rte_event_dev_info_get(uint8_t dev_id, struct rte_event_dev_info *dev_info)
 	dev_info->dequeue_timeout_ns = dev->data->dev_conf.dequeue_timeout_ns;
 
 	dev_info->dev = dev->dev;
+
+	rte_eventdev_trace_info_get(dev_id, dev_info, dev_info->dev);
+
 	return 0;
 }
 
@@ -108,6 +115,8 @@ rte_event_eth_rx_adapter_caps_get(uint8_t dev_id, uint16_t eth_port_id,
 {
 	struct rte_eventdev *dev;
 
+	rte_eventdev_trace_eth_rx_adapter_caps_get(dev_id, eth_port_id);
+
 	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
 	RTE_ETH_VALID_PORTID_OR_ERR_RET(eth_port_id, -EINVAL);
 
@@ -134,6 +143,8 @@ rte_event_timer_adapter_caps_get(uint8_t dev_id, uint32_t *caps)
 	struct rte_eventdev *dev;
 	const struct event_timer_adapter_ops *ops;
 
+	rte_eventdev_trace_timer_adapter_caps_get(dev_id);
+
 	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
 
 	dev = &rte_eventdevs[dev_id];
@@ -168,6 +179,8 @@ rte_event_crypto_adapter_caps_get(uint8_t dev_id, uint8_t cdev_id,
 	dev = &rte_eventdevs[dev_id];
 	cdev = rte_cryptodev_pmd_get_dev(cdev_id);
 
+	rte_eventdev_trace_crypto_adapter_caps_get(dev_id, dev, cdev_id, cdev);
+
 	if (caps == NULL)
 		return -EINVAL;
 
@@ -194,6 +207,8 @@ rte_event_eth_tx_adapter_caps_get(uint8_t dev_id, uint16_t eth_port_id,
 	dev = &rte_eventdevs[dev_id];
 	eth_dev = &rte_eth_devices[eth_port_id];
 
+	rte_eventdev_trace_eth_tx_adapter_caps_get(dev_id, dev, eth_port_id, eth_dev);
+
 	if (caps == NULL)
 		return -EINVAL;
 
@@ -524,6 +539,9 @@ rte_event_queue_default_conf_get(uint8_t dev_id, uint8_t queue_id,
 		return -ENOTSUP;
 	memset(queue_conf, 0, sizeof(struct rte_event_queue_conf));
 	(*dev->dev_ops->queue_def_conf)(dev, queue_id, queue_conf);
+
+	rte_eventdev_trace_queue_default_conf_get(dev_id, dev, queue_id, queue_conf);
+
 	return 0;
 }
 
@@ -652,6 +670,9 @@ rte_event_port_default_conf_get(uint8_t dev_id, uint8_t port_id,
 		return -ENOTSUP;
 	memset(port_conf, 0, sizeof(struct rte_event_port_conf));
 	(*dev->dev_ops->port_def_conf)(dev, port_id, port_conf);
+
+	rte_eventdev_trace_port_default_conf_get(dev_id, dev, port_id, port_conf);
+
 	return 0;
 }
 
@@ -754,6 +775,8 @@ rte_event_port_quiesce(uint8_t dev_id, uint8_t port_id,
 	RTE_EVENTDEV_VALID_DEVID_OR_RET(dev_id);
 	dev = &rte_eventdevs[dev_id];
 
+	rte_eventdev_trace_port_quiesce(dev_id, dev, port_id, args);
+
 	if (!is_valid_port(dev, port_id)) {
 		RTE_EDEV_LOG_ERR("Invalid port_id=%" PRIu8, port_id);
 		return;
@@ -789,6 +812,8 @@ rte_event_dev_attr_get(uint8_t dev_id, uint32_t attr_id,
 		return -EINVAL;
 	}
 
+	rte_eventdev_trace_attr_get(dev_id, dev, attr_id, *attr_value);
+
 	return 0;
 }
 
@@ -829,6 +854,9 @@ rte_event_port_attr_get(uint8_t dev_id, uint8_t port_id, uint32_t attr_id,
 	default:
 		return -EINVAL;
 	};
+
+	rte_eventdev_trace_port_attr_get(dev_id, dev, port_id, attr_id, *attr_value);
+
 	return 0;
 }
 
@@ -885,6 +913,9 @@ rte_event_queue_attr_get(uint8_t dev_id, uint8_t queue_id, uint32_t attr_id,
 	default:
 		return -EINVAL;
 	};
+
+	rte_eventdev_trace_queue_attr_get(dev_id, dev, queue_id, attr_id, *attr_value);
+
 	return 0;
 }
 
@@ -894,6 +925,8 @@ rte_event_queue_attr_set(uint8_t dev_id, uint8_t queue_id, uint32_t attr_id,
 {
 	struct rte_eventdev *dev;
 
+	rte_eventdev_trace_queue_attr_set(dev_id, queue_id, attr_id, attr_value);
+
 	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
 	dev = &rte_eventdevs[dev_id];
 	if (!is_valid_queue(dev, queue_id)) {
@@ -1048,6 +1081,8 @@ rte_event_port_unlinks_in_progress(uint8_t dev_id, uint8_t port_id)
 {
 	struct rte_eventdev *dev;
 
+	rte_eventdev_trace_port_unlinks_in_progress(dev_id, port_id);
+
 	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
 	dev = &rte_eventdevs[dev_id];
 	if (!is_valid_port(dev, port_id)) {
@@ -1091,6 +1126,9 @@ rte_event_port_links_get(uint8_t dev_id, uint8_t port_id,
 			++count;
 		}
 	}
+
+	rte_eventdev_trace_port_links_get(dev_id, port_id, count);
+
 	return count;
 }
 
@@ -1100,6 +1138,8 @@ rte_event_dequeue_timeout_ticks(uint8_t dev_id, uint64_t ns,
 {
 	struct rte_eventdev *dev;
 
+	rte_eventdev_trace_dequeue_timeout_ticks(dev_id, ns, timeout_ticks);
+
 	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
 	dev = &rte_eventdevs[dev_id];
 	if (*dev->dev_ops->timeout_ticks == NULL)
@@ -1125,6 +1165,8 @@ rte_event_dev_service_id_get(uint8_t dev_id, uint32_t *service_id)
 	if (dev->data->service_inited)
 		*service_id = dev->data->service_id;
 
+	rte_eventdev_trace_service_id_get(dev_id, *service_id);
+
 	return dev->data->service_inited ? 0 : -ESRCH;
 }
 
@@ -1285,6 +1327,9 @@ rte_event_vector_pool_create(const char *name, unsigned int n,
 	if (ret < 0)
 		goto err;
 
+	rte_eventdev_trace_vector_pool_create(mp, mp->name, mp->socket_id,
+		mp->size, mp->cache_size, mp->elt_size);
+
 	return mp;
 err:
 	rte_mempool_free(mp);
@@ -1332,6 +1377,8 @@ rte_event_dev_stop_flush_callback_register(uint8_t dev_id,
 
 	RTE_EDEV_LOG_DEBUG("Stop flush register dev_id=%" PRIu8, dev_id);
 
+	rte_eventdev_trace_stop_flush_callback_register(dev_id, callback, userdata);
+
 	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
 	dev = &rte_eventdevs[dev_id];
 
-- 
2.25.1


^ permalink raw reply	[flat|nested] 14+ messages in thread

* RE: [EXT] [PATCH v5] eventdev: add trace points
  2023-01-31 13:44       ` [PATCH v5] " Amit Prakash Shukla
@ 2023-02-01 10:16         ` Shijith Thotton
  2023-02-01 10:46           ` Amit Prakash Shukla
  2023-02-02  9:17         ` [PATCH v6] " Amit Prakash Shukla
  1 sibling, 1 reply; 14+ messages in thread
From: Shijith Thotton @ 2023-02-01 10:16 UTC (permalink / raw)
  To: Amit Prakash Shukla, Jerin Jacob Kollanukkaran,
	Abhinandan Gujjar, Naga Harish K S V, Erik Gabriel Carrillo
  Cc: dev, Amit Prakash Shukla

>Add trace points for eventdev functions.
>
>Signed-off-by: Amit Prakash Shukla <amitprakashs@marvell.com>
>---
>v2:
> - Fixed CI test failure
> - Code review suggestion from Abhinandan
>
>v3:
> - Removed trace symbols from version.map
>
>v4:
> - Fixed CI test failure
> - Cleaned-up unwanted includes and trace functions
> - Added traces to pending functions
>
>v5:
> - Fixed coding style issue
>
> lib/eventdev/eventdev_trace.h           | 495 +++++++++++++++++++++++-
> lib/eventdev/eventdev_trace_points.c    | 159 ++++++++
> lib/eventdev/rte_event_crypto_adapter.c |  18 +-
> lib/eventdev/rte_event_eth_rx_adapter.c |  31 +-
> lib/eventdev/rte_event_eth_tx_adapter.c |  21 +-
> lib/eventdev/rte_event_ring.c           |   9 +
> lib/eventdev/rte_event_timer_adapter.c  |  15 +
> lib/eventdev/rte_eventdev.c             |  49 ++-
> 8 files changed, 784 insertions(+), 13 deletions(-)
>
>diff --git a/lib/eventdev/eventdev_trace.h b/lib/eventdev/eventdev_trace.h
>index d48cd58850..71e996e562 100644
>--- a/lib/eventdev/eventdev_trace.h
>+++ b/lib/eventdev/eventdev_trace.h
>@@ -63,6 +63,7 @@ RTE_TRACE_POINT(
> 	rte_trace_point_emit_u16(port_conf->enqueue_depth);
> 	rte_trace_point_emit_u32(port_conf->event_port_cfg);
> 	rte_trace_point_emit_int(rc);
>+	rte_trace_point_emit_ptr(port_conf);
> )
>
> RTE_TRACE_POINT(
>@@ -250,16 +251,17 @@ RTE_TRACE_POINT(
>
> RTE_TRACE_POINT(
> 	rte_eventdev_trace_crypto_adapter_create,
>-	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint8_t dev_id, void *adapter,
>-		struct rte_event_port_conf *port_conf, uint8_t mode),
>+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint8_t dev_id,
>+		struct rte_event_port_conf *port_config, int mode, int ret),
> 	rte_trace_point_emit_u8(adptr_id);
> 	rte_trace_point_emit_u8(dev_id);
>-	rte_trace_point_emit_ptr(adapter);
>-	rte_trace_point_emit_u8(mode);
>-	rte_trace_point_emit_i32(port_conf->new_event_threshold);
>-	rte_trace_point_emit_u16(port_conf->dequeue_depth);
>-	rte_trace_point_emit_u16(port_conf->enqueue_depth);
>-	rte_trace_point_emit_u32(port_conf->event_port_cfg);
>+	rte_trace_point_emit_ptr(port_config);
>+	rte_trace_point_emit_i32(port_config->new_event_threshold);
>+	rte_trace_point_emit_u16(port_config->dequeue_depth);
>+	rte_trace_point_emit_u16(port_config->enqueue_depth);
>+	rte_trace_point_emit_u32(port_config->event_port_cfg);
>+	rte_trace_point_emit_int(mode);
>+	rte_trace_point_emit_int(ret);
> )
>
> RTE_TRACE_POINT(
>@@ -303,6 +305,483 @@ RTE_TRACE_POINT(
> 	rte_trace_point_emit_u8(adptr_id);
> )
>
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_crypto_adapter_event_port_get,
>+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint8_t event_port_id),
>+	rte_trace_point_emit_u8(adptr_id);
>+	rte_trace_point_emit_u8(event_port_id);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_crypto_adapter_service_id_get,
>+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint32_t service_id),
>+	rte_trace_point_emit_u8(adptr_id);
>+	rte_trace_point_emit_u32(service_id);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_attr_get,
>+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *dev, uint32_t
>attr_id,
>+		uint32_t attr_value),
>+	rte_trace_point_emit_u8(dev_id);
>+	rte_trace_point_emit_ptr(dev);
>+	rte_trace_point_emit_u32(attr_id);
>+	rte_trace_point_emit_u32(attr_value);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_get_dev_id,
>+	RTE_TRACE_POINT_ARGS(const char *name, int dev_id),
>+	rte_trace_point_emit_string(name);
>+	rte_trace_point_emit_int(dev_id);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_info_get,
>+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *dev_info, const
>void *dev),
>+	rte_trace_point_emit_u8(dev_id);
>+	rte_trace_point_emit_ptr(dev_info);
>+	rte_trace_point_emit_ptr(dev);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_service_id_get,
>+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint32_t service_id),
>+	rte_trace_point_emit_u8(dev_id);
>+	rte_trace_point_emit_u32(service_id);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_socket_id,
>+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *dev, int socket_id),
>+	rte_trace_point_emit_u8(dev_id);
>+	rte_trace_point_emit_ptr(dev);
>+	rte_trace_point_emit_int(socket_id);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_stop_flush_callback_register,
>+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *callback, const void
>*userdata),
>+	rte_trace_point_emit_u8(dev_id);
>+	rte_trace_point_emit_ptr(callback);
>+	rte_trace_point_emit_ptr(userdata);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_eth_rx_adapter_caps_get,
>+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint16_t eth_port_id),
>+	rte_trace_point_emit_u8(dev_id);
>+	rte_trace_point_emit_u16(eth_port_id);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_eth_rx_adapter_cb_register,
>+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint16_t eth_dev_id, const
>void *cb_fn,
>+		const void *cb_arg),
>+	rte_trace_point_emit_u8(adptr_id);
>+	rte_trace_point_emit_u16(eth_dev_id);
>+	rte_trace_point_emit_ptr(cb_fn);
>+	rte_trace_point_emit_ptr(cb_arg);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_eth_rx_adapter_create_with_params,
>+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint8_t dev_id,
>+		const struct rte_event_port_conf *port_config,
>+		const struct rte_event_eth_rx_adapter_params *rxa_params,
>+		int ret),
>+	rte_trace_point_emit_u8(adptr_id);
>+	rte_trace_point_emit_u8(dev_id);
>+	rte_trace_point_emit_ptr(port_config);
>+	rte_trace_point_emit_i32(port_config->new_event_threshold);
>+	rte_trace_point_emit_u16(port_config->dequeue_depth);
>+	rte_trace_point_emit_u16(port_config->enqueue_depth);
>+	rte_trace_point_emit_u32(port_config->event_port_cfg);
>+	rte_trace_point_emit_ptr(rxa_params);
>+	rte_trace_point_emit_u16(rxa_params->event_buf_size);
>+	rte_trace_point_emit_int(ret);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_eth_rx_adapter_service_id_get,
>+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint32_t service_id),
>+	rte_trace_point_emit_u8(adptr_id);
>+	rte_trace_point_emit_u32(service_id);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_eth_rx_adapter_event_port_get,
>+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint8_t event_port_id),
>+	rte_trace_point_emit_u8(adptr_id);
>+	rte_trace_point_emit_u8(event_port_id);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_eth_rx_adapter_vector_limits_get,
>+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint16_t eth_port_id,
>+		uint16_t min_sz, uint16_t max_sz, uint8_t log2_sz,
>+		uint64_t min_timeout_ns, uint64_t max_timeout_ns, int ret),
>+	rte_trace_point_emit_u8(dev_id);
>+	rte_trace_point_emit_u16(eth_port_id);
>+	rte_trace_point_emit_u16(min_sz);
>+	rte_trace_point_emit_u16(max_sz);
>+	rte_trace_point_emit_u8(log2_sz);
>+	rte_trace_point_emit_u64(min_timeout_ns);
>+	rte_trace_point_emit_u64(max_timeout_ns);
>+	rte_trace_point_emit_int(ret);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_eth_tx_adapter_caps_get,
>+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *dev, uint16_t
>eth_port_id,
>+		const void *eth_dev),
>+	rte_trace_point_emit_u8(dev_id);
>+	rte_trace_point_emit_ptr(dev);
>+	rte_trace_point_emit_u16(eth_port_id);
>+	rte_trace_point_emit_ptr(eth_dev);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_eth_tx_adapter_event_port_get,
>+	RTE_TRACE_POINT_ARGS(uint8_t id),
>+	rte_trace_point_emit_u8(id);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_eth_tx_adapter_service_id_get,
>+	RTE_TRACE_POINT_ARGS(uint8_t id, uint32_t service_id),
>+	rte_trace_point_emit_u8(id);
>+	rte_trace_point_emit_u32(service_id);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_port_attr_get,
>+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *dev, uint8_t
>port_id,
>+		uint32_t attr_id, uint32_t attr_value),
>+	rte_trace_point_emit_u8(dev_id);
>+	rte_trace_point_emit_ptr(dev);
>+	rte_trace_point_emit_u8(port_id);
>+	rte_trace_point_emit_u32(attr_id);
>+	rte_trace_point_emit_u32(attr_value);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_port_default_conf_get,
>+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *dev, uint8_t
>port_id,
>+		const struct rte_event_port_conf *port_conf),
>+	rte_trace_point_emit_u8(dev_id);
>+	rte_trace_point_emit_ptr(dev);
>+	rte_trace_point_emit_u8(port_id);
>+	rte_trace_point_emit_ptr(port_conf);
>+	rte_trace_point_emit_i32(port_conf->new_event_threshold);
>+	rte_trace_point_emit_u16(port_conf->dequeue_depth);
>+	rte_trace_point_emit_u16(port_conf->enqueue_depth);
>+	rte_trace_point_emit_u32(port_conf->event_port_cfg);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_port_links_get,
>+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint8_t port_id, int count),
>+	rte_trace_point_emit_u8(dev_id);
>+	rte_trace_point_emit_u8(port_id);
>+	rte_trace_point_emit_int(count);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_port_unlinks_in_progress,
>+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint8_t port_id),
>+	rte_trace_point_emit_u8(dev_id);
>+	rte_trace_point_emit_u8(port_id);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_queue_attr_get,
>+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *dev, uint8_t
>queue_id,
>+		uint32_t attr_id, uint32_t attr_value),
>+	rte_trace_point_emit_u8(dev_id);
>+	rte_trace_point_emit_ptr(dev);
>+	rte_trace_point_emit_u8(queue_id);
>+	rte_trace_point_emit_u32(attr_id);
>+	rte_trace_point_emit_u32(attr_value);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_queue_default_conf_get,
>+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *dev, uint8_t
>queue_id,
>+		const struct rte_event_queue_conf *queue_conf),
>+	rte_trace_point_emit_u8(dev_id);
>+	rte_trace_point_emit_ptr(dev);
>+	rte_trace_point_emit_u8(queue_id);
>+	rte_trace_point_emit_ptr(queue_conf);
>+	rte_trace_point_emit_u32(queue_conf->nb_atomic_flows);
>+	rte_trace_point_emit_u32(queue_conf->nb_atomic_order_sequences);
>+	rte_trace_point_emit_u32(queue_conf->event_queue_cfg);
>+	rte_trace_point_emit_u8(queue_conf->schedule_type);
>+	rte_trace_point_emit_u8(queue_conf->priority);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_ring_create,
>+	RTE_TRACE_POINT_ARGS(const char *name, unsigned int count,
>+		int socket_id, unsigned int flags),
>+	rte_trace_point_emit_string(name);
>+	rte_trace_point_emit_u32(count);
>+	rte_trace_point_emit_int(socket_id);
>+	rte_trace_point_emit_u32(flags);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_ring_free,
>+	RTE_TRACE_POINT_ARGS(const char *name),
>+	rte_trace_point_emit_string(name);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_ring_init,
>+	RTE_TRACE_POINT_ARGS(const void *r, const char *name,
>+		unsigned int count, unsigned int flags),
>+	rte_trace_point_emit_ptr(r);
>+	rte_trace_point_emit_string(name);
>+	rte_trace_point_emit_u32(count);
>+	rte_trace_point_emit_u32(flags);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_ring_lookup,
>+	RTE_TRACE_POINT_ARGS(const char *name),
>+	rte_trace_point_emit_string(name);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_timer_adapter_caps_get,
>+	RTE_TRACE_POINT_ARGS(uint8_t dev_id),
>+	rte_trace_point_emit_u8(dev_id);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_timer_adapter_get_info,
>+	RTE_TRACE_POINT_ARGS(const void *adapter,
>+		const struct rte_event_timer_adapter_info *adapter_info),
>+	rte_trace_point_emit_ptr(adapter);
>+	rte_trace_point_emit_ptr(adapter_info);
>+	rte_trace_point_emit_u64(adapter_info->min_resolution_ns);
>+	rte_trace_point_emit_u64(adapter_info->max_tmo_ns);
>+	rte_trace_point_emit_u32(adapter_info->caps);
>+	rte_trace_point_emit_u16(adapter_info->event_dev_port_id);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_timer_adapter_lookup,
>+	RTE_TRACE_POINT_ARGS(uint16_t adapter_id, const void *adapter),
>+	rte_trace_point_emit_u16(adapter_id);
>+	rte_trace_point_emit_ptr(adapter);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_timer_adapter_service_id_get,
>+	RTE_TRACE_POINT_ARGS(const struct rte_event_timer_adapter
>*adapter,
>+		uint32_t service_id),
>+	rte_trace_point_emit_ptr(adapter);
>+	rte_trace_point_emit_u32(service_id);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_vector_pool_create,
>+	RTE_TRACE_POINT_ARGS(const void *mp, const char *name, int
>socket_id,
>+		uint32_t size, uint32_t cache_size, uint32_t elt_size),
>+	rte_trace_point_emit_ptr(mp);
>+	rte_trace_point_emit_string(name);
>+	rte_trace_point_emit_int(socket_id);
>+	rte_trace_point_emit_u32(size);
>+	rte_trace_point_emit_u32(cache_size);
>+	rte_trace_point_emit_u32(elt_size);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_eth_rx_adapter_queue_conf_get,
>+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint16_t eth_dev_id,
>+		uint16_t rx_queue_id, const void *queue_conf),
>+	rte_trace_point_emit_u8(adptr_id);
>+	rte_trace_point_emit_u16(eth_dev_id);
>+	rte_trace_point_emit_u16(rx_queue_id);
>+	rte_trace_point_emit_ptr(queue_conf);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_queue_attr_set,
>+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint8_t queue_id, uint32_t
>attr_id,
>+		uint32_t attr_value),
 
attr_value should be of type uint64_t.

>+	rte_trace_point_emit_u8(dev_id);
>+	rte_trace_point_emit_u8(queue_id);
>+	rte_trace_point_emit_u32(attr_id);
>+	rte_trace_point_emit_u32(attr_value);
 
Same here.

>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_port_quiesce,
>+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *dev, uint8_t
>port_id, const void *args),
>+	rte_trace_point_emit_u8(dev_id);
>+	rte_trace_point_emit_ptr(dev);
>+	rte_trace_point_emit_u8(port_id);
>+	rte_trace_point_emit_ptr(args);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_crypto_adapter_caps_get,
>+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *dev, uint8_t
>cdev_id,
>+		const void *cdev),
>+	rte_trace_point_emit_u8(dev_id);
>+	rte_trace_point_emit_ptr(dev);
>+	rte_trace_point_emit_u8(cdev_id);
>+	rte_trace_point_emit_ptr(cdev);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_dequeue_timeout_ticks,
>+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint64_t ns,
>+		const void *timeout_ticks),
>+	rte_trace_point_emit_u8(dev_id);
>+	rte_trace_point_emit_u64(ns);
>+	rte_trace_point_emit_ptr(timeout_ticks);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_crypto_adapter_stats_get,
>+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, const void *stats,
>+		uint64_t event_poll_count, uint64_t event_deq_count,
>+		uint64_t crypto_enq_count, uint64_t crypto_enq_fail,
>+		uint64_t crypto_deq_count, uint64_t event_enq_count,
>+		uint64_t event_enq_retry_count, uint64_t
>event_enq_fail_count),
>+	rte_trace_point_emit_u8(adptr_id);
>+	rte_trace_point_emit_ptr(stats);
>+	rte_trace_point_emit_u64(event_poll_count);
>+	rte_trace_point_emit_u64(event_deq_count);
>+	rte_trace_point_emit_u64(crypto_enq_count);
>+	rte_trace_point_emit_u64(crypto_enq_fail);
>+	rte_trace_point_emit_u64(crypto_deq_count);
>+	rte_trace_point_emit_u64(event_enq_count);
>+	rte_trace_point_emit_u64(event_enq_retry_count);
>+	rte_trace_point_emit_u64(event_enq_fail_count);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_crypto_adapter_stats_reset,
>+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id),
>+	rte_trace_point_emit_u8(adptr_id);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_eth_rx_adapter_stats_get,
>+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, const void *stats),
>+	rte_trace_point_emit_u8(adptr_id);
>+	rte_trace_point_emit_ptr(stats);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_crypto_adapter_vector_limits_get,
>+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint16_t cdev_id,
>+		const void *limits),
>+	rte_trace_point_emit_u8(dev_id);
>+	rte_trace_point_emit_u16(cdev_id);
>+	rte_trace_point_emit_ptr(limits);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_eth_rx_adapter_queue_stats_get,
>+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint16_t eth_dev_id,
>+		uint16_t rx_queue_id, const void *stats),
>+	rte_trace_point_emit_u8(adptr_id);
>+	rte_trace_point_emit_u16(eth_dev_id);
>+	rte_trace_point_emit_u16(rx_queue_id);
>+	rte_trace_point_emit_ptr(stats);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_eth_rx_adapter_stats_reset,
>+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id),
>+	rte_trace_point_emit_u8(adptr_id);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_eth_rx_adapter_queue_stats_reset,
>+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint16_t eth_dev_id,
>+		uint16_t rx_queue_id),
>+	rte_trace_point_emit_u8(adptr_id);
>+	rte_trace_point_emit_u16(eth_dev_id);
>+	rte_trace_point_emit_u16(rx_queue_id);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_eth_rx_adapter_instance_get,
>+	RTE_TRACE_POINT_ARGS(uint16_t eth_dev_id, uint16_t rx_queue_id,
>+		uint8_t rxa_inst_id),
>+	rte_trace_point_emit_u16(eth_dev_id);
>+	rte_trace_point_emit_u16(rx_queue_id);
>+	rte_trace_point_emit_u8(rxa_inst_id);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_eth_tx_adapter_stats_get,
>+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint64_t tx_retry,
>+		uint64_t tx_packets, uint64_t tx_dropped, int ret),
>+	rte_trace_point_emit_u8(adptr_id);
>+	rte_trace_point_emit_u64(tx_retry);
>+	rte_trace_point_emit_u64(tx_packets);
>+	rte_trace_point_emit_u64(tx_dropped);
>+	rte_trace_point_emit_int(ret);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_eth_tx_adapter_stats_reset,
>+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, int ret),
>+	rte_trace_point_emit_u8(adptr_id);
>+	rte_trace_point_emit_int(ret);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_eth_tx_adapter_instance_get,
>+	RTE_TRACE_POINT_ARGS(uint16_t eth_dev_id, uint16_t tx_queue_id,
>+		uint8_t txa_inst_id),
>+	rte_trace_point_emit_u16(eth_dev_id);
>+	rte_trace_point_emit_u16(tx_queue_id);
>+	rte_trace_point_emit_u8(txa_inst_id);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_eth_tx_adapter_queue_start,
>+	RTE_TRACE_POINT_ARGS(uint16_t eth_dev_id, uint16_t tx_queue_id),
>+	rte_trace_point_emit_u16(eth_dev_id);
>+	rte_trace_point_emit_u16(tx_queue_id);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_eth_tx_adapter_queue_stop,
>+	RTE_TRACE_POINT_ARGS(uint16_t eth_dev_id, uint16_t tx_queue_id),
>+	rte_trace_point_emit_u16(eth_dev_id);
>+	rte_trace_point_emit_u16(tx_queue_id);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_timer_adapter_stats_get,
>+	RTE_TRACE_POINT_ARGS(const void *adapter, const void *stats),
>+	rte_trace_point_emit_ptr(adapter);
>+	rte_trace_point_emit_ptr(stats);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_timer_adapter_stats_reset,
>+	RTE_TRACE_POINT_ARGS(const void *adapter),
>+	rte_trace_point_emit_ptr(adapter);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_timer_remaining_ticks_get,
>+	RTE_TRACE_POINT_ARGS(const void *adapter, const void *evtim, const
>void *ticks_remaining),
>+	rte_trace_point_emit_ptr(adapter);
>+	rte_trace_point_emit_ptr(evtim);
>+	rte_trace_point_emit_ptr(ticks_remaining);
>+)
>+
> #ifdef __cplusplus
> }
> #endif
>diff --git a/lib/eventdev/eventdev_trace_points.c
>b/lib/eventdev/eventdev_trace_points.c
>index de6b1f4417..76144cfe75 100644
>--- a/lib/eventdev/eventdev_trace_points.c
>+++ b/lib/eventdev/eventdev_trace_points.c
>@@ -124,3 +124,162 @@
>RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_stop,
>
> RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_enqueue,
> 	lib.eventdev.crypto.enq)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_event_port
>_get,
>+	lib.eventdev.crypto.adapter_event_port_get)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_service_id_
>get,
>+	lib.eventdev.crypto.adapter_service_id_get)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_vector_limi
>ts_get,
>+	lib.eventdev.crypto.adapter_vector_limits_get)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_attr_get,
>+	lib.eventdev.attr_get)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_get_dev_id,
>+	lib.eventdev.get_dev_id)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_info_get,
>+	lib.eventdev.info_get)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_service_id_get,
>+	lib.eventdev.service_id_get)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_socket_id,
>+	lib.eventdev.socket.id)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_stop_flush_callback_register
>,
>+	lib.eventdev.stop.flush.callback.register)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_caps_get,
>+	lib.eventdev.eth.rx.adapter.caps.get)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_cb_register
>,
>+	lib.eventdev.eth.rx.adapter.cb.register)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_service_id_
>get,
>+	lib.eventdev.eth.rx.adapter.service.id.get)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_event_port
>_get,
>+	lib.eventdev.eth.rx.adapter.event.port.get)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_vector_limi
>ts_get,
>+	lib.eventdev.eth.rx.adapter.vector.limits.get)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_queue_sta
>ts_get,
>+	lib.eventdev.eth.rx.adapter.queue.stats.get)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_stats_reset
>,
>+	lib.eventdev.eth.rx.adapter.stats.reset)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_queue_sta
>ts_reset,
>+	lib.eventdev.eth.rx.adapter.queue.stats.reset)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_instance_g
>et,
>+	lib.eventdev.eth.rx.adapter.instance.get)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_caps_get,
>+	lib.eventdev.eth.tx.adapter.caps.get)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_event_port
>_get,
>+	lib.eventdev.eth.tx.adapter.event.port.get)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_service_id_
>get,
>+	lib.eventdev.eth.tx.adapter.service.id.get)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_stats_get,
>+	lib.eventdev.eth.tx.adapter.stats.get)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_stats_reset
>,
>+	lib.eventdev.eth.tx.adapter.stats.reset)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_instance_g
>et,
>+	lib.eventdev.eth.tx.adapter.instance.get)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_port_attr_get,
>+	lib.eventdev.port.attr.get)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_port_default_conf_get,
>+	lib.eventdev.port.default.conf.get)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_port_links_get,
>+	lib.eventdev.port.links.get)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_port_unlinks_in_progress,
>+	lib.eventdev.port.unlinks.in.progress)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_queue_attr_get,
>+	lib.eventdev.queue.attr.get)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_queue_default_conf_get,
>+	lib.eventdev.queue.default.conf.get)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_ring_create,
>+	lib.eventdev.ring.create)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_ring_free,
>+	lib.eventdev.ring.free)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_ring_init,
>+	lib.eventdev.ring.init)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_ring_lookup,
>+	lib.eventdev.ring.lookup)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_adapter_caps_get,
>+	lib.eventdev.timer.adapter.caps.get)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_adapter_get_info,
>+	lib.eventdev.timer.adapter.get.info)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_adapter_lookup,
>+	lib.eventdev.timer.adapter.lookup)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_adapter_service_id_g
>et,
>+	lib.eventdev.timer.adapter.service.id.get)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_vector_pool_create,
>+	lib.eventdev.vector.pool.create)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_create_wit
>h_params,
>+	lib.eventdev.eth.rx.adapter.create.with.params)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_queue_con
>f_get,
>+	lib.eventdev.eth.rx.adapter.queue.conf.get)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_queue_attr_set,
>+	lib.eventdev.queue.attr.set)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_port_quiesce,
>+	lib.eventdev.port.quiesce)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_caps_get,
>+	lib.eventdev.crypto.adapter.caps.get)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_dequeue_timeout_ticks,
>+	lib.eventdev.dequeue.timeout.ticks)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_stats_get,
>+	lib.eventdev.crypto.adapter.stats.get)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_stats_reset
>,
>+	lib.eventdev.crypto.adapter.stats.reset)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_stats_get,
>+	lib.eventdev.rx.adapter.stats.get)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_queue_sta
>rt,
>+	lib.eventdev.tx.adapter.queue.start)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_queue_sto
>p,
>+	lib.eventdev.tx.adapter.queue.stop)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_adapter_stats_get,
>+	lib.eventdev.timer.adapter.stats.get)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_adapter_stats_reset,
>+	lib.eventdev.timer.adapter.stats.reset)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_remaining_ticks_get,
>+	lib.eventdev.timer.remaining.ticks.get)
>diff --git a/lib/eventdev/rte_event_crypto_adapter.c
>b/lib/eventdev/rte_event_crypto_adapter.c
>index bb782208f0..7f0a25a4cc 100644
>--- a/lib/eventdev/rte_event_crypto_adapter.c
>+++ b/lib/eventdev/rte_event_crypto_adapter.c
>@@ -386,8 +386,6 @@ rte_event_crypto_adapter_create_ext(uint8_t id, uint8_t
>dev_id,
>
> 	event_crypto_adapter[id] = adapter;
>
>-	rte_eventdev_trace_crypto_adapter_create(id, dev_id, adapter,
>conf_arg,
>-		mode);
> 	return 0;
> }
>
>@@ -415,6 +413,8 @@ rte_event_crypto_adapter_create(uint8_t id, uint8_t
>dev_id,
> 	if (ret)
> 		rte_free(pc);
>
>+	rte_eventdev_trace_crypto_adapter_create(id, dev_id, port_config,
>mode,	ret);
>+
> 	return ret;
> }
>
>@@ -1293,6 +1293,12 @@ rte_event_crypto_adapter_stats_get(uint8_t id,
> 	stats->crypto_deq_count += dev_stats_sum.crypto_deq_count;
> 	stats->event_enq_count += dev_stats_sum.event_enq_count;
>
>+	rte_eventdev_trace_crypto_adapter_stats_get(id, stats,
>+		stats->event_poll_count, stats->event_deq_count,
>+		stats->crypto_enq_count, stats->crypto_enq_fail,
>+		stats->crypto_deq_count, stats->event_enq_count,
>+		stats->event_enq_retry_count, stats->event_enq_fail_count);
>+
> 	return 0;
> }
>
>@@ -1304,6 +1310,8 @@ rte_event_crypto_adapter_stats_reset(uint8_t id)
> 	struct rte_eventdev *dev;
> 	uint32_t i;
>
>+	rte_eventdev_trace_crypto_adapter_stats_reset(id);
>+
> 	if (eca_memzone_lookup())
> 		return -ENOMEM;
>
>@@ -1341,6 +1349,8 @@ rte_event_crypto_adapter_service_id_get(uint8_t id,
>uint32_t *service_id)
> 	if (adapter->service_inited)
> 		*service_id = adapter->service_id;
>
>+	rte_eventdev_trace_crypto_adapter_service_id_get(id, *service_id);
>+
> 	return adapter->service_inited ? 0 : -ESRCH;
> }
>
>@@ -1357,6 +1367,8 @@ rte_event_crypto_adapter_event_port_get(uint8_t id,
>uint8_t *event_port_id)
>
> 	*event_port_id = adapter->event_port_id;
>
>+	rte_eventdev_trace_crypto_adapter_event_port_get(id,
>*event_port_id);
>+
> 	return 0;
> }
>
>@@ -1370,6 +1382,8 @@ rte_event_crypto_adapter_vector_limits_get(
> 	uint32_t cap;
> 	int ret;
>
>+	rte_eventdev_trace_crypto_adapter_vector_limits_get(dev_id, cdev_id,
>limits);
>+
> 	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
>
> 	if (!rte_cryptodev_is_valid_dev(cdev_id)) {
>diff --git a/lib/eventdev/rte_event_eth_rx_adapter.c
>b/lib/eventdev/rte_event_eth_rx_adapter.c
>index 34aa87379e..91bbba715b 100644
>--- a/lib/eventdev/rte_event_eth_rx_adapter.c
>+++ b/lib/eventdev/rte_event_eth_rx_adapter.c
>@@ -2541,6 +2541,9 @@
>rte_event_eth_rx_adapter_create_with_params(uint8_t id, uint8_t dev_id,
> 	if (ret)
> 		rte_free(pc);
>
>+	rte_eventdev_trace_eth_rx_adapter_create_with_params(id, dev_id,
>+		port_config, rxa_params, ret);
>+
> 	return ret;
> }
>
>@@ -2929,6 +2932,9 @@ rte_event_eth_rx_adapter_vector_limits_get(
> 		ret = rxa_sw_vector_limits(limits);
> 	}
>
>+	rte_eventdev_trace_eth_rx_adapter_vector_limits_get(dev_id,
>eth_port_id,
>+		limits->min_sz, limits->max_sz, limits->log2_sz,
>+		limits->min_timeout_ns, limits->max_timeout_ns, ret);
> 	return ret;
> }
>
>@@ -2970,6 +2976,8 @@ rte_event_eth_rx_adapter_stats_get(uint8_t id,
> 	uint32_t i, j;
> 	int ret;
>
>+	rte_eventdev_trace_eth_rx_adapter_stats_get(id, stats);
>+
> 	if (rxa_memzone_lookup())
> 		return -ENOMEM;
>
>@@ -3041,6 +3049,9 @@ rte_event_eth_rx_adapter_queue_stats_get(uint8_t id,
> 	struct rte_event_eth_rx_adapter_stats *q_stats;
> 	struct rte_eventdev *dev;
>
>+	rte_eventdev_trace_eth_rx_adapter_queue_stats_get(id, eth_dev_id,
>+							  rx_queue_id, stats);
>+
> 	if (rxa_memzone_lookup())
> 		return -ENOMEM;
>
>@@ -3098,6 +3109,8 @@ rte_event_eth_rx_adapter_stats_reset(uint8_t id)
> 	struct eth_rx_queue_info *queue_info;
> 	uint32_t i, j;
>
>+	rte_eventdev_trace_eth_rx_adapter_stats_reset(id);
>+
> 	if (rxa_memzone_lookup())
> 		return -ENOMEM;
>
>@@ -3145,6 +3158,9 @@ rte_event_eth_rx_adapter_queue_stats_reset(uint8_t
>id,
> 	struct eth_rx_queue_info *queue_info;
> 	struct rte_eventdev *dev;
>
>+	rte_eventdev_trace_eth_rx_adapter_queue_stats_reset(id, eth_dev_id,
>+							    rx_queue_id);
>+
> 	if (rxa_memzone_lookup())
> 		return -ENOMEM;
>
>@@ -3203,6 +3219,8 @@ rte_event_eth_rx_adapter_service_id_get(uint8_t id,
>uint32_t *service_id)
> 	if (rx_adapter->service_inited)
> 		*service_id = rx_adapter->service_id;
>
>+	rte_eventdev_trace_eth_rx_adapter_service_id_get(id, *service_id);
>+
> 	return rx_adapter->service_inited ? 0 : -ESRCH;
> }
>
>@@ -3223,6 +3241,8 @@ rte_event_eth_rx_adapter_event_port_get(uint8_t id,
>uint8_t *event_port_id)
> 	if (rx_adapter->service_inited)
> 		*event_port_id = rx_adapter->event_port_id;
>
>+	rte_eventdev_trace_eth_rx_adapter_event_port_get(id,
>*event_port_id);
>+
> 	return rx_adapter->service_inited ? 0 : -ESRCH;
> }
>
>@@ -3237,6 +3257,9 @@ rte_event_eth_rx_adapter_cb_register(uint8_t id,
> 	uint32_t cap;
> 	int ret;
>
>+	rte_eventdev_trace_eth_rx_adapter_cb_register(id, eth_dev_id, cb_fn,
>+						      cb_arg);
>+
> 	RTE_EVENT_ETH_RX_ADAPTER_ID_VALID_OR_ERR_RET(id, -EINVAL);
> 	RTE_ETH_VALID_PORTID_OR_ERR_RET(eth_dev_id, -EINVAL);
>
>@@ -3284,6 +3307,9 @@ rte_event_eth_rx_adapter_queue_conf_get(uint8_t id,
> 	struct eth_rx_queue_info *queue_info;
> 	int ret;
>
>+	rte_eventdev_trace_eth_rx_adapter_queue_conf_get(id, eth_dev_id,
>+							 rx_queue_id,
>queue_conf);
>+
> 	if (rxa_memzone_lookup())
> 		return -ENOMEM;
>
>@@ -3429,8 +3455,11 @@ rte_event_eth_rx_adapter_instance_get(uint16_t
>eth_dev_id,
> 		}
>
> 		/* return if entry found */
>-		if (ret == 0)
>+		if (ret == 0) {
>+
>	rte_eventdev_trace_eth_rx_adapter_instance_get(eth_dev_id,
>rx_queue_id,
>+								       *rxa_inst_id);
> 			return ret;
>+		}
> 	}
>
> 	return -EINVAL;
>diff --git a/lib/eventdev/rte_event_eth_tx_adapter.c
>b/lib/eventdev/rte_event_eth_tx_adapter.c
>index 6e9bcb1b79..cce50c3c18 100644
>--- a/lib/eventdev/rte_event_eth_tx_adapter.c
>+++ b/lib/eventdev/rte_event_eth_tx_adapter.c
>@@ -995,6 +995,8 @@ txa_service_id_get(uint8_t id, uint32_t *service_id)
> 		return -EINVAL;
>
> 	*service_id = txa->service_id;
>+
>+	rte_eventdev_trace_eth_tx_adapter_service_id_get(id, *service_id);
> 	return 0;
> }
>
>@@ -1123,6 +1125,8 @@ rte_event_eth_tx_adapter_create_ext(uint8_t id,
>uint8_t dev_id,
> int
> rte_event_eth_tx_adapter_event_port_get(uint8_t id, uint8_t *event_port_id)
> {
>+	rte_eventdev_trace_eth_tx_adapter_event_port_get(id);
>+
> 	TXA_CHECK_OR_ERR_RET(id);
>
> 	return txa_service_event_port_get(id, event_port_id);
>@@ -1264,6 +1268,9 @@ rte_event_eth_tx_adapter_stats_get(uint8_t id,
> 			ret = txa_service_stats_get(id, stats);
> 	}
>
>+	rte_eventdev_trace_eth_tx_adapter_stats_get(id, stats->tx_retry, stats-
>>tx_packets,
>+						    stats->tx_dropped, ret);
>+
> 	return ret;
> }
>
>@@ -1278,6 +1285,9 @@ rte_event_eth_tx_adapter_stats_reset(uint8_t id)
> 		txa_dev_stats_reset(id)(id, txa_evdev(id)) : 0;
> 	if (ret == 0)
> 		ret = txa_service_stats_reset(id);
>+
>+	rte_eventdev_trace_eth_tx_adapter_stats_reset(id, ret);
>+
> 	return ret;
> }
>
>@@ -1341,8 +1351,11 @@ rte_event_eth_tx_adapter_instance_get(uint16_t
>eth_dev_id,
> 								 tx_queue_id,
> 								 txa_inst_id)
> 							: -EINVAL;
>-			if (ret == 0)
>+			if (ret == 0) {
>+
>	rte_eventdev_trace_eth_tx_adapter_instance_get(eth_dev_id,
>+								tx_queue_id,
>*txa_inst_id);
> 				return ret;
>+			}
> 		} else {
> 			struct rte_eth_dev *eth_dev;
>
>@@ -1351,6 +1364,8 @@ rte_event_eth_tx_adapter_instance_get(uint16_t
>eth_dev_id,
> 			if (txa_service_is_queue_added(txa, eth_dev,
> 						       tx_queue_id)) {
> 				*txa_inst_id = txa->id;
>+
>	rte_eventdev_trace_eth_tx_adapter_instance_get(eth_dev_id,
>+								tx_queue_id,
>*txa_inst_id);
> 				return 0;
> 			}
> 		}
>@@ -1426,11 +1441,15 @@ txa_queue_start_state_set(uint16_t eth_dev_id,
>uint16_t tx_queue_id,
> int
> rte_event_eth_tx_adapter_queue_start(uint16_t eth_dev_id, uint16_t
>tx_queue_id)
> {
>+	rte_eventdev_trace_eth_tx_adapter_queue_start(eth_dev_id,
>tx_queue_id);
>+
> 	return txa_queue_start_state_set(eth_dev_id, tx_queue_id, true);
> }
>
> int
> rte_event_eth_tx_adapter_queue_stop(uint16_t eth_dev_id, uint16_t
>tx_queue_id)
> {
>+	rte_eventdev_trace_eth_tx_adapter_queue_stop(eth_dev_id,
>tx_queue_id);
>+
> 	return txa_queue_start_state_set(eth_dev_id, tx_queue_id, false);
> }
>diff --git a/lib/eventdev/rte_event_ring.c b/lib/eventdev/rte_event_ring.c
>index c070715148..b965970cf9 100644
>--- a/lib/eventdev/rte_event_ring.c
>+++ b/lib/eventdev/rte_event_ring.c
>@@ -5,6 +5,7 @@
>
>
> #include "rte_event_ring.h"
>+#include "eventdev_trace.h"
>
> int
> rte_event_ring_init(struct rte_event_ring *r, const char *name,
>@@ -14,6 +15,8 @@ rte_event_ring_init(struct rte_event_ring *r, const char
>*name,
> 	RTE_BUILD_BUG_ON((sizeof(struct rte_event_ring) &
> 			  RTE_CACHE_LINE_MASK) != 0);
>
>+	rte_eventdev_trace_ring_init(r, name, count, flags);
>+
> 	/* init the ring structure */
> 	return rte_ring_init(&r->r, name, count, flags);
> }
>@@ -23,6 +26,8 @@ struct rte_event_ring *
> rte_event_ring_create(const char *name, unsigned int count, int socket_id,
> 		unsigned int flags)
> {
>+	rte_eventdev_trace_ring_create(name, count, socket_id, flags);
>+
> 	return (struct rte_event_ring *)rte_ring_create_elem(name,
> 						sizeof(struct rte_event),
> 						count, socket_id, flags);
>@@ -32,6 +37,8 @@ rte_event_ring_create(const char *name, unsigned int
>count, int socket_id,
> struct rte_event_ring *
> rte_event_ring_lookup(const char *name)
> {
>+	rte_eventdev_trace_ring_lookup(name);
>+
> 	return (struct rte_event_ring *)rte_ring_lookup(name);
> }
>
>@@ -39,5 +46,7 @@ rte_event_ring_lookup(const char *name)
> void
> rte_event_ring_free(struct rte_event_ring *r)
> {
>+	rte_eventdev_trace_ring_free(r->r.name);
>+
> 	rte_ring_free((struct rte_ring *)r);
> }
>diff --git a/lib/eventdev/rte_event_timer_adapter.c
>b/lib/eventdev/rte_event_timer_adapter.c
>index d357f7403a..61712c3bd5 100644
>--- a/lib/eventdev/rte_event_timer_adapter.c
>+++ b/lib/eventdev/rte_event_timer_adapter.c
>@@ -275,6 +275,8 @@ rte_event_timer_adapter_get_info(const struct
>rte_event_timer_adapter *adapter,
> 	adapter_info->event_dev_port_id = adapter->data->event_port_id;
> 	adapter_info->caps = adapter->data->caps;
>
>+	rte_eventdev_trace_timer_adapter_get_info(adapter, adapter_info);
>+
> 	return 0;
> }
>
>@@ -386,6 +388,8 @@ rte_event_timer_adapter_lookup(uint16_t adapter_id)
>
> 	adapter->allocated = 1;
>
>+	rte_eventdev_trace_timer_adapter_lookup(adapter_id, adapter);
>+
> 	return adapter;
> }
>
>@@ -436,9 +440,14 @@ rte_event_timer_adapter_service_id_get(struct
>rte_event_timer_adapter *adapter,
> {
> 	ADAPTER_VALID_OR_ERR_RET(adapter, -EINVAL);
>
>+	if (service_id == NULL)
>+		return -EINVAL;
>+
> 	if (adapter->data->service_inited && service_id != NULL)
> 		*service_id = adapter->data->service_id;
>
>+	rte_eventdev_trace_timer_adapter_service_id_get(adapter,
>*service_id);
>+
> 	return adapter->data->service_inited ? 0 : -ESRCH;
> }
>
>@@ -446,6 +455,8 @@ int
> rte_event_timer_adapter_stats_get(struct rte_event_timer_adapter *adapter,
> 				  struct rte_event_timer_adapter_stats *stats)
> {
>+	rte_eventdev_trace_timer_adapter_stats_get(adapter, stats);
>+
> 	ADAPTER_VALID_OR_ERR_RET(adapter, -EINVAL);
> 	FUNC_PTR_OR_ERR_RET(adapter->ops->stats_get, -EINVAL);
> 	if (stats == NULL)
>@@ -457,6 +468,8 @@ rte_event_timer_adapter_stats_get(struct
>rte_event_timer_adapter *adapter,
> int
> rte_event_timer_adapter_stats_reset(struct rte_event_timer_adapter
>*adapter)
> {
>+	rte_eventdev_trace_timer_adapter_stats_reset(adapter);
>+
> 	ADAPTER_VALID_OR_ERR_RET(adapter, -EINVAL);
> 	FUNC_PTR_OR_ERR_RET(adapter->ops->stats_reset, -EINVAL);
> 	return adapter->ops->stats_reset(adapter);
>@@ -468,6 +481,8 @@ rte_event_timer_remaining_ticks_get(
> 			const struct rte_event_timer *evtim,
> 			uint64_t *ticks_remaining)
> {
>+	rte_eventdev_trace_timer_remaining_ticks_get(adapter, evtim,
>ticks_remaining);
>+
> 	ADAPTER_VALID_OR_ERR_RET(adapter, -EINVAL);
> 	FUNC_PTR_OR_ERR_RET(adapter->ops->remaining_ticks_get, -
>ENOTSUP);
>
>diff --git a/lib/eventdev/rte_eventdev.c b/lib/eventdev/rte_eventdev.c
>index b0414206d9..245b1d2d4e 100644
>--- a/lib/eventdev/rte_eventdev.c
>+++ b/lib/eventdev/rte_eventdev.c
>@@ -62,8 +62,10 @@ rte_event_dev_get_dev_id(const char *name)
> 				rte_event_devices[i].dev->driver->name, name,
> 					 RTE_EVENTDEV_NAME_MAX_LEN) == 0) :
>0);
> 		if (cmp && (rte_event_devices[i].attached ==
>-					RTE_EVENTDEV_ATTACHED))
>+					RTE_EVENTDEV_ATTACHED)) {
>+			rte_eventdev_trace_get_dev_id(name, i);
> 			return i;
>+		}
> 	}
> 	return -ENODEV;
> }
>@@ -76,6 +78,8 @@ rte_event_dev_socket_id(uint8_t dev_id)
> 	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
> 	dev = &rte_eventdevs[dev_id];
>
>+	rte_eventdev_trace_socket_id(dev_id, dev, dev->data->socket_id);
>+
> 	return dev->data->socket_id;
> }
>
>@@ -99,6 +103,9 @@ rte_event_dev_info_get(uint8_t dev_id, struct
>rte_event_dev_info *dev_info)
> 	dev_info->dequeue_timeout_ns = dev->data-
>>dev_conf.dequeue_timeout_ns;
>
> 	dev_info->dev = dev->dev;
>+
>+	rte_eventdev_trace_info_get(dev_id, dev_info, dev_info->dev);
>+
> 	return 0;
> }
>
>@@ -108,6 +115,8 @@ rte_event_eth_rx_adapter_caps_get(uint8_t dev_id,
>uint16_t eth_port_id,
> {
> 	struct rte_eventdev *dev;
>
>+	rte_eventdev_trace_eth_rx_adapter_caps_get(dev_id, eth_port_id);
>+
> 	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
> 	RTE_ETH_VALID_PORTID_OR_ERR_RET(eth_port_id, -EINVAL);
>
>@@ -134,6 +143,8 @@ rte_event_timer_adapter_caps_get(uint8_t dev_id,
>uint32_t *caps)
> 	struct rte_eventdev *dev;
> 	const struct event_timer_adapter_ops *ops;
>
>+	rte_eventdev_trace_timer_adapter_caps_get(dev_id);
>+
> 	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
>
> 	dev = &rte_eventdevs[dev_id];
>@@ -168,6 +179,8 @@ rte_event_crypto_adapter_caps_get(uint8_t dev_id,
>uint8_t cdev_id,
> 	dev = &rte_eventdevs[dev_id];
> 	cdev = rte_cryptodev_pmd_get_dev(cdev_id);
>
>+	rte_eventdev_trace_crypto_adapter_caps_get(dev_id, dev, cdev_id,
>cdev);
>+
> 	if (caps == NULL)
> 		return -EINVAL;
>
>@@ -194,6 +207,8 @@ rte_event_eth_tx_adapter_caps_get(uint8_t dev_id,
>uint16_t eth_port_id,
> 	dev = &rte_eventdevs[dev_id];
> 	eth_dev = &rte_eth_devices[eth_port_id];
>
>+	rte_eventdev_trace_eth_tx_adapter_caps_get(dev_id, dev, eth_port_id,
>eth_dev);
>+
> 	if (caps == NULL)
> 		return -EINVAL;
>
>@@ -524,6 +539,9 @@ rte_event_queue_default_conf_get(uint8_t dev_id,
>uint8_t queue_id,
> 		return -ENOTSUP;
> 	memset(queue_conf, 0, sizeof(struct rte_event_queue_conf));
> 	(*dev->dev_ops->queue_def_conf)(dev, queue_id, queue_conf);
>+
>+	rte_eventdev_trace_queue_default_conf_get(dev_id, dev, queue_id,
>queue_conf);
>+
> 	return 0;
> }
>
>@@ -652,6 +670,9 @@ rte_event_port_default_conf_get(uint8_t dev_id, uint8_t
>port_id,
> 		return -ENOTSUP;
> 	memset(port_conf, 0, sizeof(struct rte_event_port_conf));
> 	(*dev->dev_ops->port_def_conf)(dev, port_id, port_conf);
>+
>+	rte_eventdev_trace_port_default_conf_get(dev_id, dev, port_id,
>port_conf);
>+
> 	return 0;
> }
>
>@@ -754,6 +775,8 @@ rte_event_port_quiesce(uint8_t dev_id, uint8_t port_id,
> 	RTE_EVENTDEV_VALID_DEVID_OR_RET(dev_id);
> 	dev = &rte_eventdevs[dev_id];
>
>+	rte_eventdev_trace_port_quiesce(dev_id, dev, port_id, args);
>+
> 	if (!is_valid_port(dev, port_id)) {
> 		RTE_EDEV_LOG_ERR("Invalid port_id=%" PRIu8, port_id);
> 		return;
>@@ -789,6 +812,8 @@ rte_event_dev_attr_get(uint8_t dev_id, uint32_t attr_id,
> 		return -EINVAL;
> 	}
>
>+	rte_eventdev_trace_attr_get(dev_id, dev, attr_id, *attr_value);
>+
> 	return 0;
> }
>
>@@ -829,6 +854,9 @@ rte_event_port_attr_get(uint8_t dev_id, uint8_t port_id,
>uint32_t attr_id,
> 	default:
> 		return -EINVAL;
> 	};
>+
>+	rte_eventdev_trace_port_attr_get(dev_id, dev, port_id, attr_id,
>*attr_value);
>+
> 	return 0;
> }
>
>@@ -885,6 +913,9 @@ rte_event_queue_attr_get(uint8_t dev_id, uint8_t
>queue_id, uint32_t attr_id,
> 	default:
> 		return -EINVAL;
> 	};
>+
>+	rte_eventdev_trace_queue_attr_get(dev_id, dev, queue_id, attr_id,
>*attr_value);
>+
> 	return 0;
> }
>
>@@ -894,6 +925,8 @@ rte_event_queue_attr_set(uint8_t dev_id, uint8_t
>queue_id, uint32_t attr_id,
> {
> 	struct rte_eventdev *dev;
>
>+	rte_eventdev_trace_queue_attr_set(dev_id, queue_id, attr_id,
>attr_value);
>+
> 	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
> 	dev = &rte_eventdevs[dev_id];
> 	if (!is_valid_queue(dev, queue_id)) {
>@@ -1048,6 +1081,8 @@ rte_event_port_unlinks_in_progress(uint8_t dev_id,
>uint8_t port_id)
> {
> 	struct rte_eventdev *dev;
>
>+	rte_eventdev_trace_port_unlinks_in_progress(dev_id, port_id);
>+
> 	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
> 	dev = &rte_eventdevs[dev_id];
> 	if (!is_valid_port(dev, port_id)) {
>@@ -1091,6 +1126,9 @@ rte_event_port_links_get(uint8_t dev_id, uint8_t
>port_id,
> 			++count;
> 		}
> 	}
>+
>+	rte_eventdev_trace_port_links_get(dev_id, port_id, count);
>+
> 	return count;
> }
>
>@@ -1100,6 +1138,8 @@ rte_event_dequeue_timeout_ticks(uint8_t dev_id,
>uint64_t ns,
> {
> 	struct rte_eventdev *dev;
>
>+	rte_eventdev_trace_dequeue_timeout_ticks(dev_id, ns, timeout_ticks);
>+
> 	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
> 	dev = &rte_eventdevs[dev_id];
> 	if (*dev->dev_ops->timeout_ticks == NULL)
>@@ -1125,6 +1165,8 @@ rte_event_dev_service_id_get(uint8_t dev_id, uint32_t
>*service_id)
> 	if (dev->data->service_inited)
> 		*service_id = dev->data->service_id;
>
>+	rte_eventdev_trace_service_id_get(dev_id, *service_id);
>+
> 	return dev->data->service_inited ? 0 : -ESRCH;
> }
>
>@@ -1285,6 +1327,9 @@ rte_event_vector_pool_create(const char *name,
>unsigned int n,
> 	if (ret < 0)
> 		goto err;
>
>+	rte_eventdev_trace_vector_pool_create(mp, mp->name, mp-
>>socket_id,
>+		mp->size, mp->cache_size, mp->elt_size);
>+
> 	return mp;
> err:
> 	rte_mempool_free(mp);
>@@ -1332,6 +1377,8 @@ rte_event_dev_stop_flush_callback_register(uint8_t
>dev_id,
>
> 	RTE_EDEV_LOG_DEBUG("Stop flush register dev_id=%" PRIu8, dev_id);
>
>+	rte_eventdev_trace_stop_flush_callback_register(dev_id, callback,
>userdata);
>+
> 	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
> 	dev = &rte_eventdevs[dev_id];
>
>--
>2.25.1


^ permalink raw reply	[flat|nested] 14+ messages in thread

* RE: [EXT] [PATCH v5] eventdev: add trace points
  2023-02-01 10:16         ` [EXT] " Shijith Thotton
@ 2023-02-01 10:46           ` Amit Prakash Shukla
  0 siblings, 0 replies; 14+ messages in thread
From: Amit Prakash Shukla @ 2023-02-01 10:46 UTC (permalink / raw)
  To: Shijith Thotton, Jerin Jacob Kollanukkaran, Abhinandan Gujjar,
	Naga Harish K S V, Erik Gabriel Carrillo
  Cc: dev

Thanks Shijith for review and feedback. I will make the change in next version of the patch.

> -----Original Message-----
> From: Shijith Thotton <sthotton@marvell.com>
> Sent: Wednesday, February 1, 2023 3:46 PM
> To: Amit Prakash Shukla <amitprakashs@marvell.com>; Jerin Jacob
> Kollanukkaran <jerinj@marvell.com>; Abhinandan Gujjar
> <abhinandan.gujjar@intel.com>; Naga Harish K S V
> <s.v.naga.harish.k@intel.com>; Erik Gabriel Carrillo
> <erik.g.carrillo@intel.com>
> Cc: dev@dpdk.org; Amit Prakash Shukla <amitprakashs@marvell.com>
> Subject: RE: [EXT] [PATCH v5] eventdev: add trace points
> 
> >Add trace points for eventdev functions.
> >
> >Signed-off-by: Amit Prakash Shukla <amitprakashs@marvell.com>
> >---
> >v2:
> > - Fixed CI test failure
> > - Code review suggestion from Abhinandan
> >
> >v3:
> > - Removed trace symbols from version.map
> >
> >v4:
> > - Fixed CI test failure
> > - Cleaned-up unwanted includes and trace functions
> > - Added traces to pending functions
> >
> >v5:
> > - Fixed coding style issue
> >
> > lib/eventdev/eventdev_trace.h           | 495 +++++++++++++++++++++++-
> > lib/eventdev/eventdev_trace_points.c    | 159 ++++++++
> > lib/eventdev/rte_event_crypto_adapter.c |  18 +-
> > lib/eventdev/rte_event_eth_rx_adapter.c |  31 +-
> > lib/eventdev/rte_event_eth_tx_adapter.c |  21 +-
> > lib/eventdev/rte_event_ring.c           |   9 +
> > lib/eventdev/rte_event_timer_adapter.c  |  15 +
> > lib/eventdev/rte_eventdev.c             |  49 ++-
> > 8 files changed, 784 insertions(+), 13 deletions(-)
> >
> >diff --git a/lib/eventdev/eventdev_trace.h
> >b/lib/eventdev/eventdev_trace.h index d48cd58850..71e996e562 100644
> >--- a/lib/eventdev/eventdev_trace.h
> >+++ b/lib/eventdev/eventdev_trace.h
> >@@ -63,6 +63,7 @@ RTE_TRACE_POINT(
> > 	rte_trace_point_emit_u16(port_conf->enqueue_depth);
> > 	rte_trace_point_emit_u32(port_conf->event_port_cfg);
> > 	rte_trace_point_emit_int(rc);
> >+	rte_trace_point_emit_ptr(port_conf);
> > )
> >
> > RTE_TRACE_POINT(
> >@@ -250,16 +251,17 @@ RTE_TRACE_POINT(
> >
> > RTE_TRACE_POINT(
> > 	rte_eventdev_trace_crypto_adapter_create,
> >-	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint8_t dev_id, void
> *adapter,
> >-		struct rte_event_port_conf *port_conf, uint8_t mode),
> >+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint8_t dev_id,
> >+		struct rte_event_port_conf *port_config, int mode, int ret),
> > 	rte_trace_point_emit_u8(adptr_id);
> > 	rte_trace_point_emit_u8(dev_id);
> >-	rte_trace_point_emit_ptr(adapter);
> >-	rte_trace_point_emit_u8(mode);
> >-	rte_trace_point_emit_i32(port_conf->new_event_threshold);
> >-	rte_trace_point_emit_u16(port_conf->dequeue_depth);
> >-	rte_trace_point_emit_u16(port_conf->enqueue_depth);
> >-	rte_trace_point_emit_u32(port_conf->event_port_cfg);
> >+	rte_trace_point_emit_ptr(port_config);
> >+	rte_trace_point_emit_i32(port_config->new_event_threshold);
> >+	rte_trace_point_emit_u16(port_config->dequeue_depth);
> >+	rte_trace_point_emit_u16(port_config->enqueue_depth);
> >+	rte_trace_point_emit_u32(port_config->event_port_cfg);
> >+	rte_trace_point_emit_int(mode);
> >+	rte_trace_point_emit_int(ret);
> > )
> >
> > RTE_TRACE_POINT(
> >@@ -303,6 +305,483 @@ RTE_TRACE_POINT(
> > 	rte_trace_point_emit_u8(adptr_id);
> > )
> >
> >+RTE_TRACE_POINT(
> >+	rte_eventdev_trace_crypto_adapter_event_port_get,
> >+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint8_t event_port_id),
> >+	rte_trace_point_emit_u8(adptr_id);
> >+	rte_trace_point_emit_u8(event_port_id);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+	rte_eventdev_trace_crypto_adapter_service_id_get,
> >+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint32_t service_id),
> >+	rte_trace_point_emit_u8(adptr_id);
> >+	rte_trace_point_emit_u32(service_id);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+	rte_eventdev_trace_attr_get,
> >+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *dev, uint32_t
> >attr_id,
> >+		uint32_t attr_value),
> >+	rte_trace_point_emit_u8(dev_id);
> >+	rte_trace_point_emit_ptr(dev);
> >+	rte_trace_point_emit_u32(attr_id);
> >+	rte_trace_point_emit_u32(attr_value);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+	rte_eventdev_trace_get_dev_id,
> >+	RTE_TRACE_POINT_ARGS(const char *name, int dev_id),
> >+	rte_trace_point_emit_string(name);
> >+	rte_trace_point_emit_int(dev_id);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+	rte_eventdev_trace_info_get,
> >+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *dev_info,
> const
> >void *dev),
> >+	rte_trace_point_emit_u8(dev_id);
> >+	rte_trace_point_emit_ptr(dev_info);
> >+	rte_trace_point_emit_ptr(dev);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+	rte_eventdev_trace_service_id_get,
> >+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint32_t service_id),
> >+	rte_trace_point_emit_u8(dev_id);
> >+	rte_trace_point_emit_u32(service_id);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+	rte_eventdev_trace_socket_id,
> >+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *dev, int
> socket_id),
> >+	rte_trace_point_emit_u8(dev_id);
> >+	rte_trace_point_emit_ptr(dev);
> >+	rte_trace_point_emit_int(socket_id);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+	rte_eventdev_trace_stop_flush_callback_register,
> >+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *callback, const
> void
> >*userdata),
> >+	rte_trace_point_emit_u8(dev_id);
> >+	rte_trace_point_emit_ptr(callback);
> >+	rte_trace_point_emit_ptr(userdata);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+	rte_eventdev_trace_eth_rx_adapter_caps_get,
> >+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint16_t eth_port_id),
> >+	rte_trace_point_emit_u8(dev_id);
> >+	rte_trace_point_emit_u16(eth_port_id);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+	rte_eventdev_trace_eth_rx_adapter_cb_register,
> >+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint16_t eth_dev_id,
> const
> >void *cb_fn,
> >+		const void *cb_arg),
> >+	rte_trace_point_emit_u8(adptr_id);
> >+	rte_trace_point_emit_u16(eth_dev_id);
> >+	rte_trace_point_emit_ptr(cb_fn);
> >+	rte_trace_point_emit_ptr(cb_arg);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+	rte_eventdev_trace_eth_rx_adapter_create_with_params,
> >+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint8_t dev_id,
> >+		const struct rte_event_port_conf *port_config,
> >+		const struct rte_event_eth_rx_adapter_params
> *rxa_params,
> >+		int ret),
> >+	rte_trace_point_emit_u8(adptr_id);
> >+	rte_trace_point_emit_u8(dev_id);
> >+	rte_trace_point_emit_ptr(port_config);
> >+	rte_trace_point_emit_i32(port_config->new_event_threshold);
> >+	rte_trace_point_emit_u16(port_config->dequeue_depth);
> >+	rte_trace_point_emit_u16(port_config->enqueue_depth);
> >+	rte_trace_point_emit_u32(port_config->event_port_cfg);
> >+	rte_trace_point_emit_ptr(rxa_params);
> >+	rte_trace_point_emit_u16(rxa_params->event_buf_size);
> >+	rte_trace_point_emit_int(ret);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+	rte_eventdev_trace_eth_rx_adapter_service_id_get,
> >+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint32_t service_id),
> >+	rte_trace_point_emit_u8(adptr_id);
> >+	rte_trace_point_emit_u32(service_id);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+	rte_eventdev_trace_eth_rx_adapter_event_port_get,
> >+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint8_t event_port_id),
> >+	rte_trace_point_emit_u8(adptr_id);
> >+	rte_trace_point_emit_u8(event_port_id);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+	rte_eventdev_trace_eth_rx_adapter_vector_limits_get,
> >+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint16_t eth_port_id,
> >+		uint16_t min_sz, uint16_t max_sz, uint8_t log2_sz,
> >+		uint64_t min_timeout_ns, uint64_t max_timeout_ns, int
> ret),
> >+	rte_trace_point_emit_u8(dev_id);
> >+	rte_trace_point_emit_u16(eth_port_id);
> >+	rte_trace_point_emit_u16(min_sz);
> >+	rte_trace_point_emit_u16(max_sz);
> >+	rte_trace_point_emit_u8(log2_sz);
> >+	rte_trace_point_emit_u64(min_timeout_ns);
> >+	rte_trace_point_emit_u64(max_timeout_ns);
> >+	rte_trace_point_emit_int(ret);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+	rte_eventdev_trace_eth_tx_adapter_caps_get,
> >+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *dev, uint16_t
> >eth_port_id,
> >+		const void *eth_dev),
> >+	rte_trace_point_emit_u8(dev_id);
> >+	rte_trace_point_emit_ptr(dev);
> >+	rte_trace_point_emit_u16(eth_port_id);
> >+	rte_trace_point_emit_ptr(eth_dev);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+	rte_eventdev_trace_eth_tx_adapter_event_port_get,
> >+	RTE_TRACE_POINT_ARGS(uint8_t id),
> >+	rte_trace_point_emit_u8(id);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+	rte_eventdev_trace_eth_tx_adapter_service_id_get,
> >+	RTE_TRACE_POINT_ARGS(uint8_t id, uint32_t service_id),
> >+	rte_trace_point_emit_u8(id);
> >+	rte_trace_point_emit_u32(service_id);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+	rte_eventdev_trace_port_attr_get,
> >+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *dev, uint8_t
> >port_id,
> >+		uint32_t attr_id, uint32_t attr_value),
> >+	rte_trace_point_emit_u8(dev_id);
> >+	rte_trace_point_emit_ptr(dev);
> >+	rte_trace_point_emit_u8(port_id);
> >+	rte_trace_point_emit_u32(attr_id);
> >+	rte_trace_point_emit_u32(attr_value);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+	rte_eventdev_trace_port_default_conf_get,
> >+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *dev, uint8_t
> >port_id,
> >+		const struct rte_event_port_conf *port_conf),
> >+	rte_trace_point_emit_u8(dev_id);
> >+	rte_trace_point_emit_ptr(dev);
> >+	rte_trace_point_emit_u8(port_id);
> >+	rte_trace_point_emit_ptr(port_conf);
> >+	rte_trace_point_emit_i32(port_conf->new_event_threshold);
> >+	rte_trace_point_emit_u16(port_conf->dequeue_depth);
> >+	rte_trace_point_emit_u16(port_conf->enqueue_depth);
> >+	rte_trace_point_emit_u32(port_conf->event_port_cfg);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+	rte_eventdev_trace_port_links_get,
> >+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint8_t port_id, int count),
> >+	rte_trace_point_emit_u8(dev_id);
> >+	rte_trace_point_emit_u8(port_id);
> >+	rte_trace_point_emit_int(count);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+	rte_eventdev_trace_port_unlinks_in_progress,
> >+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint8_t port_id),
> >+	rte_trace_point_emit_u8(dev_id);
> >+	rte_trace_point_emit_u8(port_id);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+	rte_eventdev_trace_queue_attr_get,
> >+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *dev, uint8_t
> >queue_id,
> >+		uint32_t attr_id, uint32_t attr_value),
> >+	rte_trace_point_emit_u8(dev_id);
> >+	rte_trace_point_emit_ptr(dev);
> >+	rte_trace_point_emit_u8(queue_id);
> >+	rte_trace_point_emit_u32(attr_id);
> >+	rte_trace_point_emit_u32(attr_value);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+	rte_eventdev_trace_queue_default_conf_get,
> >+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *dev, uint8_t
> >queue_id,
> >+		const struct rte_event_queue_conf *queue_conf),
> >+	rte_trace_point_emit_u8(dev_id);
> >+	rte_trace_point_emit_ptr(dev);
> >+	rte_trace_point_emit_u8(queue_id);
> >+	rte_trace_point_emit_ptr(queue_conf);
> >+	rte_trace_point_emit_u32(queue_conf->nb_atomic_flows);
> >+	rte_trace_point_emit_u32(queue_conf-
> >nb_atomic_order_sequences);
> >+	rte_trace_point_emit_u32(queue_conf->event_queue_cfg);
> >+	rte_trace_point_emit_u8(queue_conf->schedule_type);
> >+	rte_trace_point_emit_u8(queue_conf->priority);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+	rte_eventdev_trace_ring_create,
> >+	RTE_TRACE_POINT_ARGS(const char *name, unsigned int count,
> >+		int socket_id, unsigned int flags),
> >+	rte_trace_point_emit_string(name);
> >+	rte_trace_point_emit_u32(count);
> >+	rte_trace_point_emit_int(socket_id);
> >+	rte_trace_point_emit_u32(flags);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+	rte_eventdev_trace_ring_free,
> >+	RTE_TRACE_POINT_ARGS(const char *name),
> >+	rte_trace_point_emit_string(name);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+	rte_eventdev_trace_ring_init,
> >+	RTE_TRACE_POINT_ARGS(const void *r, const char *name,
> >+		unsigned int count, unsigned int flags),
> >+	rte_trace_point_emit_ptr(r);
> >+	rte_trace_point_emit_string(name);
> >+	rte_trace_point_emit_u32(count);
> >+	rte_trace_point_emit_u32(flags);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+	rte_eventdev_trace_ring_lookup,
> >+	RTE_TRACE_POINT_ARGS(const char *name),
> >+	rte_trace_point_emit_string(name);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+	rte_eventdev_trace_timer_adapter_caps_get,
> >+	RTE_TRACE_POINT_ARGS(uint8_t dev_id),
> >+	rte_trace_point_emit_u8(dev_id);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+	rte_eventdev_trace_timer_adapter_get_info,
> >+	RTE_TRACE_POINT_ARGS(const void *adapter,
> >+		const struct rte_event_timer_adapter_info *adapter_info),
> >+	rte_trace_point_emit_ptr(adapter);
> >+	rte_trace_point_emit_ptr(adapter_info);
> >+	rte_trace_point_emit_u64(adapter_info->min_resolution_ns);
> >+	rte_trace_point_emit_u64(adapter_info->max_tmo_ns);
> >+	rte_trace_point_emit_u32(adapter_info->caps);
> >+	rte_trace_point_emit_u16(adapter_info->event_dev_port_id);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+	rte_eventdev_trace_timer_adapter_lookup,
> >+	RTE_TRACE_POINT_ARGS(uint16_t adapter_id, const void *adapter),
> >+	rte_trace_point_emit_u16(adapter_id);
> >+	rte_trace_point_emit_ptr(adapter);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+	rte_eventdev_trace_timer_adapter_service_id_get,
> >+	RTE_TRACE_POINT_ARGS(const struct rte_event_timer_adapter
> >*adapter,
> >+		uint32_t service_id),
> >+	rte_trace_point_emit_ptr(adapter);
> >+	rte_trace_point_emit_u32(service_id);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+	rte_eventdev_trace_vector_pool_create,
> >+	RTE_TRACE_POINT_ARGS(const void *mp, const char *name, int
> >socket_id,
> >+		uint32_t size, uint32_t cache_size, uint32_t elt_size),
> >+	rte_trace_point_emit_ptr(mp);
> >+	rte_trace_point_emit_string(name);
> >+	rte_trace_point_emit_int(socket_id);
> >+	rte_trace_point_emit_u32(size);
> >+	rte_trace_point_emit_u32(cache_size);
> >+	rte_trace_point_emit_u32(elt_size);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+	rte_eventdev_trace_eth_rx_adapter_queue_conf_get,
> >+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint16_t eth_dev_id,
> >+		uint16_t rx_queue_id, const void *queue_conf),
> >+	rte_trace_point_emit_u8(adptr_id);
> >+	rte_trace_point_emit_u16(eth_dev_id);
> >+	rte_trace_point_emit_u16(rx_queue_id);
> >+	rte_trace_point_emit_ptr(queue_conf);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+	rte_eventdev_trace_queue_attr_set,
> >+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint8_t queue_id,
> uint32_t
> >attr_id,
> >+		uint32_t attr_value),
> 
> attr_value should be of type uint64_t.
> 
> >+	rte_trace_point_emit_u8(dev_id);
> >+	rte_trace_point_emit_u8(queue_id);
> >+	rte_trace_point_emit_u32(attr_id);
> >+	rte_trace_point_emit_u32(attr_value);
> 
> Same here.
> 
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+	rte_eventdev_trace_port_quiesce,
> >+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *dev, uint8_t
> >port_id, const void *args),
> >+	rte_trace_point_emit_u8(dev_id);
> >+	rte_trace_point_emit_ptr(dev);
> >+	rte_trace_point_emit_u8(port_id);
> >+	rte_trace_point_emit_ptr(args);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+	rte_eventdev_trace_crypto_adapter_caps_get,
> >+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *dev, uint8_t
> >cdev_id,
> >+		const void *cdev),
> >+	rte_trace_point_emit_u8(dev_id);
> >+	rte_trace_point_emit_ptr(dev);
> >+	rte_trace_point_emit_u8(cdev_id);
> >+	rte_trace_point_emit_ptr(cdev);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+	rte_eventdev_trace_dequeue_timeout_ticks,
> >+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint64_t ns,
> >+		const void *timeout_ticks),
> >+	rte_trace_point_emit_u8(dev_id);
> >+	rte_trace_point_emit_u64(ns);
> >+	rte_trace_point_emit_ptr(timeout_ticks);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+	rte_eventdev_trace_crypto_adapter_stats_get,
> >+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, const void *stats,
> >+		uint64_t event_poll_count, uint64_t event_deq_count,
> >+		uint64_t crypto_enq_count, uint64_t crypto_enq_fail,
> >+		uint64_t crypto_deq_count, uint64_t event_enq_count,
> >+		uint64_t event_enq_retry_count, uint64_t
> >event_enq_fail_count),
> >+	rte_trace_point_emit_u8(adptr_id);
> >+	rte_trace_point_emit_ptr(stats);
> >+	rte_trace_point_emit_u64(event_poll_count);
> >+	rte_trace_point_emit_u64(event_deq_count);
> >+	rte_trace_point_emit_u64(crypto_enq_count);
> >+	rte_trace_point_emit_u64(crypto_enq_fail);
> >+	rte_trace_point_emit_u64(crypto_deq_count);
> >+	rte_trace_point_emit_u64(event_enq_count);
> >+	rte_trace_point_emit_u64(event_enq_retry_count);
> >+	rte_trace_point_emit_u64(event_enq_fail_count);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+	rte_eventdev_trace_crypto_adapter_stats_reset,
> >+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id),
> >+	rte_trace_point_emit_u8(adptr_id);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+	rte_eventdev_trace_eth_rx_adapter_stats_get,
> >+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, const void *stats),
> >+	rte_trace_point_emit_u8(adptr_id);
> >+	rte_trace_point_emit_ptr(stats);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+	rte_eventdev_trace_crypto_adapter_vector_limits_get,
> >+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint16_t cdev_id,
> >+		const void *limits),
> >+	rte_trace_point_emit_u8(dev_id);
> >+	rte_trace_point_emit_u16(cdev_id);
> >+	rte_trace_point_emit_ptr(limits);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+	rte_eventdev_trace_eth_rx_adapter_queue_stats_get,
> >+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint16_t eth_dev_id,
> >+		uint16_t rx_queue_id, const void *stats),
> >+	rte_trace_point_emit_u8(adptr_id);
> >+	rte_trace_point_emit_u16(eth_dev_id);
> >+	rte_trace_point_emit_u16(rx_queue_id);
> >+	rte_trace_point_emit_ptr(stats);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+	rte_eventdev_trace_eth_rx_adapter_stats_reset,
> >+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id),
> >+	rte_trace_point_emit_u8(adptr_id);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+	rte_eventdev_trace_eth_rx_adapter_queue_stats_reset,
> >+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint16_t eth_dev_id,
> >+		uint16_t rx_queue_id),
> >+	rte_trace_point_emit_u8(adptr_id);
> >+	rte_trace_point_emit_u16(eth_dev_id);
> >+	rte_trace_point_emit_u16(rx_queue_id);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+	rte_eventdev_trace_eth_rx_adapter_instance_get,
> >+	RTE_TRACE_POINT_ARGS(uint16_t eth_dev_id, uint16_t
> rx_queue_id,
> >+		uint8_t rxa_inst_id),
> >+	rte_trace_point_emit_u16(eth_dev_id);
> >+	rte_trace_point_emit_u16(rx_queue_id);
> >+	rte_trace_point_emit_u8(rxa_inst_id);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+	rte_eventdev_trace_eth_tx_adapter_stats_get,
> >+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint64_t tx_retry,
> >+		uint64_t tx_packets, uint64_t tx_dropped, int ret),
> >+	rte_trace_point_emit_u8(adptr_id);
> >+	rte_trace_point_emit_u64(tx_retry);
> >+	rte_trace_point_emit_u64(tx_packets);
> >+	rte_trace_point_emit_u64(tx_dropped);
> >+	rte_trace_point_emit_int(ret);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+	rte_eventdev_trace_eth_tx_adapter_stats_reset,
> >+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, int ret),
> >+	rte_trace_point_emit_u8(adptr_id);
> >+	rte_trace_point_emit_int(ret);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+	rte_eventdev_trace_eth_tx_adapter_instance_get,
> >+	RTE_TRACE_POINT_ARGS(uint16_t eth_dev_id, uint16_t
> tx_queue_id,
> >+		uint8_t txa_inst_id),
> >+	rte_trace_point_emit_u16(eth_dev_id);
> >+	rte_trace_point_emit_u16(tx_queue_id);
> >+	rte_trace_point_emit_u8(txa_inst_id);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+	rte_eventdev_trace_eth_tx_adapter_queue_start,
> >+	RTE_TRACE_POINT_ARGS(uint16_t eth_dev_id, uint16_t
> tx_queue_id),
> >+	rte_trace_point_emit_u16(eth_dev_id);
> >+	rte_trace_point_emit_u16(tx_queue_id);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+	rte_eventdev_trace_eth_tx_adapter_queue_stop,
> >+	RTE_TRACE_POINT_ARGS(uint16_t eth_dev_id, uint16_t
> tx_queue_id),
> >+	rte_trace_point_emit_u16(eth_dev_id);
> >+	rte_trace_point_emit_u16(tx_queue_id);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+	rte_eventdev_trace_timer_adapter_stats_get,
> >+	RTE_TRACE_POINT_ARGS(const void *adapter, const void *stats),
> >+	rte_trace_point_emit_ptr(adapter);
> >+	rte_trace_point_emit_ptr(stats);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+	rte_eventdev_trace_timer_adapter_stats_reset,
> >+	RTE_TRACE_POINT_ARGS(const void *adapter),
> >+	rte_trace_point_emit_ptr(adapter);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+	rte_eventdev_trace_timer_remaining_ticks_get,
> >+	RTE_TRACE_POINT_ARGS(const void *adapter, const void *evtim,
> const
> >void *ticks_remaining),
> >+	rte_trace_point_emit_ptr(adapter);
> >+	rte_trace_point_emit_ptr(evtim);
> >+	rte_trace_point_emit_ptr(ticks_remaining);
> >+)
> >+
> > #ifdef __cplusplus
> > }
> > #endif
> >diff --git a/lib/eventdev/eventdev_trace_points.c
> >b/lib/eventdev/eventdev_trace_points.c
> >index de6b1f4417..76144cfe75 100644
> >--- a/lib/eventdev/eventdev_trace_points.c
> >+++ b/lib/eventdev/eventdev_trace_points.c
> >@@ -124,3 +124,162 @@
> >RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_stop,
> >
> >
> RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_enqueu
> e,
> > 	lib.eventdev.crypto.enq)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_even
> t_port
> >_get,
> >+	lib.eventdev.crypto.adapter_event_port_get)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_servi
> ce_id_
> >get,
> >+	lib.eventdev.crypto.adapter_service_id_get)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_vect
> or_limi
> >ts_get,
> >+	lib.eventdev.crypto.adapter_vector_limits_get)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_attr_get,
> >+	lib.eventdev.attr_get)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_get_dev_id,
> >+	lib.eventdev.get_dev_id)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_info_get,
> >+	lib.eventdev.info_get)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_service_id_get,
> >+	lib.eventdev.service_id_get)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_socket_id,
> >+	lib.eventdev.socket.id)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_stop_flush_callback_r
> egist
> >+er
> >,
> >+	lib.eventdev.stop.flush.callback.register)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_caps
> _get,
> >+	lib.eventdev.eth.rx.adapter.caps.get)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_cb_r
> egister
> >,
> >+	lib.eventdev.eth.rx.adapter.cb.register)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_servi
> ce_id_
> >get,
> >+	lib.eventdev.eth.rx.adapter.service.id.get)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_eve
> nt_port
> >_get,
> >+	lib.eventdev.eth.rx.adapter.event.port.get)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_vect
> or_limi
> >ts_get,
> >+	lib.eventdev.eth.rx.adapter.vector.limits.get)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_que
> ue_sta
> >ts_get,
> >+	lib.eventdev.eth.rx.adapter.queue.stats.get)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_stats
> _reset
> >,
> >+	lib.eventdev.eth.rx.adapter.stats.reset)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_que
> ue_sta
> >ts_reset,
> >+	lib.eventdev.eth.rx.adapter.queue.stats.reset)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_insta
> nce_g
> >et,
> >+	lib.eventdev.eth.rx.adapter.instance.get)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_caps
> _get,
> >+	lib.eventdev.eth.tx.adapter.caps.get)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_eve
> nt_port
> >_get,
> >+	lib.eventdev.eth.tx.adapter.event.port.get)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_servi
> ce_id_
> >get,
> >+	lib.eventdev.eth.tx.adapter.service.id.get)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_stats
> _get,
> >+	lib.eventdev.eth.tx.adapter.stats.get)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_stats
> _reset
> >,
> >+	lib.eventdev.eth.tx.adapter.stats.reset)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_insta
> nce_g
> >et,
> >+	lib.eventdev.eth.tx.adapter.instance.get)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_port_attr_get,
> >+	lib.eventdev.port.attr.get)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_port_default_conf_g
> et,
> >+	lib.eventdev.port.default.conf.get)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_port_links_get,
> >+	lib.eventdev.port.links.get)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_port_unlinks_in_prog
> ress,
> >+	lib.eventdev.port.unlinks.in.progress)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_queue_attr_get,
> >+	lib.eventdev.queue.attr.get)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_queue_default_conf_
> get,
> >+	lib.eventdev.queue.default.conf.get)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_ring_create,
> >+	lib.eventdev.ring.create)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_ring_free,
> >+	lib.eventdev.ring.free)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_ring_init,
> >+	lib.eventdev.ring.init)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_ring_lookup,
> >+	lib.eventdev.ring.lookup)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_adapter_caps_
> get,
> >+	lib.eventdev.timer.adapter.caps.get)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_adapter_get_i
> nfo,
> >+	lib.eventdev.timer.adapter.get.info)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_adapter_looku
> p,
> >+	lib.eventdev.timer.adapter.lookup)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_adapter_servic
> e_id_g
> >et,
> >+	lib.eventdev.timer.adapter.service.id.get)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_vector_pool_create,
> >+	lib.eventdev.vector.pool.create)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_crea
> te_wit
> >h_params,
> >+	lib.eventdev.eth.rx.adapter.create.with.params)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_que
> ue_con
> >f_get,
> >+	lib.eventdev.eth.rx.adapter.queue.conf.get)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_queue_attr_set,
> >+	lib.eventdev.queue.attr.set)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_port_quiesce,
> >+	lib.eventdev.port.quiesce)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_caps
> _get,
> >+	lib.eventdev.crypto.adapter.caps.get)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_dequeue_timeout_tic
> ks,
> >+	lib.eventdev.dequeue.timeout.ticks)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_stats
> _get,
> >+	lib.eventdev.crypto.adapter.stats.get)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_stats
> _reset
> >,
> >+	lib.eventdev.crypto.adapter.stats.reset)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_stats
> _get,
> >+	lib.eventdev.rx.adapter.stats.get)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_que
> ue_sta
> >rt,
> >+	lib.eventdev.tx.adapter.queue.start)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_que
> ue_sto
> >p,
> >+	lib.eventdev.tx.adapter.queue.stop)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_adapter_stats_
> get,
> >+	lib.eventdev.timer.adapter.stats.get)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_adapter_stats_
> reset,
> >+	lib.eventdev.timer.adapter.stats.reset)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_remaining_tick
> s_get,
> >+	lib.eventdev.timer.remaining.ticks.get)
> >diff --git a/lib/eventdev/rte_event_crypto_adapter.c
> >b/lib/eventdev/rte_event_crypto_adapter.c
> >index bb782208f0..7f0a25a4cc 100644
> >--- a/lib/eventdev/rte_event_crypto_adapter.c
> >+++ b/lib/eventdev/rte_event_crypto_adapter.c
> >@@ -386,8 +386,6 @@ rte_event_crypto_adapter_create_ext(uint8_t id,
> >uint8_t dev_id,
> >
> > 	event_crypto_adapter[id] = adapter;
> >
> >-	rte_eventdev_trace_crypto_adapter_create(id, dev_id, adapter,
> >conf_arg,
> >-		mode);
> > 	return 0;
> > }
> >
> >@@ -415,6 +413,8 @@ rte_event_crypto_adapter_create(uint8_t id,
> uint8_t
> >dev_id,
> > 	if (ret)
> > 		rte_free(pc);
> >
> >+	rte_eventdev_trace_crypto_adapter_create(id, dev_id, port_config,
> >mode,	ret);
> >+
> > 	return ret;
> > }
> >
> >@@ -1293,6 +1293,12 @@ rte_event_crypto_adapter_stats_get(uint8_t id,
> > 	stats->crypto_deq_count += dev_stats_sum.crypto_deq_count;
> > 	stats->event_enq_count += dev_stats_sum.event_enq_count;
> >
> >+	rte_eventdev_trace_crypto_adapter_stats_get(id, stats,
> >+		stats->event_poll_count, stats->event_deq_count,
> >+		stats->crypto_enq_count, stats->crypto_enq_fail,
> >+		stats->crypto_deq_count, stats->event_enq_count,
> >+		stats->event_enq_retry_count, stats-
> >event_enq_fail_count);
> >+
> > 	return 0;
> > }
> >
> >@@ -1304,6 +1310,8 @@ rte_event_crypto_adapter_stats_reset(uint8_t
> id)
> > 	struct rte_eventdev *dev;
> > 	uint32_t i;
> >
> >+	rte_eventdev_trace_crypto_adapter_stats_reset(id);
> >+
> > 	if (eca_memzone_lookup())
> > 		return -ENOMEM;
> >
> >@@ -1341,6 +1349,8 @@
> rte_event_crypto_adapter_service_id_get(uint8_t
> >id, uint32_t *service_id)
> > 	if (adapter->service_inited)
> > 		*service_id = adapter->service_id;
> >
> >+	rte_eventdev_trace_crypto_adapter_service_id_get(id,
> *service_id);
> >+
> > 	return adapter->service_inited ? 0 : -ESRCH; }
> >
> >@@ -1357,6 +1367,8 @@
> rte_event_crypto_adapter_event_port_get(uint8_t
> >id, uint8_t *event_port_id)
> >
> > 	*event_port_id = adapter->event_port_id;
> >
> >+	rte_eventdev_trace_crypto_adapter_event_port_get(id,
> >*event_port_id);
> >+
> > 	return 0;
> > }
> >
> >@@ -1370,6 +1382,8 @@ rte_event_crypto_adapter_vector_limits_get(
> > 	uint32_t cap;
> > 	int ret;
> >
> >+	rte_eventdev_trace_crypto_adapter_vector_limits_get(dev_id,
> cdev_id,
> >limits);
> >+
> > 	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
> >
> > 	if (!rte_cryptodev_is_valid_dev(cdev_id)) { diff --git
> >a/lib/eventdev/rte_event_eth_rx_adapter.c
> >b/lib/eventdev/rte_event_eth_rx_adapter.c
> >index 34aa87379e..91bbba715b 100644
> >--- a/lib/eventdev/rte_event_eth_rx_adapter.c
> >+++ b/lib/eventdev/rte_event_eth_rx_adapter.c
> >@@ -2541,6 +2541,9 @@
> >rte_event_eth_rx_adapter_create_with_params(uint8_t id, uint8_t
> dev_id,
> > 	if (ret)
> > 		rte_free(pc);
> >
> >+	rte_eventdev_trace_eth_rx_adapter_create_with_params(id,
> dev_id,
> >+		port_config, rxa_params, ret);
> >+
> > 	return ret;
> > }
> >
> >@@ -2929,6 +2932,9 @@ rte_event_eth_rx_adapter_vector_limits_get(
> > 		ret = rxa_sw_vector_limits(limits);
> > 	}
> >
> >+	rte_eventdev_trace_eth_rx_adapter_vector_limits_get(dev_id,
> >eth_port_id,
> >+		limits->min_sz, limits->max_sz, limits->log2_sz,
> >+		limits->min_timeout_ns, limits->max_timeout_ns, ret);
> > 	return ret;
> > }
> >
> >@@ -2970,6 +2976,8 @@ rte_event_eth_rx_adapter_stats_get(uint8_t id,
> > 	uint32_t i, j;
> > 	int ret;
> >
> >+	rte_eventdev_trace_eth_rx_adapter_stats_get(id, stats);
> >+
> > 	if (rxa_memzone_lookup())
> > 		return -ENOMEM;
> >
> >@@ -3041,6 +3049,9 @@
> rte_event_eth_rx_adapter_queue_stats_get(uint8_t id,
> > 	struct rte_event_eth_rx_adapter_stats *q_stats;
> > 	struct rte_eventdev *dev;
> >
> >+	rte_eventdev_trace_eth_rx_adapter_queue_stats_get(id,
> eth_dev_id,
> >+							  rx_queue_id, stats);
> >+
> > 	if (rxa_memzone_lookup())
> > 		return -ENOMEM;
> >
> >@@ -3098,6 +3109,8 @@ rte_event_eth_rx_adapter_stats_reset(uint8_t
> id)
> > 	struct eth_rx_queue_info *queue_info;
> > 	uint32_t i, j;
> >
> >+	rte_eventdev_trace_eth_rx_adapter_stats_reset(id);
> >+
> > 	if (rxa_memzone_lookup())
> > 		return -ENOMEM;
> >
> >@@ -3145,6 +3158,9 @@
> >rte_event_eth_rx_adapter_queue_stats_reset(uint8_t
> >id,
> > 	struct eth_rx_queue_info *queue_info;
> > 	struct rte_eventdev *dev;
> >
> >+	rte_eventdev_trace_eth_rx_adapter_queue_stats_reset(id,
> eth_dev_id,
> >+							    rx_queue_id);
> >+
> > 	if (rxa_memzone_lookup())
> > 		return -ENOMEM;
> >
> >@@ -3203,6 +3219,8 @@
> rte_event_eth_rx_adapter_service_id_get(uint8_t
> >id, uint32_t *service_id)
> > 	if (rx_adapter->service_inited)
> > 		*service_id = rx_adapter->service_id;
> >
> >+	rte_eventdev_trace_eth_rx_adapter_service_id_get(id,
> *service_id);
> >+
> > 	return rx_adapter->service_inited ? 0 : -ESRCH; }
> >
> >@@ -3223,6 +3241,8 @@
> rte_event_eth_rx_adapter_event_port_get(uint8_t
> >id, uint8_t *event_port_id)
> > 	if (rx_adapter->service_inited)
> > 		*event_port_id = rx_adapter->event_port_id;
> >
> >+	rte_eventdev_trace_eth_rx_adapter_event_port_get(id,
> >*event_port_id);
> >+
> > 	return rx_adapter->service_inited ? 0 : -ESRCH; }
> >
> >@@ -3237,6 +3257,9 @@ rte_event_eth_rx_adapter_cb_register(uint8_t
> id,
> > 	uint32_t cap;
> > 	int ret;
> >
> >+	rte_eventdev_trace_eth_rx_adapter_cb_register(id, eth_dev_id,
> cb_fn,
> >+						      cb_arg);
> >+
> > 	RTE_EVENT_ETH_RX_ADAPTER_ID_VALID_OR_ERR_RET(id, -
> EINVAL);
> > 	RTE_ETH_VALID_PORTID_OR_ERR_RET(eth_dev_id, -EINVAL);
> >
> >@@ -3284,6 +3307,9 @@
> rte_event_eth_rx_adapter_queue_conf_get(uint8_t id,
> > 	struct eth_rx_queue_info *queue_info;
> > 	int ret;
> >
> >+	rte_eventdev_trace_eth_rx_adapter_queue_conf_get(id,
> eth_dev_id,
> >+							 rx_queue_id,
> >queue_conf);
> >+
> > 	if (rxa_memzone_lookup())
> > 		return -ENOMEM;
> >
> >@@ -3429,8 +3455,11 @@
> rte_event_eth_rx_adapter_instance_get(uint16_t
> >eth_dev_id,
> > 		}
> >
> > 		/* return if entry found */
> >-		if (ret == 0)
> >+		if (ret == 0) {
> >+
> >	rte_eventdev_trace_eth_rx_adapter_instance_get(eth_dev_id,
> >rx_queue_id,
> >+
> *rxa_inst_id);
> > 			return ret;
> >+		}
> > 	}
> >
> > 	return -EINVAL;
> >diff --git a/lib/eventdev/rte_event_eth_tx_adapter.c
> >b/lib/eventdev/rte_event_eth_tx_adapter.c
> >index 6e9bcb1b79..cce50c3c18 100644
> >--- a/lib/eventdev/rte_event_eth_tx_adapter.c
> >+++ b/lib/eventdev/rte_event_eth_tx_adapter.c
> >@@ -995,6 +995,8 @@ txa_service_id_get(uint8_t id, uint32_t *service_id)
> > 		return -EINVAL;
> >
> > 	*service_id = txa->service_id;
> >+
> >+	rte_eventdev_trace_eth_tx_adapter_service_id_get(id,
> *service_id);
> > 	return 0;
> > }
> >
> >@@ -1123,6 +1125,8 @@ rte_event_eth_tx_adapter_create_ext(uint8_t
> id,
> >uint8_t dev_id,  int  rte_event_eth_tx_adapter_event_port_get(uint8_t
> >id, uint8_t *event_port_id)  {
> >+	rte_eventdev_trace_eth_tx_adapter_event_port_get(id);
> >+
> > 	TXA_CHECK_OR_ERR_RET(id);
> >
> > 	return txa_service_event_port_get(id, event_port_id); @@ -1264,6
> >+1268,9 @@ rte_event_eth_tx_adapter_stats_get(uint8_t id,
> > 			ret = txa_service_stats_get(id, stats);
> > 	}
> >
> >+	rte_eventdev_trace_eth_tx_adapter_stats_get(id, stats->tx_retry,
> >+stats-
> >>tx_packets,
> >+						    stats->tx_dropped, ret);
> >+
> > 	return ret;
> > }
> >
> >@@ -1278,6 +1285,9 @@ rte_event_eth_tx_adapter_stats_reset(uint8_t
> id)
> > 		txa_dev_stats_reset(id)(id, txa_evdev(id)) : 0;
> > 	if (ret == 0)
> > 		ret = txa_service_stats_reset(id);
> >+
> >+	rte_eventdev_trace_eth_tx_adapter_stats_reset(id, ret);
> >+
> > 	return ret;
> > }
> >
> >@@ -1341,8 +1351,11 @@
> rte_event_eth_tx_adapter_instance_get(uint16_t
> >eth_dev_id,
> > 								 tx_queue_id,
> > 								 txa_inst_id)
> > 							: -EINVAL;
> >-			if (ret == 0)
> >+			if (ret == 0) {
> >+
> >	rte_eventdev_trace_eth_tx_adapter_instance_get(eth_dev_id,
> >+								tx_queue_id,
> >*txa_inst_id);
> > 				return ret;
> >+			}
> > 		} else {
> > 			struct rte_eth_dev *eth_dev;
> >
> >@@ -1351,6 +1364,8 @@
> rte_event_eth_tx_adapter_instance_get(uint16_t
> >eth_dev_id,
> > 			if (txa_service_is_queue_added(txa, eth_dev,
> > 						       tx_queue_id)) {
> > 				*txa_inst_id = txa->id;
> >+
> >	rte_eventdev_trace_eth_tx_adapter_instance_get(eth_dev_id,
> >+								tx_queue_id,
> >*txa_inst_id);
> > 				return 0;
> > 			}
> > 		}
> >@@ -1426,11 +1441,15 @@ txa_queue_start_state_set(uint16_t
> eth_dev_id,
> >uint16_t tx_queue_id,  int
> >rte_event_eth_tx_adapter_queue_start(uint16_t eth_dev_id, uint16_t
> >tx_queue_id)
> > {
> >+	rte_eventdev_trace_eth_tx_adapter_queue_start(eth_dev_id,
> >tx_queue_id);
> >+
> > 	return txa_queue_start_state_set(eth_dev_id, tx_queue_id, true);
> }
> >
> > int
> > rte_event_eth_tx_adapter_queue_stop(uint16_t eth_dev_id, uint16_t
> >tx_queue_id)
> > {
> >+	rte_eventdev_trace_eth_tx_adapter_queue_stop(eth_dev_id,
> >tx_queue_id);
> >+
> > 	return txa_queue_start_state_set(eth_dev_id, tx_queue_id, false);
> }
> >diff --git a/lib/eventdev/rte_event_ring.c
> >b/lib/eventdev/rte_event_ring.c index c070715148..b965970cf9 100644
> >--- a/lib/eventdev/rte_event_ring.c
> >+++ b/lib/eventdev/rte_event_ring.c
> >@@ -5,6 +5,7 @@
> >
> >
> > #include "rte_event_ring.h"
> >+#include "eventdev_trace.h"
> >
> > int
> > rte_event_ring_init(struct rte_event_ring *r, const char *name, @@
> >-14,6 +15,8 @@ rte_event_ring_init(struct rte_event_ring *r, const char
> >*name,
> > 	RTE_BUILD_BUG_ON((sizeof(struct rte_event_ring) &
> > 			  RTE_CACHE_LINE_MASK) != 0);
> >
> >+	rte_eventdev_trace_ring_init(r, name, count, flags);
> >+
> > 	/* init the ring structure */
> > 	return rte_ring_init(&r->r, name, count, flags);  } @@ -23,6 +26,8 @@
> >struct rte_event_ring *  rte_event_ring_create(const char *name,
> >unsigned int count, int socket_id,
> > 		unsigned int flags)
> > {
> >+	rte_eventdev_trace_ring_create(name, count, socket_id, flags);
> >+
> > 	return (struct rte_event_ring *)rte_ring_create_elem(name,
> > 						sizeof(struct rte_event),
> > 						count, socket_id, flags);
> >@@ -32,6 +37,8 @@ rte_event_ring_create(const char *name, unsigned int
> >count, int socket_id,  struct rte_event_ring *
> >rte_event_ring_lookup(const char *name)  {
> >+	rte_eventdev_trace_ring_lookup(name);
> >+
> > 	return (struct rte_event_ring *)rte_ring_lookup(name); }
> >
> >@@ -39,5 +46,7 @@ rte_event_ring_lookup(const char *name)  void
> >rte_event_ring_free(struct rte_event_ring *r)  {
> >+	rte_eventdev_trace_ring_free(r->r.name);
> >+
> > 	rte_ring_free((struct rte_ring *)r);
> > }
> >diff --git a/lib/eventdev/rte_event_timer_adapter.c
> >b/lib/eventdev/rte_event_timer_adapter.c
> >index d357f7403a..61712c3bd5 100644
> >--- a/lib/eventdev/rte_event_timer_adapter.c
> >+++ b/lib/eventdev/rte_event_timer_adapter.c
> >@@ -275,6 +275,8 @@ rte_event_timer_adapter_get_info(const struct
> >rte_event_timer_adapter *adapter,
> > 	adapter_info->event_dev_port_id = adapter->data->event_port_id;
> > 	adapter_info->caps = adapter->data->caps;
> >
> >+	rte_eventdev_trace_timer_adapter_get_info(adapter,
> adapter_info);
> >+
> > 	return 0;
> > }
> >
> >@@ -386,6 +388,8 @@ rte_event_timer_adapter_lookup(uint16_t
> adapter_id)
> >
> > 	adapter->allocated = 1;
> >
> >+	rte_eventdev_trace_timer_adapter_lookup(adapter_id, adapter);
> >+
> > 	return adapter;
> > }
> >
> >@@ -436,9 +440,14 @@ rte_event_timer_adapter_service_id_get(struct
> >rte_event_timer_adapter *adapter,
> > {
> > 	ADAPTER_VALID_OR_ERR_RET(adapter, -EINVAL);
> >
> >+	if (service_id == NULL)
> >+		return -EINVAL;
> >+
> > 	if (adapter->data->service_inited && service_id != NULL)
> > 		*service_id = adapter->data->service_id;
> >
> >+	rte_eventdev_trace_timer_adapter_service_id_get(adapter,
> >*service_id);
> >+
> > 	return adapter->data->service_inited ? 0 : -ESRCH; }
> >
> >@@ -446,6 +455,8 @@ int
> > rte_event_timer_adapter_stats_get(struct rte_event_timer_adapter
> *adapter,
> > 				  struct rte_event_timer_adapter_stats
> *stats)  {
> >+	rte_eventdev_trace_timer_adapter_stats_get(adapter, stats);
> >+
> > 	ADAPTER_VALID_OR_ERR_RET(adapter, -EINVAL);
> > 	FUNC_PTR_OR_ERR_RET(adapter->ops->stats_get, -EINVAL);
> > 	if (stats == NULL)
> >@@ -457,6 +468,8 @@ rte_event_timer_adapter_stats_get(struct
> >rte_event_timer_adapter *adapter,
> > int
> > rte_event_timer_adapter_stats_reset(struct rte_event_timer_adapter
> >*adapter)
> > {
> >+	rte_eventdev_trace_timer_adapter_stats_reset(adapter);
> >+
> > 	ADAPTER_VALID_OR_ERR_RET(adapter, -EINVAL);
> > 	FUNC_PTR_OR_ERR_RET(adapter->ops->stats_reset, -EINVAL);
> > 	return adapter->ops->stats_reset(adapter);
> >@@ -468,6 +481,8 @@ rte_event_timer_remaining_ticks_get(
> > 			const struct rte_event_timer *evtim,
> > 			uint64_t *ticks_remaining)
> > {
> >+	rte_eventdev_trace_timer_remaining_ticks_get(adapter, evtim,
> >ticks_remaining);
> >+
> > 	ADAPTER_VALID_OR_ERR_RET(adapter, -EINVAL);
> > 	FUNC_PTR_OR_ERR_RET(adapter->ops->remaining_ticks_get, -
> ENOTSUP);
> >
> >diff --git a/lib/eventdev/rte_eventdev.c b/lib/eventdev/rte_eventdev.c
> >index b0414206d9..245b1d2d4e 100644
> >--- a/lib/eventdev/rte_eventdev.c
> >+++ b/lib/eventdev/rte_eventdev.c
> >@@ -62,8 +62,10 @@ rte_event_dev_get_dev_id(const char *name)
> > 				rte_event_devices[i].dev->driver->name,
> name,
> > 					 RTE_EVENTDEV_NAME_MAX_LEN)
> == 0) :
> >0);
> > 		if (cmp && (rte_event_devices[i].attached ==
> >-					RTE_EVENTDEV_ATTACHED))
> >+					RTE_EVENTDEV_ATTACHED)) {
> >+			rte_eventdev_trace_get_dev_id(name, i);
> > 			return i;
> >+		}
> > 	}
> > 	return -ENODEV;
> > }
> >@@ -76,6 +78,8 @@ rte_event_dev_socket_id(uint8_t dev_id)
> > 	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
> > 	dev = &rte_eventdevs[dev_id];
> >
> >+	rte_eventdev_trace_socket_id(dev_id, dev, dev->data->socket_id);
> >+
> > 	return dev->data->socket_id;
> > }
> >
> >@@ -99,6 +103,9 @@ rte_event_dev_info_get(uint8_t dev_id, struct
> >rte_event_dev_info *dev_info)
> > 	dev_info->dequeue_timeout_ns = dev->data-
> >>dev_conf.dequeue_timeout_ns;
> >
> > 	dev_info->dev = dev->dev;
> >+
> >+	rte_eventdev_trace_info_get(dev_id, dev_info, dev_info->dev);
> >+
> > 	return 0;
> > }
> >
> >@@ -108,6 +115,8 @@ rte_event_eth_rx_adapter_caps_get(uint8_t
> dev_id,
> >uint16_t eth_port_id,  {
> > 	struct rte_eventdev *dev;
> >
> >+	rte_eventdev_trace_eth_rx_adapter_caps_get(dev_id,
> eth_port_id);
> >+
> > 	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
> > 	RTE_ETH_VALID_PORTID_OR_ERR_RET(eth_port_id, -EINVAL);
> >
> >@@ -134,6 +143,8 @@ rte_event_timer_adapter_caps_get(uint8_t dev_id,
> >uint32_t *caps)
> > 	struct rte_eventdev *dev;
> > 	const struct event_timer_adapter_ops *ops;
> >
> >+	rte_eventdev_trace_timer_adapter_caps_get(dev_id);
> >+
> > 	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
> >
> > 	dev = &rte_eventdevs[dev_id];
> >@@ -168,6 +179,8 @@ rte_event_crypto_adapter_caps_get(uint8_t
> dev_id,
> >uint8_t cdev_id,
> > 	dev = &rte_eventdevs[dev_id];
> > 	cdev = rte_cryptodev_pmd_get_dev(cdev_id);
> >
> >+	rte_eventdev_trace_crypto_adapter_caps_get(dev_id, dev,
> cdev_id,
> >cdev);
> >+
> > 	if (caps == NULL)
> > 		return -EINVAL;
> >
> >@@ -194,6 +207,8 @@ rte_event_eth_tx_adapter_caps_get(uint8_t
> dev_id,
> >uint16_t eth_port_id,
> > 	dev = &rte_eventdevs[dev_id];
> > 	eth_dev = &rte_eth_devices[eth_port_id];
> >
> >+	rte_eventdev_trace_eth_tx_adapter_caps_get(dev_id, dev,
> eth_port_id,
> >eth_dev);
> >+
> > 	if (caps == NULL)
> > 		return -EINVAL;
> >
> >@@ -524,6 +539,9 @@ rte_event_queue_default_conf_get(uint8_t
> dev_id,
> >uint8_t queue_id,
> > 		return -ENOTSUP;
> > 	memset(queue_conf, 0, sizeof(struct rte_event_queue_conf));
> > 	(*dev->dev_ops->queue_def_conf)(dev, queue_id, queue_conf);
> >+
> >+	rte_eventdev_trace_queue_default_conf_get(dev_id, dev,
> queue_id,
> >queue_conf);
> >+
> > 	return 0;
> > }
> >
> >@@ -652,6 +670,9 @@ rte_event_port_default_conf_get(uint8_t dev_id,
> >uint8_t port_id,
> > 		return -ENOTSUP;
> > 	memset(port_conf, 0, sizeof(struct rte_event_port_conf));
> > 	(*dev->dev_ops->port_def_conf)(dev, port_id, port_conf);
> >+
> >+	rte_eventdev_trace_port_default_conf_get(dev_id, dev, port_id,
> >port_conf);
> >+
> > 	return 0;
> > }
> >
> >@@ -754,6 +775,8 @@ rte_event_port_quiesce(uint8_t dev_id, uint8_t
> port_id,
> > 	RTE_EVENTDEV_VALID_DEVID_OR_RET(dev_id);
> > 	dev = &rte_eventdevs[dev_id];
> >
> >+	rte_eventdev_trace_port_quiesce(dev_id, dev, port_id, args);
> >+
> > 	if (!is_valid_port(dev, port_id)) {
> > 		RTE_EDEV_LOG_ERR("Invalid port_id=%" PRIu8, port_id);
> > 		return;
> >@@ -789,6 +812,8 @@ rte_event_dev_attr_get(uint8_t dev_id, uint32_t
> attr_id,
> > 		return -EINVAL;
> > 	}
> >
> >+	rte_eventdev_trace_attr_get(dev_id, dev, attr_id, *attr_value);
> >+
> > 	return 0;
> > }
> >
> >@@ -829,6 +854,9 @@ rte_event_port_attr_get(uint8_t dev_id, uint8_t
> >port_id, uint32_t attr_id,
> > 	default:
> > 		return -EINVAL;
> > 	};
> >+
> >+	rte_eventdev_trace_port_attr_get(dev_id, dev, port_id, attr_id,
> >*attr_value);
> >+
> > 	return 0;
> > }
> >
> >@@ -885,6 +913,9 @@ rte_event_queue_attr_get(uint8_t dev_id, uint8_t
> >queue_id, uint32_t attr_id,
> > 	default:
> > 		return -EINVAL;
> > 	};
> >+
> >+	rte_eventdev_trace_queue_attr_get(dev_id, dev, queue_id,
> attr_id,
> >*attr_value);
> >+
> > 	return 0;
> > }
> >
> >@@ -894,6 +925,8 @@ rte_event_queue_attr_set(uint8_t dev_id, uint8_t
> >queue_id, uint32_t attr_id,  {
> > 	struct rte_eventdev *dev;
> >
> >+	rte_eventdev_trace_queue_attr_set(dev_id, queue_id, attr_id,
> >attr_value);
> >+
> > 	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
> > 	dev = &rte_eventdevs[dev_id];
> > 	if (!is_valid_queue(dev, queue_id)) { @@ -1048,6 +1081,8 @@
> >rte_event_port_unlinks_in_progress(uint8_t dev_id, uint8_t port_id)  {
> > 	struct rte_eventdev *dev;
> >
> >+	rte_eventdev_trace_port_unlinks_in_progress(dev_id, port_id);
> >+
> > 	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
> > 	dev = &rte_eventdevs[dev_id];
> > 	if (!is_valid_port(dev, port_id)) {
> >@@ -1091,6 +1126,9 @@ rte_event_port_links_get(uint8_t dev_id, uint8_t
> >port_id,
> > 			++count;
> > 		}
> > 	}
> >+
> >+	rte_eventdev_trace_port_links_get(dev_id, port_id, count);
> >+
> > 	return count;
> > }
> >
> >@@ -1100,6 +1138,8 @@ rte_event_dequeue_timeout_ticks(uint8_t
> dev_id,
> >uint64_t ns,  {
> > 	struct rte_eventdev *dev;
> >
> >+	rte_eventdev_trace_dequeue_timeout_ticks(dev_id, ns,
> timeout_ticks);
> >+
> > 	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
> > 	dev = &rte_eventdevs[dev_id];
> > 	if (*dev->dev_ops->timeout_ticks == NULL) @@ -1125,6 +1165,8
> @@
> >rte_event_dev_service_id_get(uint8_t dev_id, uint32_t
> >*service_id)
> > 	if (dev->data->service_inited)
> > 		*service_id = dev->data->service_id;
> >
> >+	rte_eventdev_trace_service_id_get(dev_id, *service_id);
> >+
> > 	return dev->data->service_inited ? 0 : -ESRCH; }
> >
> >@@ -1285,6 +1327,9 @@ rte_event_vector_pool_create(const char
> *name,
> >unsigned int n,
> > 	if (ret < 0)
> > 		goto err;
> >
> >+	rte_eventdev_trace_vector_pool_create(mp, mp->name, mp-
> >>socket_id,
> >+		mp->size, mp->cache_size, mp->elt_size);
> >+
> > 	return mp;
> > err:
> > 	rte_mempool_free(mp);
> >@@ -1332,6 +1377,8 @@
> >rte_event_dev_stop_flush_callback_register(uint8_t
> >dev_id,
> >
> > 	RTE_EDEV_LOG_DEBUG("Stop flush register dev_id=%" PRIu8,
> dev_id);
> >
> >+	rte_eventdev_trace_stop_flush_callback_register(dev_id, callback,
> >userdata);
> >+
> > 	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
> > 	dev = &rte_eventdevs[dev_id];
> >
> >--
> >2.25.1


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [PATCH v6] eventdev: add trace points
  2023-01-31 13:44       ` [PATCH v5] " Amit Prakash Shukla
  2023-02-01 10:16         ` [EXT] " Shijith Thotton
@ 2023-02-02  9:17         ` Amit Prakash Shukla
  2023-02-02  9:24           ` [EXT] " Shijith Thotton
  1 sibling, 1 reply; 14+ messages in thread
From: Amit Prakash Shukla @ 2023-02-02  9:17 UTC (permalink / raw)
  To: Jerin Jacob, Abhinandan Gujjar, Naga Harish K S V, Erik Gabriel Carrillo
  Cc: dev, Amit Prakash Shukla

Add trace points for eventdev functions.

Signed-off-by: Amit Prakash Shukla <amitprakashs@marvell.com>
---
v2:
 - Fixed CI test failure
 - Code review suggestion from Abhinandan

v3:
 - Removed trace symbols from version.map
 
v4:
 - Fixed CI test failure
 - Cleaned-up unwanted includes and trace functions
 - Added traces to pending functions

v5:
 - Fixed coding style issue

v6:
 - Code review suggestion from Shijith

 lib/eventdev/eventdev_trace.h           | 495 +++++++++++++++++++++++-
 lib/eventdev/eventdev_trace_points.c    | 159 ++++++++
 lib/eventdev/rte_event_crypto_adapter.c |  18 +-
 lib/eventdev/rte_event_eth_rx_adapter.c |  31 +-
 lib/eventdev/rte_event_eth_tx_adapter.c |  21 +-
 lib/eventdev/rte_event_ring.c           |   9 +
 lib/eventdev/rte_event_timer_adapter.c  |  15 +
 lib/eventdev/rte_eventdev.c             |  49 ++-
 8 files changed, 784 insertions(+), 13 deletions(-)

diff --git a/lib/eventdev/eventdev_trace.h b/lib/eventdev/eventdev_trace.h
index d48cd58850..e1f7b45940 100644
--- a/lib/eventdev/eventdev_trace.h
+++ b/lib/eventdev/eventdev_trace.h
@@ -63,6 +63,7 @@ RTE_TRACE_POINT(
 	rte_trace_point_emit_u16(port_conf->enqueue_depth);
 	rte_trace_point_emit_u32(port_conf->event_port_cfg);
 	rte_trace_point_emit_int(rc);
+	rte_trace_point_emit_ptr(port_conf);
 )
 
 RTE_TRACE_POINT(
@@ -250,16 +251,17 @@ RTE_TRACE_POINT(
 
 RTE_TRACE_POINT(
 	rte_eventdev_trace_crypto_adapter_create,
-	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint8_t dev_id, void *adapter,
-		struct rte_event_port_conf *port_conf, uint8_t mode),
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint8_t dev_id,
+		struct rte_event_port_conf *port_config, int mode, int ret),
 	rte_trace_point_emit_u8(adptr_id);
 	rte_trace_point_emit_u8(dev_id);
-	rte_trace_point_emit_ptr(adapter);
-	rte_trace_point_emit_u8(mode);
-	rte_trace_point_emit_i32(port_conf->new_event_threshold);
-	rte_trace_point_emit_u16(port_conf->dequeue_depth);
-	rte_trace_point_emit_u16(port_conf->enqueue_depth);
-	rte_trace_point_emit_u32(port_conf->event_port_cfg);
+	rte_trace_point_emit_ptr(port_config);
+	rte_trace_point_emit_i32(port_config->new_event_threshold);
+	rte_trace_point_emit_u16(port_config->dequeue_depth);
+	rte_trace_point_emit_u16(port_config->enqueue_depth);
+	rte_trace_point_emit_u32(port_config->event_port_cfg);
+	rte_trace_point_emit_int(mode);
+	rte_trace_point_emit_int(ret);
 )
 
 RTE_TRACE_POINT(
@@ -303,6 +305,483 @@ RTE_TRACE_POINT(
 	rte_trace_point_emit_u8(adptr_id);
 )
 
+RTE_TRACE_POINT(
+	rte_eventdev_trace_crypto_adapter_event_port_get,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint8_t event_port_id),
+	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_u8(event_port_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_crypto_adapter_service_id_get,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint32_t service_id),
+	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_u32(service_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_attr_get,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *dev, uint32_t attr_id,
+		uint32_t attr_value),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_ptr(dev);
+	rte_trace_point_emit_u32(attr_id);
+	rte_trace_point_emit_u32(attr_value);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_get_dev_id,
+	RTE_TRACE_POINT_ARGS(const char *name, int dev_id),
+	rte_trace_point_emit_string(name);
+	rte_trace_point_emit_int(dev_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_info_get,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *dev_info, const void *dev),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_ptr(dev_info);
+	rte_trace_point_emit_ptr(dev);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_service_id_get,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint32_t service_id),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_u32(service_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_socket_id,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *dev, int socket_id),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_ptr(dev);
+	rte_trace_point_emit_int(socket_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_stop_flush_callback_register,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *callback, const void *userdata),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_ptr(callback);
+	rte_trace_point_emit_ptr(userdata);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_rx_adapter_caps_get,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint16_t eth_port_id),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_u16(eth_port_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_rx_adapter_cb_register,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint16_t eth_dev_id, const void *cb_fn,
+		const void *cb_arg),
+	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_u16(eth_dev_id);
+	rte_trace_point_emit_ptr(cb_fn);
+	rte_trace_point_emit_ptr(cb_arg);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_rx_adapter_create_with_params,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint8_t dev_id,
+		const struct rte_event_port_conf *port_config,
+		const struct rte_event_eth_rx_adapter_params *rxa_params,
+		int ret),
+	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_ptr(port_config);
+	rte_trace_point_emit_i32(port_config->new_event_threshold);
+	rte_trace_point_emit_u16(port_config->dequeue_depth);
+	rte_trace_point_emit_u16(port_config->enqueue_depth);
+	rte_trace_point_emit_u32(port_config->event_port_cfg);
+	rte_trace_point_emit_ptr(rxa_params);
+	rte_trace_point_emit_u16(rxa_params->event_buf_size);
+	rte_trace_point_emit_int(ret);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_rx_adapter_service_id_get,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint32_t service_id),
+	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_u32(service_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_rx_adapter_event_port_get,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint8_t event_port_id),
+	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_u8(event_port_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_rx_adapter_vector_limits_get,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint16_t eth_port_id,
+		uint16_t min_sz, uint16_t max_sz, uint8_t log2_sz,
+		uint64_t min_timeout_ns, uint64_t max_timeout_ns, int ret),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_u16(eth_port_id);
+	rte_trace_point_emit_u16(min_sz);
+	rte_trace_point_emit_u16(max_sz);
+	rte_trace_point_emit_u8(log2_sz);
+	rte_trace_point_emit_u64(min_timeout_ns);
+	rte_trace_point_emit_u64(max_timeout_ns);
+	rte_trace_point_emit_int(ret);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_tx_adapter_caps_get,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *dev, uint16_t eth_port_id,
+		const void *eth_dev),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_ptr(dev);
+	rte_trace_point_emit_u16(eth_port_id);
+	rte_trace_point_emit_ptr(eth_dev);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_tx_adapter_event_port_get,
+	RTE_TRACE_POINT_ARGS(uint8_t id),
+	rte_trace_point_emit_u8(id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_tx_adapter_service_id_get,
+	RTE_TRACE_POINT_ARGS(uint8_t id, uint32_t service_id),
+	rte_trace_point_emit_u8(id);
+	rte_trace_point_emit_u32(service_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_port_attr_get,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *dev, uint8_t port_id,
+		uint32_t attr_id, uint32_t attr_value),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_ptr(dev);
+	rte_trace_point_emit_u8(port_id);
+	rte_trace_point_emit_u32(attr_id);
+	rte_trace_point_emit_u32(attr_value);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_port_default_conf_get,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *dev, uint8_t port_id,
+		const struct rte_event_port_conf *port_conf),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_ptr(dev);
+	rte_trace_point_emit_u8(port_id);
+	rte_trace_point_emit_ptr(port_conf);
+	rte_trace_point_emit_i32(port_conf->new_event_threshold);
+	rte_trace_point_emit_u16(port_conf->dequeue_depth);
+	rte_trace_point_emit_u16(port_conf->enqueue_depth);
+	rte_trace_point_emit_u32(port_conf->event_port_cfg);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_port_links_get,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint8_t port_id, int count),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_u8(port_id);
+	rte_trace_point_emit_int(count);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_port_unlinks_in_progress,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint8_t port_id),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_u8(port_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_queue_attr_get,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *dev, uint8_t queue_id,
+		uint32_t attr_id, uint32_t attr_value),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_ptr(dev);
+	rte_trace_point_emit_u8(queue_id);
+	rte_trace_point_emit_u32(attr_id);
+	rte_trace_point_emit_u32(attr_value);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_queue_default_conf_get,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *dev, uint8_t queue_id,
+		const struct rte_event_queue_conf *queue_conf),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_ptr(dev);
+	rte_trace_point_emit_u8(queue_id);
+	rte_trace_point_emit_ptr(queue_conf);
+	rte_trace_point_emit_u32(queue_conf->nb_atomic_flows);
+	rte_trace_point_emit_u32(queue_conf->nb_atomic_order_sequences);
+	rte_trace_point_emit_u32(queue_conf->event_queue_cfg);
+	rte_trace_point_emit_u8(queue_conf->schedule_type);
+	rte_trace_point_emit_u8(queue_conf->priority);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_ring_create,
+	RTE_TRACE_POINT_ARGS(const char *name, unsigned int count,
+		int socket_id, unsigned int flags),
+	rte_trace_point_emit_string(name);
+	rte_trace_point_emit_u32(count);
+	rte_trace_point_emit_int(socket_id);
+	rte_trace_point_emit_u32(flags);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_ring_free,
+	RTE_TRACE_POINT_ARGS(const char *name),
+	rte_trace_point_emit_string(name);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_ring_init,
+	RTE_TRACE_POINT_ARGS(const void *r, const char *name,
+		unsigned int count, unsigned int flags),
+	rte_trace_point_emit_ptr(r);
+	rte_trace_point_emit_string(name);
+	rte_trace_point_emit_u32(count);
+	rte_trace_point_emit_u32(flags);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_ring_lookup,
+	RTE_TRACE_POINT_ARGS(const char *name),
+	rte_trace_point_emit_string(name);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_timer_adapter_caps_get,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id),
+	rte_trace_point_emit_u8(dev_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_timer_adapter_get_info,
+	RTE_TRACE_POINT_ARGS(const void *adapter,
+		const struct rte_event_timer_adapter_info *adapter_info),
+	rte_trace_point_emit_ptr(adapter);
+	rte_trace_point_emit_ptr(adapter_info);
+	rte_trace_point_emit_u64(adapter_info->min_resolution_ns);
+	rte_trace_point_emit_u64(adapter_info->max_tmo_ns);
+	rte_trace_point_emit_u32(adapter_info->caps);
+	rte_trace_point_emit_u16(adapter_info->event_dev_port_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_timer_adapter_lookup,
+	RTE_TRACE_POINT_ARGS(uint16_t adapter_id, const void *adapter),
+	rte_trace_point_emit_u16(adapter_id);
+	rte_trace_point_emit_ptr(adapter);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_timer_adapter_service_id_get,
+	RTE_TRACE_POINT_ARGS(const struct rte_event_timer_adapter *adapter,
+		uint32_t service_id),
+	rte_trace_point_emit_ptr(adapter);
+	rte_trace_point_emit_u32(service_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_vector_pool_create,
+	RTE_TRACE_POINT_ARGS(const void *mp, const char *name, int socket_id,
+		uint32_t size, uint32_t cache_size, uint32_t elt_size),
+	rte_trace_point_emit_ptr(mp);
+	rte_trace_point_emit_string(name);
+	rte_trace_point_emit_int(socket_id);
+	rte_trace_point_emit_u32(size);
+	rte_trace_point_emit_u32(cache_size);
+	rte_trace_point_emit_u32(elt_size);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_rx_adapter_queue_conf_get,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint16_t eth_dev_id,
+		uint16_t rx_queue_id, const void *queue_conf),
+	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_u16(eth_dev_id);
+	rte_trace_point_emit_u16(rx_queue_id);
+	rte_trace_point_emit_ptr(queue_conf);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_queue_attr_set,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint8_t queue_id, uint32_t attr_id,
+		uint64_t attr_value),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_u8(queue_id);
+	rte_trace_point_emit_u32(attr_id);
+	rte_trace_point_emit_u64(attr_value);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_port_quiesce,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *dev, uint8_t port_id, const void *args),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_ptr(dev);
+	rte_trace_point_emit_u8(port_id);
+	rte_trace_point_emit_ptr(args);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_crypto_adapter_caps_get,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *dev, uint8_t cdev_id,
+		const void *cdev),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_ptr(dev);
+	rte_trace_point_emit_u8(cdev_id);
+	rte_trace_point_emit_ptr(cdev);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_dequeue_timeout_ticks,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint64_t ns,
+		const void *timeout_ticks),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_u64(ns);
+	rte_trace_point_emit_ptr(timeout_ticks);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_crypto_adapter_stats_get,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, const void *stats,
+		uint64_t event_poll_count, uint64_t event_deq_count,
+		uint64_t crypto_enq_count, uint64_t crypto_enq_fail,
+		uint64_t crypto_deq_count, uint64_t event_enq_count,
+		uint64_t event_enq_retry_count, uint64_t event_enq_fail_count),
+	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_ptr(stats);
+	rte_trace_point_emit_u64(event_poll_count);
+	rte_trace_point_emit_u64(event_deq_count);
+	rte_trace_point_emit_u64(crypto_enq_count);
+	rte_trace_point_emit_u64(crypto_enq_fail);
+	rte_trace_point_emit_u64(crypto_deq_count);
+	rte_trace_point_emit_u64(event_enq_count);
+	rte_trace_point_emit_u64(event_enq_retry_count);
+	rte_trace_point_emit_u64(event_enq_fail_count);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_crypto_adapter_stats_reset,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id),
+	rte_trace_point_emit_u8(adptr_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_rx_adapter_stats_get,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, const void *stats),
+	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_ptr(stats);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_crypto_adapter_vector_limits_get,
+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint16_t cdev_id,
+		const void *limits),
+	rte_trace_point_emit_u8(dev_id);
+	rte_trace_point_emit_u16(cdev_id);
+	rte_trace_point_emit_ptr(limits);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_rx_adapter_queue_stats_get,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint16_t eth_dev_id,
+		uint16_t rx_queue_id, const void *stats),
+	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_u16(eth_dev_id);
+	rte_trace_point_emit_u16(rx_queue_id);
+	rte_trace_point_emit_ptr(stats);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_rx_adapter_stats_reset,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id),
+	rte_trace_point_emit_u8(adptr_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_rx_adapter_queue_stats_reset,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint16_t eth_dev_id,
+		uint16_t rx_queue_id),
+	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_u16(eth_dev_id);
+	rte_trace_point_emit_u16(rx_queue_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_rx_adapter_instance_get,
+	RTE_TRACE_POINT_ARGS(uint16_t eth_dev_id, uint16_t rx_queue_id,
+		uint8_t rxa_inst_id),
+	rte_trace_point_emit_u16(eth_dev_id);
+	rte_trace_point_emit_u16(rx_queue_id);
+	rte_trace_point_emit_u8(rxa_inst_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_tx_adapter_stats_get,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint64_t tx_retry,
+		uint64_t tx_packets, uint64_t tx_dropped, int ret),
+	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_u64(tx_retry);
+	rte_trace_point_emit_u64(tx_packets);
+	rte_trace_point_emit_u64(tx_dropped);
+	rte_trace_point_emit_int(ret);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_tx_adapter_stats_reset,
+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, int ret),
+	rte_trace_point_emit_u8(adptr_id);
+	rte_trace_point_emit_int(ret);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_tx_adapter_instance_get,
+	RTE_TRACE_POINT_ARGS(uint16_t eth_dev_id, uint16_t tx_queue_id,
+		uint8_t txa_inst_id),
+	rte_trace_point_emit_u16(eth_dev_id);
+	rte_trace_point_emit_u16(tx_queue_id);
+	rte_trace_point_emit_u8(txa_inst_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_tx_adapter_queue_start,
+	RTE_TRACE_POINT_ARGS(uint16_t eth_dev_id, uint16_t tx_queue_id),
+	rte_trace_point_emit_u16(eth_dev_id);
+	rte_trace_point_emit_u16(tx_queue_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_eth_tx_adapter_queue_stop,
+	RTE_TRACE_POINT_ARGS(uint16_t eth_dev_id, uint16_t tx_queue_id),
+	rte_trace_point_emit_u16(eth_dev_id);
+	rte_trace_point_emit_u16(tx_queue_id);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_timer_adapter_stats_get,
+	RTE_TRACE_POINT_ARGS(const void *adapter, const void *stats),
+	rte_trace_point_emit_ptr(adapter);
+	rte_trace_point_emit_ptr(stats);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_timer_adapter_stats_reset,
+	RTE_TRACE_POINT_ARGS(const void *adapter),
+	rte_trace_point_emit_ptr(adapter);
+)
+
+RTE_TRACE_POINT(
+	rte_eventdev_trace_timer_remaining_ticks_get,
+	RTE_TRACE_POINT_ARGS(const void *adapter, const void *evtim, const void *ticks_remaining),
+	rte_trace_point_emit_ptr(adapter);
+	rte_trace_point_emit_ptr(evtim);
+	rte_trace_point_emit_ptr(ticks_remaining);
+)
+
 #ifdef __cplusplus
 }
 #endif
diff --git a/lib/eventdev/eventdev_trace_points.c b/lib/eventdev/eventdev_trace_points.c
index de6b1f4417..76144cfe75 100644
--- a/lib/eventdev/eventdev_trace_points.c
+++ b/lib/eventdev/eventdev_trace_points.c
@@ -124,3 +124,162 @@ RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_stop,
 
 RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_enqueue,
 	lib.eventdev.crypto.enq)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_event_port_get,
+	lib.eventdev.crypto.adapter_event_port_get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_service_id_get,
+	lib.eventdev.crypto.adapter_service_id_get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_vector_limits_get,
+	lib.eventdev.crypto.adapter_vector_limits_get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_attr_get,
+	lib.eventdev.attr_get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_get_dev_id,
+	lib.eventdev.get_dev_id)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_info_get,
+	lib.eventdev.info_get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_service_id_get,
+	lib.eventdev.service_id_get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_socket_id,
+	lib.eventdev.socket.id)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_stop_flush_callback_register,
+	lib.eventdev.stop.flush.callback.register)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_caps_get,
+	lib.eventdev.eth.rx.adapter.caps.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_cb_register,
+	lib.eventdev.eth.rx.adapter.cb.register)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_service_id_get,
+	lib.eventdev.eth.rx.adapter.service.id.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_event_port_get,
+	lib.eventdev.eth.rx.adapter.event.port.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_vector_limits_get,
+	lib.eventdev.eth.rx.adapter.vector.limits.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_queue_stats_get,
+	lib.eventdev.eth.rx.adapter.queue.stats.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_stats_reset,
+	lib.eventdev.eth.rx.adapter.stats.reset)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_queue_stats_reset,
+	lib.eventdev.eth.rx.adapter.queue.stats.reset)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_instance_get,
+	lib.eventdev.eth.rx.adapter.instance.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_caps_get,
+	lib.eventdev.eth.tx.adapter.caps.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_event_port_get,
+	lib.eventdev.eth.tx.adapter.event.port.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_service_id_get,
+	lib.eventdev.eth.tx.adapter.service.id.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_stats_get,
+	lib.eventdev.eth.tx.adapter.stats.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_stats_reset,
+	lib.eventdev.eth.tx.adapter.stats.reset)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_instance_get,
+	lib.eventdev.eth.tx.adapter.instance.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_port_attr_get,
+	lib.eventdev.port.attr.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_port_default_conf_get,
+	lib.eventdev.port.default.conf.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_port_links_get,
+	lib.eventdev.port.links.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_port_unlinks_in_progress,
+	lib.eventdev.port.unlinks.in.progress)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_queue_attr_get,
+	lib.eventdev.queue.attr.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_queue_default_conf_get,
+	lib.eventdev.queue.default.conf.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_ring_create,
+	lib.eventdev.ring.create)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_ring_free,
+	lib.eventdev.ring.free)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_ring_init,
+	lib.eventdev.ring.init)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_ring_lookup,
+	lib.eventdev.ring.lookup)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_adapter_caps_get,
+	lib.eventdev.timer.adapter.caps.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_adapter_get_info,
+	lib.eventdev.timer.adapter.get.info)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_adapter_lookup,
+	lib.eventdev.timer.adapter.lookup)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_adapter_service_id_get,
+	lib.eventdev.timer.adapter.service.id.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_vector_pool_create,
+	lib.eventdev.vector.pool.create)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_create_with_params,
+	lib.eventdev.eth.rx.adapter.create.with.params)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_queue_conf_get,
+	lib.eventdev.eth.rx.adapter.queue.conf.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_queue_attr_set,
+	lib.eventdev.queue.attr.set)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_port_quiesce,
+	lib.eventdev.port.quiesce)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_caps_get,
+	lib.eventdev.crypto.adapter.caps.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_dequeue_timeout_ticks,
+	lib.eventdev.dequeue.timeout.ticks)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_stats_get,
+	lib.eventdev.crypto.adapter.stats.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_stats_reset,
+	lib.eventdev.crypto.adapter.stats.reset)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_stats_get,
+	lib.eventdev.rx.adapter.stats.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_queue_start,
+	lib.eventdev.tx.adapter.queue.start)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_queue_stop,
+	lib.eventdev.tx.adapter.queue.stop)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_adapter_stats_get,
+	lib.eventdev.timer.adapter.stats.get)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_adapter_stats_reset,
+	lib.eventdev.timer.adapter.stats.reset)
+
+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_remaining_ticks_get,
+	lib.eventdev.timer.remaining.ticks.get)
diff --git a/lib/eventdev/rte_event_crypto_adapter.c b/lib/eventdev/rte_event_crypto_adapter.c
index bb782208f0..7f0a25a4cc 100644
--- a/lib/eventdev/rte_event_crypto_adapter.c
+++ b/lib/eventdev/rte_event_crypto_adapter.c
@@ -386,8 +386,6 @@ rte_event_crypto_adapter_create_ext(uint8_t id, uint8_t dev_id,
 
 	event_crypto_adapter[id] = adapter;
 
-	rte_eventdev_trace_crypto_adapter_create(id, dev_id, adapter, conf_arg,
-		mode);
 	return 0;
 }
 
@@ -415,6 +413,8 @@ rte_event_crypto_adapter_create(uint8_t id, uint8_t dev_id,
 	if (ret)
 		rte_free(pc);
 
+	rte_eventdev_trace_crypto_adapter_create(id, dev_id, port_config, mode,	ret);
+
 	return ret;
 }
 
@@ -1293,6 +1293,12 @@ rte_event_crypto_adapter_stats_get(uint8_t id,
 	stats->crypto_deq_count += dev_stats_sum.crypto_deq_count;
 	stats->event_enq_count += dev_stats_sum.event_enq_count;
 
+	rte_eventdev_trace_crypto_adapter_stats_get(id, stats,
+		stats->event_poll_count, stats->event_deq_count,
+		stats->crypto_enq_count, stats->crypto_enq_fail,
+		stats->crypto_deq_count, stats->event_enq_count,
+		stats->event_enq_retry_count, stats->event_enq_fail_count);
+
 	return 0;
 }
 
@@ -1304,6 +1310,8 @@ rte_event_crypto_adapter_stats_reset(uint8_t id)
 	struct rte_eventdev *dev;
 	uint32_t i;
 
+	rte_eventdev_trace_crypto_adapter_stats_reset(id);
+
 	if (eca_memzone_lookup())
 		return -ENOMEM;
 
@@ -1341,6 +1349,8 @@ rte_event_crypto_adapter_service_id_get(uint8_t id, uint32_t *service_id)
 	if (adapter->service_inited)
 		*service_id = adapter->service_id;
 
+	rte_eventdev_trace_crypto_adapter_service_id_get(id, *service_id);
+
 	return adapter->service_inited ? 0 : -ESRCH;
 }
 
@@ -1357,6 +1367,8 @@ rte_event_crypto_adapter_event_port_get(uint8_t id, uint8_t *event_port_id)
 
 	*event_port_id = adapter->event_port_id;
 
+	rte_eventdev_trace_crypto_adapter_event_port_get(id, *event_port_id);
+
 	return 0;
 }
 
@@ -1370,6 +1382,8 @@ rte_event_crypto_adapter_vector_limits_get(
 	uint32_t cap;
 	int ret;
 
+	rte_eventdev_trace_crypto_adapter_vector_limits_get(dev_id, cdev_id, limits);
+
 	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
 
 	if (!rte_cryptodev_is_valid_dev(cdev_id)) {
diff --git a/lib/eventdev/rte_event_eth_rx_adapter.c b/lib/eventdev/rte_event_eth_rx_adapter.c
index 34aa87379e..91bbba715b 100644
--- a/lib/eventdev/rte_event_eth_rx_adapter.c
+++ b/lib/eventdev/rte_event_eth_rx_adapter.c
@@ -2541,6 +2541,9 @@ rte_event_eth_rx_adapter_create_with_params(uint8_t id, uint8_t dev_id,
 	if (ret)
 		rte_free(pc);
 
+	rte_eventdev_trace_eth_rx_adapter_create_with_params(id, dev_id,
+		port_config, rxa_params, ret);
+
 	return ret;
 }
 
@@ -2929,6 +2932,9 @@ rte_event_eth_rx_adapter_vector_limits_get(
 		ret = rxa_sw_vector_limits(limits);
 	}
 
+	rte_eventdev_trace_eth_rx_adapter_vector_limits_get(dev_id, eth_port_id,
+		limits->min_sz, limits->max_sz, limits->log2_sz,
+		limits->min_timeout_ns, limits->max_timeout_ns, ret);
 	return ret;
 }
 
@@ -2970,6 +2976,8 @@ rte_event_eth_rx_adapter_stats_get(uint8_t id,
 	uint32_t i, j;
 	int ret;
 
+	rte_eventdev_trace_eth_rx_adapter_stats_get(id, stats);
+
 	if (rxa_memzone_lookup())
 		return -ENOMEM;
 
@@ -3041,6 +3049,9 @@ rte_event_eth_rx_adapter_queue_stats_get(uint8_t id,
 	struct rte_event_eth_rx_adapter_stats *q_stats;
 	struct rte_eventdev *dev;
 
+	rte_eventdev_trace_eth_rx_adapter_queue_stats_get(id, eth_dev_id,
+							  rx_queue_id, stats);
+
 	if (rxa_memzone_lookup())
 		return -ENOMEM;
 
@@ -3098,6 +3109,8 @@ rte_event_eth_rx_adapter_stats_reset(uint8_t id)
 	struct eth_rx_queue_info *queue_info;
 	uint32_t i, j;
 
+	rte_eventdev_trace_eth_rx_adapter_stats_reset(id);
+
 	if (rxa_memzone_lookup())
 		return -ENOMEM;
 
@@ -3145,6 +3158,9 @@ rte_event_eth_rx_adapter_queue_stats_reset(uint8_t id,
 	struct eth_rx_queue_info *queue_info;
 	struct rte_eventdev *dev;
 
+	rte_eventdev_trace_eth_rx_adapter_queue_stats_reset(id, eth_dev_id,
+							    rx_queue_id);
+
 	if (rxa_memzone_lookup())
 		return -ENOMEM;
 
@@ -3203,6 +3219,8 @@ rte_event_eth_rx_adapter_service_id_get(uint8_t id, uint32_t *service_id)
 	if (rx_adapter->service_inited)
 		*service_id = rx_adapter->service_id;
 
+	rte_eventdev_trace_eth_rx_adapter_service_id_get(id, *service_id);
+
 	return rx_adapter->service_inited ? 0 : -ESRCH;
 }
 
@@ -3223,6 +3241,8 @@ rte_event_eth_rx_adapter_event_port_get(uint8_t id, uint8_t *event_port_id)
 	if (rx_adapter->service_inited)
 		*event_port_id = rx_adapter->event_port_id;
 
+	rte_eventdev_trace_eth_rx_adapter_event_port_get(id, *event_port_id);
+
 	return rx_adapter->service_inited ? 0 : -ESRCH;
 }
 
@@ -3237,6 +3257,9 @@ rte_event_eth_rx_adapter_cb_register(uint8_t id,
 	uint32_t cap;
 	int ret;
 
+	rte_eventdev_trace_eth_rx_adapter_cb_register(id, eth_dev_id, cb_fn,
+						      cb_arg);
+
 	RTE_EVENT_ETH_RX_ADAPTER_ID_VALID_OR_ERR_RET(id, -EINVAL);
 	RTE_ETH_VALID_PORTID_OR_ERR_RET(eth_dev_id, -EINVAL);
 
@@ -3284,6 +3307,9 @@ rte_event_eth_rx_adapter_queue_conf_get(uint8_t id,
 	struct eth_rx_queue_info *queue_info;
 	int ret;
 
+	rte_eventdev_trace_eth_rx_adapter_queue_conf_get(id, eth_dev_id,
+							 rx_queue_id, queue_conf);
+
 	if (rxa_memzone_lookup())
 		return -ENOMEM;
 
@@ -3429,8 +3455,11 @@ rte_event_eth_rx_adapter_instance_get(uint16_t eth_dev_id,
 		}
 
 		/* return if entry found */
-		if (ret == 0)
+		if (ret == 0) {
+			rte_eventdev_trace_eth_rx_adapter_instance_get(eth_dev_id, rx_queue_id,
+								       *rxa_inst_id);
 			return ret;
+		}
 	}
 
 	return -EINVAL;
diff --git a/lib/eventdev/rte_event_eth_tx_adapter.c b/lib/eventdev/rte_event_eth_tx_adapter.c
index 6e9bcb1b79..cce50c3c18 100644
--- a/lib/eventdev/rte_event_eth_tx_adapter.c
+++ b/lib/eventdev/rte_event_eth_tx_adapter.c
@@ -995,6 +995,8 @@ txa_service_id_get(uint8_t id, uint32_t *service_id)
 		return -EINVAL;
 
 	*service_id = txa->service_id;
+
+	rte_eventdev_trace_eth_tx_adapter_service_id_get(id, *service_id);
 	return 0;
 }
 
@@ -1123,6 +1125,8 @@ rte_event_eth_tx_adapter_create_ext(uint8_t id, uint8_t dev_id,
 int
 rte_event_eth_tx_adapter_event_port_get(uint8_t id, uint8_t *event_port_id)
 {
+	rte_eventdev_trace_eth_tx_adapter_event_port_get(id);
+
 	TXA_CHECK_OR_ERR_RET(id);
 
 	return txa_service_event_port_get(id, event_port_id);
@@ -1264,6 +1268,9 @@ rte_event_eth_tx_adapter_stats_get(uint8_t id,
 			ret = txa_service_stats_get(id, stats);
 	}
 
+	rte_eventdev_trace_eth_tx_adapter_stats_get(id, stats->tx_retry, stats->tx_packets,
+						    stats->tx_dropped, ret);
+
 	return ret;
 }
 
@@ -1278,6 +1285,9 @@ rte_event_eth_tx_adapter_stats_reset(uint8_t id)
 		txa_dev_stats_reset(id)(id, txa_evdev(id)) : 0;
 	if (ret == 0)
 		ret = txa_service_stats_reset(id);
+
+	rte_eventdev_trace_eth_tx_adapter_stats_reset(id, ret);
+
 	return ret;
 }
 
@@ -1341,8 +1351,11 @@ rte_event_eth_tx_adapter_instance_get(uint16_t eth_dev_id,
 								 tx_queue_id,
 								 txa_inst_id)
 							: -EINVAL;
-			if (ret == 0)
+			if (ret == 0) {
+				rte_eventdev_trace_eth_tx_adapter_instance_get(eth_dev_id,
+								tx_queue_id, *txa_inst_id);
 				return ret;
+			}
 		} else {
 			struct rte_eth_dev *eth_dev;
 
@@ -1351,6 +1364,8 @@ rte_event_eth_tx_adapter_instance_get(uint16_t eth_dev_id,
 			if (txa_service_is_queue_added(txa, eth_dev,
 						       tx_queue_id)) {
 				*txa_inst_id = txa->id;
+				rte_eventdev_trace_eth_tx_adapter_instance_get(eth_dev_id,
+								tx_queue_id, *txa_inst_id);
 				return 0;
 			}
 		}
@@ -1426,11 +1441,15 @@ txa_queue_start_state_set(uint16_t eth_dev_id, uint16_t tx_queue_id,
 int
 rte_event_eth_tx_adapter_queue_start(uint16_t eth_dev_id, uint16_t tx_queue_id)
 {
+	rte_eventdev_trace_eth_tx_adapter_queue_start(eth_dev_id, tx_queue_id);
+
 	return txa_queue_start_state_set(eth_dev_id, tx_queue_id, true);
 }
 
 int
 rte_event_eth_tx_adapter_queue_stop(uint16_t eth_dev_id, uint16_t tx_queue_id)
 {
+	rte_eventdev_trace_eth_tx_adapter_queue_stop(eth_dev_id, tx_queue_id);
+
 	return txa_queue_start_state_set(eth_dev_id, tx_queue_id, false);
 }
diff --git a/lib/eventdev/rte_event_ring.c b/lib/eventdev/rte_event_ring.c
index c070715148..b965970cf9 100644
--- a/lib/eventdev/rte_event_ring.c
+++ b/lib/eventdev/rte_event_ring.c
@@ -5,6 +5,7 @@
 
 
 #include "rte_event_ring.h"
+#include "eventdev_trace.h"
 
 int
 rte_event_ring_init(struct rte_event_ring *r, const char *name,
@@ -14,6 +15,8 @@ rte_event_ring_init(struct rte_event_ring *r, const char *name,
 	RTE_BUILD_BUG_ON((sizeof(struct rte_event_ring) &
 			  RTE_CACHE_LINE_MASK) != 0);
 
+	rte_eventdev_trace_ring_init(r, name, count, flags);
+
 	/* init the ring structure */
 	return rte_ring_init(&r->r, name, count, flags);
 }
@@ -23,6 +26,8 @@ struct rte_event_ring *
 rte_event_ring_create(const char *name, unsigned int count, int socket_id,
 		unsigned int flags)
 {
+	rte_eventdev_trace_ring_create(name, count, socket_id, flags);
+
 	return (struct rte_event_ring *)rte_ring_create_elem(name,
 						sizeof(struct rte_event),
 						count, socket_id, flags);
@@ -32,6 +37,8 @@ rte_event_ring_create(const char *name, unsigned int count, int socket_id,
 struct rte_event_ring *
 rte_event_ring_lookup(const char *name)
 {
+	rte_eventdev_trace_ring_lookup(name);
+
 	return (struct rte_event_ring *)rte_ring_lookup(name);
 }
 
@@ -39,5 +46,7 @@ rte_event_ring_lookup(const char *name)
 void
 rte_event_ring_free(struct rte_event_ring *r)
 {
+	rte_eventdev_trace_ring_free(r->r.name);
+
 	rte_ring_free((struct rte_ring *)r);
 }
diff --git a/lib/eventdev/rte_event_timer_adapter.c b/lib/eventdev/rte_event_timer_adapter.c
index d357f7403a..61712c3bd5 100644
--- a/lib/eventdev/rte_event_timer_adapter.c
+++ b/lib/eventdev/rte_event_timer_adapter.c
@@ -275,6 +275,8 @@ rte_event_timer_adapter_get_info(const struct rte_event_timer_adapter *adapter,
 	adapter_info->event_dev_port_id = adapter->data->event_port_id;
 	adapter_info->caps = adapter->data->caps;
 
+	rte_eventdev_trace_timer_adapter_get_info(adapter, adapter_info);
+
 	return 0;
 }
 
@@ -386,6 +388,8 @@ rte_event_timer_adapter_lookup(uint16_t adapter_id)
 
 	adapter->allocated = 1;
 
+	rte_eventdev_trace_timer_adapter_lookup(adapter_id, adapter);
+
 	return adapter;
 }
 
@@ -436,9 +440,14 @@ rte_event_timer_adapter_service_id_get(struct rte_event_timer_adapter *adapter,
 {
 	ADAPTER_VALID_OR_ERR_RET(adapter, -EINVAL);
 
+	if (service_id == NULL)
+		return -EINVAL;
+
 	if (adapter->data->service_inited && service_id != NULL)
 		*service_id = adapter->data->service_id;
 
+	rte_eventdev_trace_timer_adapter_service_id_get(adapter, *service_id);
+
 	return adapter->data->service_inited ? 0 : -ESRCH;
 }
 
@@ -446,6 +455,8 @@ int
 rte_event_timer_adapter_stats_get(struct rte_event_timer_adapter *adapter,
 				  struct rte_event_timer_adapter_stats *stats)
 {
+	rte_eventdev_trace_timer_adapter_stats_get(adapter, stats);
+
 	ADAPTER_VALID_OR_ERR_RET(adapter, -EINVAL);
 	FUNC_PTR_OR_ERR_RET(adapter->ops->stats_get, -EINVAL);
 	if (stats == NULL)
@@ -457,6 +468,8 @@ rte_event_timer_adapter_stats_get(struct rte_event_timer_adapter *adapter,
 int
 rte_event_timer_adapter_stats_reset(struct rte_event_timer_adapter *adapter)
 {
+	rte_eventdev_trace_timer_adapter_stats_reset(adapter);
+
 	ADAPTER_VALID_OR_ERR_RET(adapter, -EINVAL);
 	FUNC_PTR_OR_ERR_RET(adapter->ops->stats_reset, -EINVAL);
 	return adapter->ops->stats_reset(adapter);
@@ -468,6 +481,8 @@ rte_event_timer_remaining_ticks_get(
 			const struct rte_event_timer *evtim,
 			uint64_t *ticks_remaining)
 {
+	rte_eventdev_trace_timer_remaining_ticks_get(adapter, evtim, ticks_remaining);
+
 	ADAPTER_VALID_OR_ERR_RET(adapter, -EINVAL);
 	FUNC_PTR_OR_ERR_RET(adapter->ops->remaining_ticks_get, -ENOTSUP);
 
diff --git a/lib/eventdev/rte_eventdev.c b/lib/eventdev/rte_eventdev.c
index b0414206d9..245b1d2d4e 100644
--- a/lib/eventdev/rte_eventdev.c
+++ b/lib/eventdev/rte_eventdev.c
@@ -62,8 +62,10 @@ rte_event_dev_get_dev_id(const char *name)
 				rte_event_devices[i].dev->driver->name, name,
 					 RTE_EVENTDEV_NAME_MAX_LEN) == 0) : 0);
 		if (cmp && (rte_event_devices[i].attached ==
-					RTE_EVENTDEV_ATTACHED))
+					RTE_EVENTDEV_ATTACHED)) {
+			rte_eventdev_trace_get_dev_id(name, i);
 			return i;
+		}
 	}
 	return -ENODEV;
 }
@@ -76,6 +78,8 @@ rte_event_dev_socket_id(uint8_t dev_id)
 	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
 	dev = &rte_eventdevs[dev_id];
 
+	rte_eventdev_trace_socket_id(dev_id, dev, dev->data->socket_id);
+
 	return dev->data->socket_id;
 }
 
@@ -99,6 +103,9 @@ rte_event_dev_info_get(uint8_t dev_id, struct rte_event_dev_info *dev_info)
 	dev_info->dequeue_timeout_ns = dev->data->dev_conf.dequeue_timeout_ns;
 
 	dev_info->dev = dev->dev;
+
+	rte_eventdev_trace_info_get(dev_id, dev_info, dev_info->dev);
+
 	return 0;
 }
 
@@ -108,6 +115,8 @@ rte_event_eth_rx_adapter_caps_get(uint8_t dev_id, uint16_t eth_port_id,
 {
 	struct rte_eventdev *dev;
 
+	rte_eventdev_trace_eth_rx_adapter_caps_get(dev_id, eth_port_id);
+
 	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
 	RTE_ETH_VALID_PORTID_OR_ERR_RET(eth_port_id, -EINVAL);
 
@@ -134,6 +143,8 @@ rte_event_timer_adapter_caps_get(uint8_t dev_id, uint32_t *caps)
 	struct rte_eventdev *dev;
 	const struct event_timer_adapter_ops *ops;
 
+	rte_eventdev_trace_timer_adapter_caps_get(dev_id);
+
 	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
 
 	dev = &rte_eventdevs[dev_id];
@@ -168,6 +179,8 @@ rte_event_crypto_adapter_caps_get(uint8_t dev_id, uint8_t cdev_id,
 	dev = &rte_eventdevs[dev_id];
 	cdev = rte_cryptodev_pmd_get_dev(cdev_id);
 
+	rte_eventdev_trace_crypto_adapter_caps_get(dev_id, dev, cdev_id, cdev);
+
 	if (caps == NULL)
 		return -EINVAL;
 
@@ -194,6 +207,8 @@ rte_event_eth_tx_adapter_caps_get(uint8_t dev_id, uint16_t eth_port_id,
 	dev = &rte_eventdevs[dev_id];
 	eth_dev = &rte_eth_devices[eth_port_id];
 
+	rte_eventdev_trace_eth_tx_adapter_caps_get(dev_id, dev, eth_port_id, eth_dev);
+
 	if (caps == NULL)
 		return -EINVAL;
 
@@ -524,6 +539,9 @@ rte_event_queue_default_conf_get(uint8_t dev_id, uint8_t queue_id,
 		return -ENOTSUP;
 	memset(queue_conf, 0, sizeof(struct rte_event_queue_conf));
 	(*dev->dev_ops->queue_def_conf)(dev, queue_id, queue_conf);
+
+	rte_eventdev_trace_queue_default_conf_get(dev_id, dev, queue_id, queue_conf);
+
 	return 0;
 }
 
@@ -652,6 +670,9 @@ rte_event_port_default_conf_get(uint8_t dev_id, uint8_t port_id,
 		return -ENOTSUP;
 	memset(port_conf, 0, sizeof(struct rte_event_port_conf));
 	(*dev->dev_ops->port_def_conf)(dev, port_id, port_conf);
+
+	rte_eventdev_trace_port_default_conf_get(dev_id, dev, port_id, port_conf);
+
 	return 0;
 }
 
@@ -754,6 +775,8 @@ rte_event_port_quiesce(uint8_t dev_id, uint8_t port_id,
 	RTE_EVENTDEV_VALID_DEVID_OR_RET(dev_id);
 	dev = &rte_eventdevs[dev_id];
 
+	rte_eventdev_trace_port_quiesce(dev_id, dev, port_id, args);
+
 	if (!is_valid_port(dev, port_id)) {
 		RTE_EDEV_LOG_ERR("Invalid port_id=%" PRIu8, port_id);
 		return;
@@ -789,6 +812,8 @@ rte_event_dev_attr_get(uint8_t dev_id, uint32_t attr_id,
 		return -EINVAL;
 	}
 
+	rte_eventdev_trace_attr_get(dev_id, dev, attr_id, *attr_value);
+
 	return 0;
 }
 
@@ -829,6 +854,9 @@ rte_event_port_attr_get(uint8_t dev_id, uint8_t port_id, uint32_t attr_id,
 	default:
 		return -EINVAL;
 	};
+
+	rte_eventdev_trace_port_attr_get(dev_id, dev, port_id, attr_id, *attr_value);
+
 	return 0;
 }
 
@@ -885,6 +913,9 @@ rte_event_queue_attr_get(uint8_t dev_id, uint8_t queue_id, uint32_t attr_id,
 	default:
 		return -EINVAL;
 	};
+
+	rte_eventdev_trace_queue_attr_get(dev_id, dev, queue_id, attr_id, *attr_value);
+
 	return 0;
 }
 
@@ -894,6 +925,8 @@ rte_event_queue_attr_set(uint8_t dev_id, uint8_t queue_id, uint32_t attr_id,
 {
 	struct rte_eventdev *dev;
 
+	rte_eventdev_trace_queue_attr_set(dev_id, queue_id, attr_id, attr_value);
+
 	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
 	dev = &rte_eventdevs[dev_id];
 	if (!is_valid_queue(dev, queue_id)) {
@@ -1048,6 +1081,8 @@ rte_event_port_unlinks_in_progress(uint8_t dev_id, uint8_t port_id)
 {
 	struct rte_eventdev *dev;
 
+	rte_eventdev_trace_port_unlinks_in_progress(dev_id, port_id);
+
 	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
 	dev = &rte_eventdevs[dev_id];
 	if (!is_valid_port(dev, port_id)) {
@@ -1091,6 +1126,9 @@ rte_event_port_links_get(uint8_t dev_id, uint8_t port_id,
 			++count;
 		}
 	}
+
+	rte_eventdev_trace_port_links_get(dev_id, port_id, count);
+
 	return count;
 }
 
@@ -1100,6 +1138,8 @@ rte_event_dequeue_timeout_ticks(uint8_t dev_id, uint64_t ns,
 {
 	struct rte_eventdev *dev;
 
+	rte_eventdev_trace_dequeue_timeout_ticks(dev_id, ns, timeout_ticks);
+
 	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
 	dev = &rte_eventdevs[dev_id];
 	if (*dev->dev_ops->timeout_ticks == NULL)
@@ -1125,6 +1165,8 @@ rte_event_dev_service_id_get(uint8_t dev_id, uint32_t *service_id)
 	if (dev->data->service_inited)
 		*service_id = dev->data->service_id;
 
+	rte_eventdev_trace_service_id_get(dev_id, *service_id);
+
 	return dev->data->service_inited ? 0 : -ESRCH;
 }
 
@@ -1285,6 +1327,9 @@ rte_event_vector_pool_create(const char *name, unsigned int n,
 	if (ret < 0)
 		goto err;
 
+	rte_eventdev_trace_vector_pool_create(mp, mp->name, mp->socket_id,
+		mp->size, mp->cache_size, mp->elt_size);
+
 	return mp;
 err:
 	rte_mempool_free(mp);
@@ -1332,6 +1377,8 @@ rte_event_dev_stop_flush_callback_register(uint8_t dev_id,
 
 	RTE_EDEV_LOG_DEBUG("Stop flush register dev_id=%" PRIu8, dev_id);
 
+	rte_eventdev_trace_stop_flush_callback_register(dev_id, callback, userdata);
+
 	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
 	dev = &rte_eventdevs[dev_id];
 
-- 
2.25.1


^ permalink raw reply	[flat|nested] 14+ messages in thread

* RE: [EXT] [PATCH v6] eventdev: add trace points
  2023-02-02  9:17         ` [PATCH v6] " Amit Prakash Shukla
@ 2023-02-02  9:24           ` Shijith Thotton
  2023-02-07  8:00             ` Jerin Jacob
  0 siblings, 1 reply; 14+ messages in thread
From: Shijith Thotton @ 2023-02-02  9:24 UTC (permalink / raw)
  To: Amit Prakash Shukla, Jerin Jacob Kollanukkaran,
	Abhinandan Gujjar, Naga Harish K S V, Erik Gabriel Carrillo
  Cc: dev, Amit Prakash Shukla

>Add trace points for eventdev functions.
>
>Signed-off-by: Amit Prakash Shukla <amitprakashs@marvell.com>
 
Acked-by: Shijith Thotton <sthotton@marvell.com>

>---
>v2:
> - Fixed CI test failure
> - Code review suggestion from Abhinandan
>
>v3:
> - Removed trace symbols from version.map
>
>v4:
> - Fixed CI test failure
> - Cleaned-up unwanted includes and trace functions
> - Added traces to pending functions
>
>v5:
> - Fixed coding style issue
>
>v6:
> - Code review suggestion from Shijith
>
> lib/eventdev/eventdev_trace.h           | 495 +++++++++++++++++++++++-
> lib/eventdev/eventdev_trace_points.c    | 159 ++++++++
> lib/eventdev/rte_event_crypto_adapter.c |  18 +-
> lib/eventdev/rte_event_eth_rx_adapter.c |  31 +-
> lib/eventdev/rte_event_eth_tx_adapter.c |  21 +-
> lib/eventdev/rte_event_ring.c           |   9 +
> lib/eventdev/rte_event_timer_adapter.c  |  15 +
> lib/eventdev/rte_eventdev.c             |  49 ++-
> 8 files changed, 784 insertions(+), 13 deletions(-)
>
>diff --git a/lib/eventdev/eventdev_trace.h b/lib/eventdev/eventdev_trace.h
>index d48cd58850..e1f7b45940 100644
>--- a/lib/eventdev/eventdev_trace.h
>+++ b/lib/eventdev/eventdev_trace.h
>@@ -63,6 +63,7 @@ RTE_TRACE_POINT(
> 	rte_trace_point_emit_u16(port_conf->enqueue_depth);
> 	rte_trace_point_emit_u32(port_conf->event_port_cfg);
> 	rte_trace_point_emit_int(rc);
>+	rte_trace_point_emit_ptr(port_conf);
> )
>
> RTE_TRACE_POINT(
>@@ -250,16 +251,17 @@ RTE_TRACE_POINT(
>
> RTE_TRACE_POINT(
> 	rte_eventdev_trace_crypto_adapter_create,
>-	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint8_t dev_id, void *adapter,
>-		struct rte_event_port_conf *port_conf, uint8_t mode),
>+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint8_t dev_id,
>+		struct rte_event_port_conf *port_config, int mode, int ret),
> 	rte_trace_point_emit_u8(adptr_id);
> 	rte_trace_point_emit_u8(dev_id);
>-	rte_trace_point_emit_ptr(adapter);
>-	rte_trace_point_emit_u8(mode);
>-	rte_trace_point_emit_i32(port_conf->new_event_threshold);
>-	rte_trace_point_emit_u16(port_conf->dequeue_depth);
>-	rte_trace_point_emit_u16(port_conf->enqueue_depth);
>-	rte_trace_point_emit_u32(port_conf->event_port_cfg);
>+	rte_trace_point_emit_ptr(port_config);
>+	rte_trace_point_emit_i32(port_config->new_event_threshold);
>+	rte_trace_point_emit_u16(port_config->dequeue_depth);
>+	rte_trace_point_emit_u16(port_config->enqueue_depth);
>+	rte_trace_point_emit_u32(port_config->event_port_cfg);
>+	rte_trace_point_emit_int(mode);
>+	rte_trace_point_emit_int(ret);
> )
>
> RTE_TRACE_POINT(
>@@ -303,6 +305,483 @@ RTE_TRACE_POINT(
> 	rte_trace_point_emit_u8(adptr_id);
> )
>
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_crypto_adapter_event_port_get,
>+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint8_t event_port_id),
>+	rte_trace_point_emit_u8(adptr_id);
>+	rte_trace_point_emit_u8(event_port_id);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_crypto_adapter_service_id_get,
>+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint32_t service_id),
>+	rte_trace_point_emit_u8(adptr_id);
>+	rte_trace_point_emit_u32(service_id);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_attr_get,
>+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *dev, uint32_t
>attr_id,
>+		uint32_t attr_value),
>+	rte_trace_point_emit_u8(dev_id);
>+	rte_trace_point_emit_ptr(dev);
>+	rte_trace_point_emit_u32(attr_id);
>+	rte_trace_point_emit_u32(attr_value);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_get_dev_id,
>+	RTE_TRACE_POINT_ARGS(const char *name, int dev_id),
>+	rte_trace_point_emit_string(name);
>+	rte_trace_point_emit_int(dev_id);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_info_get,
>+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *dev_info, const
>void *dev),
>+	rte_trace_point_emit_u8(dev_id);
>+	rte_trace_point_emit_ptr(dev_info);
>+	rte_trace_point_emit_ptr(dev);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_service_id_get,
>+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint32_t service_id),
>+	rte_trace_point_emit_u8(dev_id);
>+	rte_trace_point_emit_u32(service_id);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_socket_id,
>+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *dev, int socket_id),
>+	rte_trace_point_emit_u8(dev_id);
>+	rte_trace_point_emit_ptr(dev);
>+	rte_trace_point_emit_int(socket_id);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_stop_flush_callback_register,
>+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *callback, const void
>*userdata),
>+	rte_trace_point_emit_u8(dev_id);
>+	rte_trace_point_emit_ptr(callback);
>+	rte_trace_point_emit_ptr(userdata);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_eth_rx_adapter_caps_get,
>+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint16_t eth_port_id),
>+	rte_trace_point_emit_u8(dev_id);
>+	rte_trace_point_emit_u16(eth_port_id);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_eth_rx_adapter_cb_register,
>+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint16_t eth_dev_id, const
>void *cb_fn,
>+		const void *cb_arg),
>+	rte_trace_point_emit_u8(adptr_id);
>+	rte_trace_point_emit_u16(eth_dev_id);
>+	rte_trace_point_emit_ptr(cb_fn);
>+	rte_trace_point_emit_ptr(cb_arg);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_eth_rx_adapter_create_with_params,
>+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint8_t dev_id,
>+		const struct rte_event_port_conf *port_config,
>+		const struct rte_event_eth_rx_adapter_params *rxa_params,
>+		int ret),
>+	rte_trace_point_emit_u8(adptr_id);
>+	rte_trace_point_emit_u8(dev_id);
>+	rte_trace_point_emit_ptr(port_config);
>+	rte_trace_point_emit_i32(port_config->new_event_threshold);
>+	rte_trace_point_emit_u16(port_config->dequeue_depth);
>+	rte_trace_point_emit_u16(port_config->enqueue_depth);
>+	rte_trace_point_emit_u32(port_config->event_port_cfg);
>+	rte_trace_point_emit_ptr(rxa_params);
>+	rte_trace_point_emit_u16(rxa_params->event_buf_size);
>+	rte_trace_point_emit_int(ret);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_eth_rx_adapter_service_id_get,
>+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint32_t service_id),
>+	rte_trace_point_emit_u8(adptr_id);
>+	rte_trace_point_emit_u32(service_id);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_eth_rx_adapter_event_port_get,
>+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint8_t event_port_id),
>+	rte_trace_point_emit_u8(adptr_id);
>+	rte_trace_point_emit_u8(event_port_id);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_eth_rx_adapter_vector_limits_get,
>+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint16_t eth_port_id,
>+		uint16_t min_sz, uint16_t max_sz, uint8_t log2_sz,
>+		uint64_t min_timeout_ns, uint64_t max_timeout_ns, int ret),
>+	rte_trace_point_emit_u8(dev_id);
>+	rte_trace_point_emit_u16(eth_port_id);
>+	rte_trace_point_emit_u16(min_sz);
>+	rte_trace_point_emit_u16(max_sz);
>+	rte_trace_point_emit_u8(log2_sz);
>+	rte_trace_point_emit_u64(min_timeout_ns);
>+	rte_trace_point_emit_u64(max_timeout_ns);
>+	rte_trace_point_emit_int(ret);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_eth_tx_adapter_caps_get,
>+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *dev, uint16_t
>eth_port_id,
>+		const void *eth_dev),
>+	rte_trace_point_emit_u8(dev_id);
>+	rte_trace_point_emit_ptr(dev);
>+	rte_trace_point_emit_u16(eth_port_id);
>+	rte_trace_point_emit_ptr(eth_dev);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_eth_tx_adapter_event_port_get,
>+	RTE_TRACE_POINT_ARGS(uint8_t id),
>+	rte_trace_point_emit_u8(id);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_eth_tx_adapter_service_id_get,
>+	RTE_TRACE_POINT_ARGS(uint8_t id, uint32_t service_id),
>+	rte_trace_point_emit_u8(id);
>+	rte_trace_point_emit_u32(service_id);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_port_attr_get,
>+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *dev, uint8_t
>port_id,
>+		uint32_t attr_id, uint32_t attr_value),
>+	rte_trace_point_emit_u8(dev_id);
>+	rte_trace_point_emit_ptr(dev);
>+	rte_trace_point_emit_u8(port_id);
>+	rte_trace_point_emit_u32(attr_id);
>+	rte_trace_point_emit_u32(attr_value);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_port_default_conf_get,
>+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *dev, uint8_t
>port_id,
>+		const struct rte_event_port_conf *port_conf),
>+	rte_trace_point_emit_u8(dev_id);
>+	rte_trace_point_emit_ptr(dev);
>+	rte_trace_point_emit_u8(port_id);
>+	rte_trace_point_emit_ptr(port_conf);
>+	rte_trace_point_emit_i32(port_conf->new_event_threshold);
>+	rte_trace_point_emit_u16(port_conf->dequeue_depth);
>+	rte_trace_point_emit_u16(port_conf->enqueue_depth);
>+	rte_trace_point_emit_u32(port_conf->event_port_cfg);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_port_links_get,
>+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint8_t port_id, int count),
>+	rte_trace_point_emit_u8(dev_id);
>+	rte_trace_point_emit_u8(port_id);
>+	rte_trace_point_emit_int(count);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_port_unlinks_in_progress,
>+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint8_t port_id),
>+	rte_trace_point_emit_u8(dev_id);
>+	rte_trace_point_emit_u8(port_id);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_queue_attr_get,
>+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *dev, uint8_t
>queue_id,
>+		uint32_t attr_id, uint32_t attr_value),
>+	rte_trace_point_emit_u8(dev_id);
>+	rte_trace_point_emit_ptr(dev);
>+	rte_trace_point_emit_u8(queue_id);
>+	rte_trace_point_emit_u32(attr_id);
>+	rte_trace_point_emit_u32(attr_value);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_queue_default_conf_get,
>+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *dev, uint8_t
>queue_id,
>+		const struct rte_event_queue_conf *queue_conf),
>+	rte_trace_point_emit_u8(dev_id);
>+	rte_trace_point_emit_ptr(dev);
>+	rte_trace_point_emit_u8(queue_id);
>+	rte_trace_point_emit_ptr(queue_conf);
>+	rte_trace_point_emit_u32(queue_conf->nb_atomic_flows);
>+	rte_trace_point_emit_u32(queue_conf->nb_atomic_order_sequences);
>+	rte_trace_point_emit_u32(queue_conf->event_queue_cfg);
>+	rte_trace_point_emit_u8(queue_conf->schedule_type);
>+	rte_trace_point_emit_u8(queue_conf->priority);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_ring_create,
>+	RTE_TRACE_POINT_ARGS(const char *name, unsigned int count,
>+		int socket_id, unsigned int flags),
>+	rte_trace_point_emit_string(name);
>+	rte_trace_point_emit_u32(count);
>+	rte_trace_point_emit_int(socket_id);
>+	rte_trace_point_emit_u32(flags);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_ring_free,
>+	RTE_TRACE_POINT_ARGS(const char *name),
>+	rte_trace_point_emit_string(name);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_ring_init,
>+	RTE_TRACE_POINT_ARGS(const void *r, const char *name,
>+		unsigned int count, unsigned int flags),
>+	rte_trace_point_emit_ptr(r);
>+	rte_trace_point_emit_string(name);
>+	rte_trace_point_emit_u32(count);
>+	rte_trace_point_emit_u32(flags);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_ring_lookup,
>+	RTE_TRACE_POINT_ARGS(const char *name),
>+	rte_trace_point_emit_string(name);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_timer_adapter_caps_get,
>+	RTE_TRACE_POINT_ARGS(uint8_t dev_id),
>+	rte_trace_point_emit_u8(dev_id);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_timer_adapter_get_info,
>+	RTE_TRACE_POINT_ARGS(const void *adapter,
>+		const struct rte_event_timer_adapter_info *adapter_info),
>+	rte_trace_point_emit_ptr(adapter);
>+	rte_trace_point_emit_ptr(adapter_info);
>+	rte_trace_point_emit_u64(adapter_info->min_resolution_ns);
>+	rte_trace_point_emit_u64(adapter_info->max_tmo_ns);
>+	rte_trace_point_emit_u32(adapter_info->caps);
>+	rte_trace_point_emit_u16(adapter_info->event_dev_port_id);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_timer_adapter_lookup,
>+	RTE_TRACE_POINT_ARGS(uint16_t adapter_id, const void *adapter),
>+	rte_trace_point_emit_u16(adapter_id);
>+	rte_trace_point_emit_ptr(adapter);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_timer_adapter_service_id_get,
>+	RTE_TRACE_POINT_ARGS(const struct rte_event_timer_adapter
>*adapter,
>+		uint32_t service_id),
>+	rte_trace_point_emit_ptr(adapter);
>+	rte_trace_point_emit_u32(service_id);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_vector_pool_create,
>+	RTE_TRACE_POINT_ARGS(const void *mp, const char *name, int
>socket_id,
>+		uint32_t size, uint32_t cache_size, uint32_t elt_size),
>+	rte_trace_point_emit_ptr(mp);
>+	rte_trace_point_emit_string(name);
>+	rte_trace_point_emit_int(socket_id);
>+	rte_trace_point_emit_u32(size);
>+	rte_trace_point_emit_u32(cache_size);
>+	rte_trace_point_emit_u32(elt_size);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_eth_rx_adapter_queue_conf_get,
>+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint16_t eth_dev_id,
>+		uint16_t rx_queue_id, const void *queue_conf),
>+	rte_trace_point_emit_u8(adptr_id);
>+	rte_trace_point_emit_u16(eth_dev_id);
>+	rte_trace_point_emit_u16(rx_queue_id);
>+	rte_trace_point_emit_ptr(queue_conf);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_queue_attr_set,
>+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint8_t queue_id, uint32_t
>attr_id,
>+		uint64_t attr_value),
>+	rte_trace_point_emit_u8(dev_id);
>+	rte_trace_point_emit_u8(queue_id);
>+	rte_trace_point_emit_u32(attr_id);
>+	rte_trace_point_emit_u64(attr_value);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_port_quiesce,
>+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *dev, uint8_t
>port_id, const void *args),
>+	rte_trace_point_emit_u8(dev_id);
>+	rte_trace_point_emit_ptr(dev);
>+	rte_trace_point_emit_u8(port_id);
>+	rte_trace_point_emit_ptr(args);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_crypto_adapter_caps_get,
>+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *dev, uint8_t
>cdev_id,
>+		const void *cdev),
>+	rte_trace_point_emit_u8(dev_id);
>+	rte_trace_point_emit_ptr(dev);
>+	rte_trace_point_emit_u8(cdev_id);
>+	rte_trace_point_emit_ptr(cdev);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_dequeue_timeout_ticks,
>+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint64_t ns,
>+		const void *timeout_ticks),
>+	rte_trace_point_emit_u8(dev_id);
>+	rte_trace_point_emit_u64(ns);
>+	rte_trace_point_emit_ptr(timeout_ticks);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_crypto_adapter_stats_get,
>+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, const void *stats,
>+		uint64_t event_poll_count, uint64_t event_deq_count,
>+		uint64_t crypto_enq_count, uint64_t crypto_enq_fail,
>+		uint64_t crypto_deq_count, uint64_t event_enq_count,
>+		uint64_t event_enq_retry_count, uint64_t
>event_enq_fail_count),
>+	rte_trace_point_emit_u8(adptr_id);
>+	rte_trace_point_emit_ptr(stats);
>+	rte_trace_point_emit_u64(event_poll_count);
>+	rte_trace_point_emit_u64(event_deq_count);
>+	rte_trace_point_emit_u64(crypto_enq_count);
>+	rte_trace_point_emit_u64(crypto_enq_fail);
>+	rte_trace_point_emit_u64(crypto_deq_count);
>+	rte_trace_point_emit_u64(event_enq_count);
>+	rte_trace_point_emit_u64(event_enq_retry_count);
>+	rte_trace_point_emit_u64(event_enq_fail_count);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_crypto_adapter_stats_reset,
>+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id),
>+	rte_trace_point_emit_u8(adptr_id);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_eth_rx_adapter_stats_get,
>+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, const void *stats),
>+	rte_trace_point_emit_u8(adptr_id);
>+	rte_trace_point_emit_ptr(stats);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_crypto_adapter_vector_limits_get,
>+	RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint16_t cdev_id,
>+		const void *limits),
>+	rte_trace_point_emit_u8(dev_id);
>+	rte_trace_point_emit_u16(cdev_id);
>+	rte_trace_point_emit_ptr(limits);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_eth_rx_adapter_queue_stats_get,
>+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint16_t eth_dev_id,
>+		uint16_t rx_queue_id, const void *stats),
>+	rte_trace_point_emit_u8(adptr_id);
>+	rte_trace_point_emit_u16(eth_dev_id);
>+	rte_trace_point_emit_u16(rx_queue_id);
>+	rte_trace_point_emit_ptr(stats);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_eth_rx_adapter_stats_reset,
>+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id),
>+	rte_trace_point_emit_u8(adptr_id);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_eth_rx_adapter_queue_stats_reset,
>+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint16_t eth_dev_id,
>+		uint16_t rx_queue_id),
>+	rte_trace_point_emit_u8(adptr_id);
>+	rte_trace_point_emit_u16(eth_dev_id);
>+	rte_trace_point_emit_u16(rx_queue_id);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_eth_rx_adapter_instance_get,
>+	RTE_TRACE_POINT_ARGS(uint16_t eth_dev_id, uint16_t rx_queue_id,
>+		uint8_t rxa_inst_id),
>+	rte_trace_point_emit_u16(eth_dev_id);
>+	rte_trace_point_emit_u16(rx_queue_id);
>+	rte_trace_point_emit_u8(rxa_inst_id);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_eth_tx_adapter_stats_get,
>+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint64_t tx_retry,
>+		uint64_t tx_packets, uint64_t tx_dropped, int ret),
>+	rte_trace_point_emit_u8(adptr_id);
>+	rte_trace_point_emit_u64(tx_retry);
>+	rte_trace_point_emit_u64(tx_packets);
>+	rte_trace_point_emit_u64(tx_dropped);
>+	rte_trace_point_emit_int(ret);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_eth_tx_adapter_stats_reset,
>+	RTE_TRACE_POINT_ARGS(uint8_t adptr_id, int ret),
>+	rte_trace_point_emit_u8(adptr_id);
>+	rte_trace_point_emit_int(ret);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_eth_tx_adapter_instance_get,
>+	RTE_TRACE_POINT_ARGS(uint16_t eth_dev_id, uint16_t tx_queue_id,
>+		uint8_t txa_inst_id),
>+	rte_trace_point_emit_u16(eth_dev_id);
>+	rte_trace_point_emit_u16(tx_queue_id);
>+	rte_trace_point_emit_u8(txa_inst_id);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_eth_tx_adapter_queue_start,
>+	RTE_TRACE_POINT_ARGS(uint16_t eth_dev_id, uint16_t tx_queue_id),
>+	rte_trace_point_emit_u16(eth_dev_id);
>+	rte_trace_point_emit_u16(tx_queue_id);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_eth_tx_adapter_queue_stop,
>+	RTE_TRACE_POINT_ARGS(uint16_t eth_dev_id, uint16_t tx_queue_id),
>+	rte_trace_point_emit_u16(eth_dev_id);
>+	rte_trace_point_emit_u16(tx_queue_id);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_timer_adapter_stats_get,
>+	RTE_TRACE_POINT_ARGS(const void *adapter, const void *stats),
>+	rte_trace_point_emit_ptr(adapter);
>+	rte_trace_point_emit_ptr(stats);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_timer_adapter_stats_reset,
>+	RTE_TRACE_POINT_ARGS(const void *adapter),
>+	rte_trace_point_emit_ptr(adapter);
>+)
>+
>+RTE_TRACE_POINT(
>+	rte_eventdev_trace_timer_remaining_ticks_get,
>+	RTE_TRACE_POINT_ARGS(const void *adapter, const void *evtim, const
>void *ticks_remaining),
>+	rte_trace_point_emit_ptr(adapter);
>+	rte_trace_point_emit_ptr(evtim);
>+	rte_trace_point_emit_ptr(ticks_remaining);
>+)
>+
> #ifdef __cplusplus
> }
> #endif
>diff --git a/lib/eventdev/eventdev_trace_points.c
>b/lib/eventdev/eventdev_trace_points.c
>index de6b1f4417..76144cfe75 100644
>--- a/lib/eventdev/eventdev_trace_points.c
>+++ b/lib/eventdev/eventdev_trace_points.c
>@@ -124,3 +124,162 @@
>RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_stop,
>
> RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_enqueue,
> 	lib.eventdev.crypto.enq)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_event_port
>_get,
>+	lib.eventdev.crypto.adapter_event_port_get)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_service_id_
>get,
>+	lib.eventdev.crypto.adapter_service_id_get)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_vector_limi
>ts_get,
>+	lib.eventdev.crypto.adapter_vector_limits_get)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_attr_get,
>+	lib.eventdev.attr_get)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_get_dev_id,
>+	lib.eventdev.get_dev_id)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_info_get,
>+	lib.eventdev.info_get)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_service_id_get,
>+	lib.eventdev.service_id_get)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_socket_id,
>+	lib.eventdev.socket.id)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_stop_flush_callback_register
>,
>+	lib.eventdev.stop.flush.callback.register)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_caps_get,
>+	lib.eventdev.eth.rx.adapter.caps.get)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_cb_register
>,
>+	lib.eventdev.eth.rx.adapter.cb.register)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_service_id_
>get,
>+	lib.eventdev.eth.rx.adapter.service.id.get)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_event_port
>_get,
>+	lib.eventdev.eth.rx.adapter.event.port.get)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_vector_limi
>ts_get,
>+	lib.eventdev.eth.rx.adapter.vector.limits.get)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_queue_sta
>ts_get,
>+	lib.eventdev.eth.rx.adapter.queue.stats.get)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_stats_reset
>,
>+	lib.eventdev.eth.rx.adapter.stats.reset)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_queue_sta
>ts_reset,
>+	lib.eventdev.eth.rx.adapter.queue.stats.reset)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_instance_g
>et,
>+	lib.eventdev.eth.rx.adapter.instance.get)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_caps_get,
>+	lib.eventdev.eth.tx.adapter.caps.get)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_event_port
>_get,
>+	lib.eventdev.eth.tx.adapter.event.port.get)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_service_id_
>get,
>+	lib.eventdev.eth.tx.adapter.service.id.get)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_stats_get,
>+	lib.eventdev.eth.tx.adapter.stats.get)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_stats_reset
>,
>+	lib.eventdev.eth.tx.adapter.stats.reset)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_instance_g
>et,
>+	lib.eventdev.eth.tx.adapter.instance.get)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_port_attr_get,
>+	lib.eventdev.port.attr.get)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_port_default_conf_get,
>+	lib.eventdev.port.default.conf.get)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_port_links_get,
>+	lib.eventdev.port.links.get)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_port_unlinks_in_progress,
>+	lib.eventdev.port.unlinks.in.progress)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_queue_attr_get,
>+	lib.eventdev.queue.attr.get)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_queue_default_conf_get,
>+	lib.eventdev.queue.default.conf.get)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_ring_create,
>+	lib.eventdev.ring.create)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_ring_free,
>+	lib.eventdev.ring.free)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_ring_init,
>+	lib.eventdev.ring.init)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_ring_lookup,
>+	lib.eventdev.ring.lookup)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_adapter_caps_get,
>+	lib.eventdev.timer.adapter.caps.get)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_adapter_get_info,
>+	lib.eventdev.timer.adapter.get.info)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_adapter_lookup,
>+	lib.eventdev.timer.adapter.lookup)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_adapter_service_id_g
>et,
>+	lib.eventdev.timer.adapter.service.id.get)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_vector_pool_create,
>+	lib.eventdev.vector.pool.create)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_create_wit
>h_params,
>+	lib.eventdev.eth.rx.adapter.create.with.params)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_queue_con
>f_get,
>+	lib.eventdev.eth.rx.adapter.queue.conf.get)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_queue_attr_set,
>+	lib.eventdev.queue.attr.set)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_port_quiesce,
>+	lib.eventdev.port.quiesce)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_caps_get,
>+	lib.eventdev.crypto.adapter.caps.get)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_dequeue_timeout_ticks,
>+	lib.eventdev.dequeue.timeout.ticks)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_stats_get,
>+	lib.eventdev.crypto.adapter.stats.get)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_stats_reset
>,
>+	lib.eventdev.crypto.adapter.stats.reset)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_stats_get,
>+	lib.eventdev.rx.adapter.stats.get)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_queue_sta
>rt,
>+	lib.eventdev.tx.adapter.queue.start)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_queue_sto
>p,
>+	lib.eventdev.tx.adapter.queue.stop)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_adapter_stats_get,
>+	lib.eventdev.timer.adapter.stats.get)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_adapter_stats_reset,
>+	lib.eventdev.timer.adapter.stats.reset)
>+
>+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_remaining_ticks_get,
>+	lib.eventdev.timer.remaining.ticks.get)
>diff --git a/lib/eventdev/rte_event_crypto_adapter.c
>b/lib/eventdev/rte_event_crypto_adapter.c
>index bb782208f0..7f0a25a4cc 100644
>--- a/lib/eventdev/rte_event_crypto_adapter.c
>+++ b/lib/eventdev/rte_event_crypto_adapter.c
>@@ -386,8 +386,6 @@ rte_event_crypto_adapter_create_ext(uint8_t id, uint8_t
>dev_id,
>
> 	event_crypto_adapter[id] = adapter;
>
>-	rte_eventdev_trace_crypto_adapter_create(id, dev_id, adapter,
>conf_arg,
>-		mode);
> 	return 0;
> }
>
>@@ -415,6 +413,8 @@ rte_event_crypto_adapter_create(uint8_t id, uint8_t
>dev_id,
> 	if (ret)
> 		rte_free(pc);
>
>+	rte_eventdev_trace_crypto_adapter_create(id, dev_id, port_config,
>mode,	ret);
>+
> 	return ret;
> }
>
>@@ -1293,6 +1293,12 @@ rte_event_crypto_adapter_stats_get(uint8_t id,
> 	stats->crypto_deq_count += dev_stats_sum.crypto_deq_count;
> 	stats->event_enq_count += dev_stats_sum.event_enq_count;
>
>+	rte_eventdev_trace_crypto_adapter_stats_get(id, stats,
>+		stats->event_poll_count, stats->event_deq_count,
>+		stats->crypto_enq_count, stats->crypto_enq_fail,
>+		stats->crypto_deq_count, stats->event_enq_count,
>+		stats->event_enq_retry_count, stats->event_enq_fail_count);
>+
> 	return 0;
> }
>
>@@ -1304,6 +1310,8 @@ rte_event_crypto_adapter_stats_reset(uint8_t id)
> 	struct rte_eventdev *dev;
> 	uint32_t i;
>
>+	rte_eventdev_trace_crypto_adapter_stats_reset(id);
>+
> 	if (eca_memzone_lookup())
> 		return -ENOMEM;
>
>@@ -1341,6 +1349,8 @@ rte_event_crypto_adapter_service_id_get(uint8_t id,
>uint32_t *service_id)
> 	if (adapter->service_inited)
> 		*service_id = adapter->service_id;
>
>+	rte_eventdev_trace_crypto_adapter_service_id_get(id, *service_id);
>+
> 	return adapter->service_inited ? 0 : -ESRCH;
> }
>
>@@ -1357,6 +1367,8 @@ rte_event_crypto_adapter_event_port_get(uint8_t id,
>uint8_t *event_port_id)
>
> 	*event_port_id = adapter->event_port_id;
>
>+	rte_eventdev_trace_crypto_adapter_event_port_get(id,
>*event_port_id);
>+
> 	return 0;
> }
>
>@@ -1370,6 +1382,8 @@ rte_event_crypto_adapter_vector_limits_get(
> 	uint32_t cap;
> 	int ret;
>
>+	rte_eventdev_trace_crypto_adapter_vector_limits_get(dev_id, cdev_id,
>limits);
>+
> 	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
>
> 	if (!rte_cryptodev_is_valid_dev(cdev_id)) {
>diff --git a/lib/eventdev/rte_event_eth_rx_adapter.c
>b/lib/eventdev/rte_event_eth_rx_adapter.c
>index 34aa87379e..91bbba715b 100644
>--- a/lib/eventdev/rte_event_eth_rx_adapter.c
>+++ b/lib/eventdev/rte_event_eth_rx_adapter.c
>@@ -2541,6 +2541,9 @@
>rte_event_eth_rx_adapter_create_with_params(uint8_t id, uint8_t dev_id,
> 	if (ret)
> 		rte_free(pc);
>
>+	rte_eventdev_trace_eth_rx_adapter_create_with_params(id, dev_id,
>+		port_config, rxa_params, ret);
>+
> 	return ret;
> }
>
>@@ -2929,6 +2932,9 @@ rte_event_eth_rx_adapter_vector_limits_get(
> 		ret = rxa_sw_vector_limits(limits);
> 	}
>
>+	rte_eventdev_trace_eth_rx_adapter_vector_limits_get(dev_id,
>eth_port_id,
>+		limits->min_sz, limits->max_sz, limits->log2_sz,
>+		limits->min_timeout_ns, limits->max_timeout_ns, ret);
> 	return ret;
> }
>
>@@ -2970,6 +2976,8 @@ rte_event_eth_rx_adapter_stats_get(uint8_t id,
> 	uint32_t i, j;
> 	int ret;
>
>+	rte_eventdev_trace_eth_rx_adapter_stats_get(id, stats);
>+
> 	if (rxa_memzone_lookup())
> 		return -ENOMEM;
>
>@@ -3041,6 +3049,9 @@ rte_event_eth_rx_adapter_queue_stats_get(uint8_t id,
> 	struct rte_event_eth_rx_adapter_stats *q_stats;
> 	struct rte_eventdev *dev;
>
>+	rte_eventdev_trace_eth_rx_adapter_queue_stats_get(id, eth_dev_id,
>+							  rx_queue_id, stats);
>+
> 	if (rxa_memzone_lookup())
> 		return -ENOMEM;
>
>@@ -3098,6 +3109,8 @@ rte_event_eth_rx_adapter_stats_reset(uint8_t id)
> 	struct eth_rx_queue_info *queue_info;
> 	uint32_t i, j;
>
>+	rte_eventdev_trace_eth_rx_adapter_stats_reset(id);
>+
> 	if (rxa_memzone_lookup())
> 		return -ENOMEM;
>
>@@ -3145,6 +3158,9 @@ rte_event_eth_rx_adapter_queue_stats_reset(uint8_t
>id,
> 	struct eth_rx_queue_info *queue_info;
> 	struct rte_eventdev *dev;
>
>+	rte_eventdev_trace_eth_rx_adapter_queue_stats_reset(id, eth_dev_id,
>+							    rx_queue_id);
>+
> 	if (rxa_memzone_lookup())
> 		return -ENOMEM;
>
>@@ -3203,6 +3219,8 @@ rte_event_eth_rx_adapter_service_id_get(uint8_t id,
>uint32_t *service_id)
> 	if (rx_adapter->service_inited)
> 		*service_id = rx_adapter->service_id;
>
>+	rte_eventdev_trace_eth_rx_adapter_service_id_get(id, *service_id);
>+
> 	return rx_adapter->service_inited ? 0 : -ESRCH;
> }
>
>@@ -3223,6 +3241,8 @@ rte_event_eth_rx_adapter_event_port_get(uint8_t id,
>uint8_t *event_port_id)
> 	if (rx_adapter->service_inited)
> 		*event_port_id = rx_adapter->event_port_id;
>
>+	rte_eventdev_trace_eth_rx_adapter_event_port_get(id,
>*event_port_id);
>+
> 	return rx_adapter->service_inited ? 0 : -ESRCH;
> }
>
>@@ -3237,6 +3257,9 @@ rte_event_eth_rx_adapter_cb_register(uint8_t id,
> 	uint32_t cap;
> 	int ret;
>
>+	rte_eventdev_trace_eth_rx_adapter_cb_register(id, eth_dev_id, cb_fn,
>+						      cb_arg);
>+
> 	RTE_EVENT_ETH_RX_ADAPTER_ID_VALID_OR_ERR_RET(id, -EINVAL);
> 	RTE_ETH_VALID_PORTID_OR_ERR_RET(eth_dev_id, -EINVAL);
>
>@@ -3284,6 +3307,9 @@ rte_event_eth_rx_adapter_queue_conf_get(uint8_t id,
> 	struct eth_rx_queue_info *queue_info;
> 	int ret;
>
>+	rte_eventdev_trace_eth_rx_adapter_queue_conf_get(id, eth_dev_id,
>+							 rx_queue_id,
>queue_conf);
>+
> 	if (rxa_memzone_lookup())
> 		return -ENOMEM;
>
>@@ -3429,8 +3455,11 @@ rte_event_eth_rx_adapter_instance_get(uint16_t
>eth_dev_id,
> 		}
>
> 		/* return if entry found */
>-		if (ret == 0)
>+		if (ret == 0) {
>+
>	rte_eventdev_trace_eth_rx_adapter_instance_get(eth_dev_id,
>rx_queue_id,
>+								       *rxa_inst_id);
> 			return ret;
>+		}
> 	}
>
> 	return -EINVAL;
>diff --git a/lib/eventdev/rte_event_eth_tx_adapter.c
>b/lib/eventdev/rte_event_eth_tx_adapter.c
>index 6e9bcb1b79..cce50c3c18 100644
>--- a/lib/eventdev/rte_event_eth_tx_adapter.c
>+++ b/lib/eventdev/rte_event_eth_tx_adapter.c
>@@ -995,6 +995,8 @@ txa_service_id_get(uint8_t id, uint32_t *service_id)
> 		return -EINVAL;
>
> 	*service_id = txa->service_id;
>+
>+	rte_eventdev_trace_eth_tx_adapter_service_id_get(id, *service_id);
> 	return 0;
> }
>
>@@ -1123,6 +1125,8 @@ rte_event_eth_tx_adapter_create_ext(uint8_t id,
>uint8_t dev_id,
> int
> rte_event_eth_tx_adapter_event_port_get(uint8_t id, uint8_t *event_port_id)
> {
>+	rte_eventdev_trace_eth_tx_adapter_event_port_get(id);
>+
> 	TXA_CHECK_OR_ERR_RET(id);
>
> 	return txa_service_event_port_get(id, event_port_id);
>@@ -1264,6 +1268,9 @@ rte_event_eth_tx_adapter_stats_get(uint8_t id,
> 			ret = txa_service_stats_get(id, stats);
> 	}
>
>+	rte_eventdev_trace_eth_tx_adapter_stats_get(id, stats->tx_retry, stats-
>>tx_packets,
>+						    stats->tx_dropped, ret);
>+
> 	return ret;
> }
>
>@@ -1278,6 +1285,9 @@ rte_event_eth_tx_adapter_stats_reset(uint8_t id)
> 		txa_dev_stats_reset(id)(id, txa_evdev(id)) : 0;
> 	if (ret == 0)
> 		ret = txa_service_stats_reset(id);
>+
>+	rte_eventdev_trace_eth_tx_adapter_stats_reset(id, ret);
>+
> 	return ret;
> }
>
>@@ -1341,8 +1351,11 @@ rte_event_eth_tx_adapter_instance_get(uint16_t
>eth_dev_id,
> 								 tx_queue_id,
> 								 txa_inst_id)
> 							: -EINVAL;
>-			if (ret == 0)
>+			if (ret == 0) {
>+
>	rte_eventdev_trace_eth_tx_adapter_instance_get(eth_dev_id,
>+								tx_queue_id,
>*txa_inst_id);
> 				return ret;
>+			}
> 		} else {
> 			struct rte_eth_dev *eth_dev;
>
>@@ -1351,6 +1364,8 @@ rte_event_eth_tx_adapter_instance_get(uint16_t
>eth_dev_id,
> 			if (txa_service_is_queue_added(txa, eth_dev,
> 						       tx_queue_id)) {
> 				*txa_inst_id = txa->id;
>+
>	rte_eventdev_trace_eth_tx_adapter_instance_get(eth_dev_id,
>+								tx_queue_id,
>*txa_inst_id);
> 				return 0;
> 			}
> 		}
>@@ -1426,11 +1441,15 @@ txa_queue_start_state_set(uint16_t eth_dev_id,
>uint16_t tx_queue_id,
> int
> rte_event_eth_tx_adapter_queue_start(uint16_t eth_dev_id, uint16_t
>tx_queue_id)
> {
>+	rte_eventdev_trace_eth_tx_adapter_queue_start(eth_dev_id,
>tx_queue_id);
>+
> 	return txa_queue_start_state_set(eth_dev_id, tx_queue_id, true);
> }
>
> int
> rte_event_eth_tx_adapter_queue_stop(uint16_t eth_dev_id, uint16_t
>tx_queue_id)
> {
>+	rte_eventdev_trace_eth_tx_adapter_queue_stop(eth_dev_id,
>tx_queue_id);
>+
> 	return txa_queue_start_state_set(eth_dev_id, tx_queue_id, false);
> }
>diff --git a/lib/eventdev/rte_event_ring.c b/lib/eventdev/rte_event_ring.c
>index c070715148..b965970cf9 100644
>--- a/lib/eventdev/rte_event_ring.c
>+++ b/lib/eventdev/rte_event_ring.c
>@@ -5,6 +5,7 @@
>
>
> #include "rte_event_ring.h"
>+#include "eventdev_trace.h"
>
> int
> rte_event_ring_init(struct rte_event_ring *r, const char *name,
>@@ -14,6 +15,8 @@ rte_event_ring_init(struct rte_event_ring *r, const char
>*name,
> 	RTE_BUILD_BUG_ON((sizeof(struct rte_event_ring) &
> 			  RTE_CACHE_LINE_MASK) != 0);
>
>+	rte_eventdev_trace_ring_init(r, name, count, flags);
>+
> 	/* init the ring structure */
> 	return rte_ring_init(&r->r, name, count, flags);
> }
>@@ -23,6 +26,8 @@ struct rte_event_ring *
> rte_event_ring_create(const char *name, unsigned int count, int socket_id,
> 		unsigned int flags)
> {
>+	rte_eventdev_trace_ring_create(name, count, socket_id, flags);
>+
> 	return (struct rte_event_ring *)rte_ring_create_elem(name,
> 						sizeof(struct rte_event),
> 						count, socket_id, flags);
>@@ -32,6 +37,8 @@ rte_event_ring_create(const char *name, unsigned int
>count, int socket_id,
> struct rte_event_ring *
> rte_event_ring_lookup(const char *name)
> {
>+	rte_eventdev_trace_ring_lookup(name);
>+
> 	return (struct rte_event_ring *)rte_ring_lookup(name);
> }
>
>@@ -39,5 +46,7 @@ rte_event_ring_lookup(const char *name)
> void
> rte_event_ring_free(struct rte_event_ring *r)
> {
>+	rte_eventdev_trace_ring_free(r->r.name);
>+
> 	rte_ring_free((struct rte_ring *)r);
> }
>diff --git a/lib/eventdev/rte_event_timer_adapter.c
>b/lib/eventdev/rte_event_timer_adapter.c
>index d357f7403a..61712c3bd5 100644
>--- a/lib/eventdev/rte_event_timer_adapter.c
>+++ b/lib/eventdev/rte_event_timer_adapter.c
>@@ -275,6 +275,8 @@ rte_event_timer_adapter_get_info(const struct
>rte_event_timer_adapter *adapter,
> 	adapter_info->event_dev_port_id = adapter->data->event_port_id;
> 	adapter_info->caps = adapter->data->caps;
>
>+	rte_eventdev_trace_timer_adapter_get_info(adapter, adapter_info);
>+
> 	return 0;
> }
>
>@@ -386,6 +388,8 @@ rte_event_timer_adapter_lookup(uint16_t adapter_id)
>
> 	adapter->allocated = 1;
>
>+	rte_eventdev_trace_timer_adapter_lookup(adapter_id, adapter);
>+
> 	return adapter;
> }
>
>@@ -436,9 +440,14 @@ rte_event_timer_adapter_service_id_get(struct
>rte_event_timer_adapter *adapter,
> {
> 	ADAPTER_VALID_OR_ERR_RET(adapter, -EINVAL);
>
>+	if (service_id == NULL)
>+		return -EINVAL;
>+
> 	if (adapter->data->service_inited && service_id != NULL)
> 		*service_id = adapter->data->service_id;
>
>+	rte_eventdev_trace_timer_adapter_service_id_get(adapter,
>*service_id);
>+
> 	return adapter->data->service_inited ? 0 : -ESRCH;
> }
>
>@@ -446,6 +455,8 @@ int
> rte_event_timer_adapter_stats_get(struct rte_event_timer_adapter *adapter,
> 				  struct rte_event_timer_adapter_stats *stats)
> {
>+	rte_eventdev_trace_timer_adapter_stats_get(adapter, stats);
>+
> 	ADAPTER_VALID_OR_ERR_RET(adapter, -EINVAL);
> 	FUNC_PTR_OR_ERR_RET(adapter->ops->stats_get, -EINVAL);
> 	if (stats == NULL)
>@@ -457,6 +468,8 @@ rte_event_timer_adapter_stats_get(struct
>rte_event_timer_adapter *adapter,
> int
> rte_event_timer_adapter_stats_reset(struct rte_event_timer_adapter
>*adapter)
> {
>+	rte_eventdev_trace_timer_adapter_stats_reset(adapter);
>+
> 	ADAPTER_VALID_OR_ERR_RET(adapter, -EINVAL);
> 	FUNC_PTR_OR_ERR_RET(adapter->ops->stats_reset, -EINVAL);
> 	return adapter->ops->stats_reset(adapter);
>@@ -468,6 +481,8 @@ rte_event_timer_remaining_ticks_get(
> 			const struct rte_event_timer *evtim,
> 			uint64_t *ticks_remaining)
> {
>+	rte_eventdev_trace_timer_remaining_ticks_get(adapter, evtim,
>ticks_remaining);
>+
> 	ADAPTER_VALID_OR_ERR_RET(adapter, -EINVAL);
> 	FUNC_PTR_OR_ERR_RET(adapter->ops->remaining_ticks_get, -
>ENOTSUP);
>
>diff --git a/lib/eventdev/rte_eventdev.c b/lib/eventdev/rte_eventdev.c
>index b0414206d9..245b1d2d4e 100644
>--- a/lib/eventdev/rte_eventdev.c
>+++ b/lib/eventdev/rte_eventdev.c
>@@ -62,8 +62,10 @@ rte_event_dev_get_dev_id(const char *name)
> 				rte_event_devices[i].dev->driver->name, name,
> 					 RTE_EVENTDEV_NAME_MAX_LEN) == 0) :
>0);
> 		if (cmp && (rte_event_devices[i].attached ==
>-					RTE_EVENTDEV_ATTACHED))
>+					RTE_EVENTDEV_ATTACHED)) {
>+			rte_eventdev_trace_get_dev_id(name, i);
> 			return i;
>+		}
> 	}
> 	return -ENODEV;
> }
>@@ -76,6 +78,8 @@ rte_event_dev_socket_id(uint8_t dev_id)
> 	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
> 	dev = &rte_eventdevs[dev_id];
>
>+	rte_eventdev_trace_socket_id(dev_id, dev, dev->data->socket_id);
>+
> 	return dev->data->socket_id;
> }
>
>@@ -99,6 +103,9 @@ rte_event_dev_info_get(uint8_t dev_id, struct
>rte_event_dev_info *dev_info)
> 	dev_info->dequeue_timeout_ns = dev->data-
>>dev_conf.dequeue_timeout_ns;
>
> 	dev_info->dev = dev->dev;
>+
>+	rte_eventdev_trace_info_get(dev_id, dev_info, dev_info->dev);
>+
> 	return 0;
> }
>
>@@ -108,6 +115,8 @@ rte_event_eth_rx_adapter_caps_get(uint8_t dev_id,
>uint16_t eth_port_id,
> {
> 	struct rte_eventdev *dev;
>
>+	rte_eventdev_trace_eth_rx_adapter_caps_get(dev_id, eth_port_id);
>+
> 	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
> 	RTE_ETH_VALID_PORTID_OR_ERR_RET(eth_port_id, -EINVAL);
>
>@@ -134,6 +143,8 @@ rte_event_timer_adapter_caps_get(uint8_t dev_id,
>uint32_t *caps)
> 	struct rte_eventdev *dev;
> 	const struct event_timer_adapter_ops *ops;
>
>+	rte_eventdev_trace_timer_adapter_caps_get(dev_id);
>+
> 	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
>
> 	dev = &rte_eventdevs[dev_id];
>@@ -168,6 +179,8 @@ rte_event_crypto_adapter_caps_get(uint8_t dev_id,
>uint8_t cdev_id,
> 	dev = &rte_eventdevs[dev_id];
> 	cdev = rte_cryptodev_pmd_get_dev(cdev_id);
>
>+	rte_eventdev_trace_crypto_adapter_caps_get(dev_id, dev, cdev_id,
>cdev);
>+
> 	if (caps == NULL)
> 		return -EINVAL;
>
>@@ -194,6 +207,8 @@ rte_event_eth_tx_adapter_caps_get(uint8_t dev_id,
>uint16_t eth_port_id,
> 	dev = &rte_eventdevs[dev_id];
> 	eth_dev = &rte_eth_devices[eth_port_id];
>
>+	rte_eventdev_trace_eth_tx_adapter_caps_get(dev_id, dev, eth_port_id,
>eth_dev);
>+
> 	if (caps == NULL)
> 		return -EINVAL;
>
>@@ -524,6 +539,9 @@ rte_event_queue_default_conf_get(uint8_t dev_id,
>uint8_t queue_id,
> 		return -ENOTSUP;
> 	memset(queue_conf, 0, sizeof(struct rte_event_queue_conf));
> 	(*dev->dev_ops->queue_def_conf)(dev, queue_id, queue_conf);
>+
>+	rte_eventdev_trace_queue_default_conf_get(dev_id, dev, queue_id,
>queue_conf);
>+
> 	return 0;
> }
>
>@@ -652,6 +670,9 @@ rte_event_port_default_conf_get(uint8_t dev_id, uint8_t
>port_id,
> 		return -ENOTSUP;
> 	memset(port_conf, 0, sizeof(struct rte_event_port_conf));
> 	(*dev->dev_ops->port_def_conf)(dev, port_id, port_conf);
>+
>+	rte_eventdev_trace_port_default_conf_get(dev_id, dev, port_id,
>port_conf);
>+
> 	return 0;
> }
>
>@@ -754,6 +775,8 @@ rte_event_port_quiesce(uint8_t dev_id, uint8_t port_id,
> 	RTE_EVENTDEV_VALID_DEVID_OR_RET(dev_id);
> 	dev = &rte_eventdevs[dev_id];
>
>+	rte_eventdev_trace_port_quiesce(dev_id, dev, port_id, args);
>+
> 	if (!is_valid_port(dev, port_id)) {
> 		RTE_EDEV_LOG_ERR("Invalid port_id=%" PRIu8, port_id);
> 		return;
>@@ -789,6 +812,8 @@ rte_event_dev_attr_get(uint8_t dev_id, uint32_t attr_id,
> 		return -EINVAL;
> 	}
>
>+	rte_eventdev_trace_attr_get(dev_id, dev, attr_id, *attr_value);
>+
> 	return 0;
> }
>
>@@ -829,6 +854,9 @@ rte_event_port_attr_get(uint8_t dev_id, uint8_t port_id,
>uint32_t attr_id,
> 	default:
> 		return -EINVAL;
> 	};
>+
>+	rte_eventdev_trace_port_attr_get(dev_id, dev, port_id, attr_id,
>*attr_value);
>+
> 	return 0;
> }
>
>@@ -885,6 +913,9 @@ rte_event_queue_attr_get(uint8_t dev_id, uint8_t
>queue_id, uint32_t attr_id,
> 	default:
> 		return -EINVAL;
> 	};
>+
>+	rte_eventdev_trace_queue_attr_get(dev_id, dev, queue_id, attr_id,
>*attr_value);
>+
> 	return 0;
> }
>
>@@ -894,6 +925,8 @@ rte_event_queue_attr_set(uint8_t dev_id, uint8_t
>queue_id, uint32_t attr_id,
> {
> 	struct rte_eventdev *dev;
>
>+	rte_eventdev_trace_queue_attr_set(dev_id, queue_id, attr_id,
>attr_value);
>+
> 	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
> 	dev = &rte_eventdevs[dev_id];
> 	if (!is_valid_queue(dev, queue_id)) {
>@@ -1048,6 +1081,8 @@ rte_event_port_unlinks_in_progress(uint8_t dev_id,
>uint8_t port_id)
> {
> 	struct rte_eventdev *dev;
>
>+	rte_eventdev_trace_port_unlinks_in_progress(dev_id, port_id);
>+
> 	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
> 	dev = &rte_eventdevs[dev_id];
> 	if (!is_valid_port(dev, port_id)) {
>@@ -1091,6 +1126,9 @@ rte_event_port_links_get(uint8_t dev_id, uint8_t
>port_id,
> 			++count;
> 		}
> 	}
>+
>+	rte_eventdev_trace_port_links_get(dev_id, port_id, count);
>+
> 	return count;
> }
>
>@@ -1100,6 +1138,8 @@ rte_event_dequeue_timeout_ticks(uint8_t dev_id,
>uint64_t ns,
> {
> 	struct rte_eventdev *dev;
>
>+	rte_eventdev_trace_dequeue_timeout_ticks(dev_id, ns, timeout_ticks);
>+
> 	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
> 	dev = &rte_eventdevs[dev_id];
> 	if (*dev->dev_ops->timeout_ticks == NULL)
>@@ -1125,6 +1165,8 @@ rte_event_dev_service_id_get(uint8_t dev_id, uint32_t
>*service_id)
> 	if (dev->data->service_inited)
> 		*service_id = dev->data->service_id;
>
>+	rte_eventdev_trace_service_id_get(dev_id, *service_id);
>+
> 	return dev->data->service_inited ? 0 : -ESRCH;
> }
>
>@@ -1285,6 +1327,9 @@ rte_event_vector_pool_create(const char *name,
>unsigned int n,
> 	if (ret < 0)
> 		goto err;
>
>+	rte_eventdev_trace_vector_pool_create(mp, mp->name, mp-
>>socket_id,
>+		mp->size, mp->cache_size, mp->elt_size);
>+
> 	return mp;
> err:
> 	rte_mempool_free(mp);
>@@ -1332,6 +1377,8 @@ rte_event_dev_stop_flush_callback_register(uint8_t
>dev_id,
>
> 	RTE_EDEV_LOG_DEBUG("Stop flush register dev_id=%" PRIu8, dev_id);
>
>+	rte_eventdev_trace_stop_flush_callback_register(dev_id, callback,
>userdata);
>+
> 	RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
> 	dev = &rte_eventdevs[dev_id];
>
>--
>2.25.1


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [EXT] [PATCH v6] eventdev: add trace points
  2023-02-02  9:24           ` [EXT] " Shijith Thotton
@ 2023-02-07  8:00             ` Jerin Jacob
  0 siblings, 0 replies; 14+ messages in thread
From: Jerin Jacob @ 2023-02-07  8:00 UTC (permalink / raw)
  To: Shijith Thotton
  Cc: Amit Prakash Shukla, Jerin Jacob Kollanukkaran,
	Abhinandan Gujjar, Naga Harish K S V, Erik Gabriel Carrillo, dev

On Thu, Feb 2, 2023 at 2:54 PM Shijith Thotton <sthotton@marvell.com> wrote:
>
> >Add trace points for eventdev functions.
> >
> >Signed-off-by: Amit Prakash Shukla <amitprakashs@marvell.com>
>
> Acked-by: Shijith Thotton <sthotton@marvell.com>

Applied to dpdk-next-net-eventdev/for-main. Thanks


>
> >---
> >v2:
> > - Fixed CI test failure
> > - Code review suggestion from Abhinandan
> >
> >v3:
> > - Removed trace symbols from version.map
> >
> >v4:
> > - Fixed CI test failure
> > - Cleaned-up unwanted includes and trace functions
> > - Added traces to pending functions
> >
> >v5:
> > - Fixed coding style issue
> >
> >v6:
> > - Code review suggestion from Shijith
> >
> > lib/eventdev/eventdev_trace.h           | 495 +++++++++++++++++++++++-
> > lib/eventdev/eventdev_trace_points.c    | 159 ++++++++
> > lib/eventdev/rte_event_crypto_adapter.c |  18 +-
> > lib/eventdev/rte_event_eth_rx_adapter.c |  31 +-
> > lib/eventdev/rte_event_eth_tx_adapter.c |  21 +-
> > lib/eventdev/rte_event_ring.c           |   9 +
> > lib/eventdev/rte_event_timer_adapter.c  |  15 +
> > lib/eventdev/rte_eventdev.c             |  49 ++-
> > 8 files changed, 784 insertions(+), 13 deletions(-)
> >
> >diff --git a/lib/eventdev/eventdev_trace.h b/lib/eventdev/eventdev_trace.h
> >index d48cd58850..e1f7b45940 100644
> >--- a/lib/eventdev/eventdev_trace.h
> >+++ b/lib/eventdev/eventdev_trace.h
> >@@ -63,6 +63,7 @@ RTE_TRACE_POINT(
> >       rte_trace_point_emit_u16(port_conf->enqueue_depth);
> >       rte_trace_point_emit_u32(port_conf->event_port_cfg);
> >       rte_trace_point_emit_int(rc);
> >+      rte_trace_point_emit_ptr(port_conf);
> > )
> >
> > RTE_TRACE_POINT(
> >@@ -250,16 +251,17 @@ RTE_TRACE_POINT(
> >
> > RTE_TRACE_POINT(
> >       rte_eventdev_trace_crypto_adapter_create,
> >-      RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint8_t dev_id, void *adapter,
> >-              struct rte_event_port_conf *port_conf, uint8_t mode),
> >+      RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint8_t dev_id,
> >+              struct rte_event_port_conf *port_config, int mode, int ret),
> >       rte_trace_point_emit_u8(adptr_id);
> >       rte_trace_point_emit_u8(dev_id);
> >-      rte_trace_point_emit_ptr(adapter);
> >-      rte_trace_point_emit_u8(mode);
> >-      rte_trace_point_emit_i32(port_conf->new_event_threshold);
> >-      rte_trace_point_emit_u16(port_conf->dequeue_depth);
> >-      rte_trace_point_emit_u16(port_conf->enqueue_depth);
> >-      rte_trace_point_emit_u32(port_conf->event_port_cfg);
> >+      rte_trace_point_emit_ptr(port_config);
> >+      rte_trace_point_emit_i32(port_config->new_event_threshold);
> >+      rte_trace_point_emit_u16(port_config->dequeue_depth);
> >+      rte_trace_point_emit_u16(port_config->enqueue_depth);
> >+      rte_trace_point_emit_u32(port_config->event_port_cfg);
> >+      rte_trace_point_emit_int(mode);
> >+      rte_trace_point_emit_int(ret);
> > )
> >
> > RTE_TRACE_POINT(
> >@@ -303,6 +305,483 @@ RTE_TRACE_POINT(
> >       rte_trace_point_emit_u8(adptr_id);
> > )
> >
> >+RTE_TRACE_POINT(
> >+      rte_eventdev_trace_crypto_adapter_event_port_get,
> >+      RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint8_t event_port_id),
> >+      rte_trace_point_emit_u8(adptr_id);
> >+      rte_trace_point_emit_u8(event_port_id);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+      rte_eventdev_trace_crypto_adapter_service_id_get,
> >+      RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint32_t service_id),
> >+      rte_trace_point_emit_u8(adptr_id);
> >+      rte_trace_point_emit_u32(service_id);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+      rte_eventdev_trace_attr_get,
> >+      RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *dev, uint32_t
> >attr_id,
> >+              uint32_t attr_value),
> >+      rte_trace_point_emit_u8(dev_id);
> >+      rte_trace_point_emit_ptr(dev);
> >+      rte_trace_point_emit_u32(attr_id);
> >+      rte_trace_point_emit_u32(attr_value);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+      rte_eventdev_trace_get_dev_id,
> >+      RTE_TRACE_POINT_ARGS(const char *name, int dev_id),
> >+      rte_trace_point_emit_string(name);
> >+      rte_trace_point_emit_int(dev_id);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+      rte_eventdev_trace_info_get,
> >+      RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *dev_info, const
> >void *dev),
> >+      rte_trace_point_emit_u8(dev_id);
> >+      rte_trace_point_emit_ptr(dev_info);
> >+      rte_trace_point_emit_ptr(dev);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+      rte_eventdev_trace_service_id_get,
> >+      RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint32_t service_id),
> >+      rte_trace_point_emit_u8(dev_id);
> >+      rte_trace_point_emit_u32(service_id);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+      rte_eventdev_trace_socket_id,
> >+      RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *dev, int socket_id),
> >+      rte_trace_point_emit_u8(dev_id);
> >+      rte_trace_point_emit_ptr(dev);
> >+      rte_trace_point_emit_int(socket_id);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+      rte_eventdev_trace_stop_flush_callback_register,
> >+      RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *callback, const void
> >*userdata),
> >+      rte_trace_point_emit_u8(dev_id);
> >+      rte_trace_point_emit_ptr(callback);
> >+      rte_trace_point_emit_ptr(userdata);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+      rte_eventdev_trace_eth_rx_adapter_caps_get,
> >+      RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint16_t eth_port_id),
> >+      rte_trace_point_emit_u8(dev_id);
> >+      rte_trace_point_emit_u16(eth_port_id);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+      rte_eventdev_trace_eth_rx_adapter_cb_register,
> >+      RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint16_t eth_dev_id, const
> >void *cb_fn,
> >+              const void *cb_arg),
> >+      rte_trace_point_emit_u8(adptr_id);
> >+      rte_trace_point_emit_u16(eth_dev_id);
> >+      rte_trace_point_emit_ptr(cb_fn);
> >+      rte_trace_point_emit_ptr(cb_arg);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+      rte_eventdev_trace_eth_rx_adapter_create_with_params,
> >+      RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint8_t dev_id,
> >+              const struct rte_event_port_conf *port_config,
> >+              const struct rte_event_eth_rx_adapter_params *rxa_params,
> >+              int ret),
> >+      rte_trace_point_emit_u8(adptr_id);
> >+      rte_trace_point_emit_u8(dev_id);
> >+      rte_trace_point_emit_ptr(port_config);
> >+      rte_trace_point_emit_i32(port_config->new_event_threshold);
> >+      rte_trace_point_emit_u16(port_config->dequeue_depth);
> >+      rte_trace_point_emit_u16(port_config->enqueue_depth);
> >+      rte_trace_point_emit_u32(port_config->event_port_cfg);
> >+      rte_trace_point_emit_ptr(rxa_params);
> >+      rte_trace_point_emit_u16(rxa_params->event_buf_size);
> >+      rte_trace_point_emit_int(ret);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+      rte_eventdev_trace_eth_rx_adapter_service_id_get,
> >+      RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint32_t service_id),
> >+      rte_trace_point_emit_u8(adptr_id);
> >+      rte_trace_point_emit_u32(service_id);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+      rte_eventdev_trace_eth_rx_adapter_event_port_get,
> >+      RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint8_t event_port_id),
> >+      rte_trace_point_emit_u8(adptr_id);
> >+      rte_trace_point_emit_u8(event_port_id);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+      rte_eventdev_trace_eth_rx_adapter_vector_limits_get,
> >+      RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint16_t eth_port_id,
> >+              uint16_t min_sz, uint16_t max_sz, uint8_t log2_sz,
> >+              uint64_t min_timeout_ns, uint64_t max_timeout_ns, int ret),
> >+      rte_trace_point_emit_u8(dev_id);
> >+      rte_trace_point_emit_u16(eth_port_id);
> >+      rte_trace_point_emit_u16(min_sz);
> >+      rte_trace_point_emit_u16(max_sz);
> >+      rte_trace_point_emit_u8(log2_sz);
> >+      rte_trace_point_emit_u64(min_timeout_ns);
> >+      rte_trace_point_emit_u64(max_timeout_ns);
> >+      rte_trace_point_emit_int(ret);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+      rte_eventdev_trace_eth_tx_adapter_caps_get,
> >+      RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *dev, uint16_t
> >eth_port_id,
> >+              const void *eth_dev),
> >+      rte_trace_point_emit_u8(dev_id);
> >+      rte_trace_point_emit_ptr(dev);
> >+      rte_trace_point_emit_u16(eth_port_id);
> >+      rte_trace_point_emit_ptr(eth_dev);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+      rte_eventdev_trace_eth_tx_adapter_event_port_get,
> >+      RTE_TRACE_POINT_ARGS(uint8_t id),
> >+      rte_trace_point_emit_u8(id);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+      rte_eventdev_trace_eth_tx_adapter_service_id_get,
> >+      RTE_TRACE_POINT_ARGS(uint8_t id, uint32_t service_id),
> >+      rte_trace_point_emit_u8(id);
> >+      rte_trace_point_emit_u32(service_id);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+      rte_eventdev_trace_port_attr_get,
> >+      RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *dev, uint8_t
> >port_id,
> >+              uint32_t attr_id, uint32_t attr_value),
> >+      rte_trace_point_emit_u8(dev_id);
> >+      rte_trace_point_emit_ptr(dev);
> >+      rte_trace_point_emit_u8(port_id);
> >+      rte_trace_point_emit_u32(attr_id);
> >+      rte_trace_point_emit_u32(attr_value);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+      rte_eventdev_trace_port_default_conf_get,
> >+      RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *dev, uint8_t
> >port_id,
> >+              const struct rte_event_port_conf *port_conf),
> >+      rte_trace_point_emit_u8(dev_id);
> >+      rte_trace_point_emit_ptr(dev);
> >+      rte_trace_point_emit_u8(port_id);
> >+      rte_trace_point_emit_ptr(port_conf);
> >+      rte_trace_point_emit_i32(port_conf->new_event_threshold);
> >+      rte_trace_point_emit_u16(port_conf->dequeue_depth);
> >+      rte_trace_point_emit_u16(port_conf->enqueue_depth);
> >+      rte_trace_point_emit_u32(port_conf->event_port_cfg);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+      rte_eventdev_trace_port_links_get,
> >+      RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint8_t port_id, int count),
> >+      rte_trace_point_emit_u8(dev_id);
> >+      rte_trace_point_emit_u8(port_id);
> >+      rte_trace_point_emit_int(count);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+      rte_eventdev_trace_port_unlinks_in_progress,
> >+      RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint8_t port_id),
> >+      rte_trace_point_emit_u8(dev_id);
> >+      rte_trace_point_emit_u8(port_id);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+      rte_eventdev_trace_queue_attr_get,
> >+      RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *dev, uint8_t
> >queue_id,
> >+              uint32_t attr_id, uint32_t attr_value),
> >+      rte_trace_point_emit_u8(dev_id);
> >+      rte_trace_point_emit_ptr(dev);
> >+      rte_trace_point_emit_u8(queue_id);
> >+      rte_trace_point_emit_u32(attr_id);
> >+      rte_trace_point_emit_u32(attr_value);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+      rte_eventdev_trace_queue_default_conf_get,
> >+      RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *dev, uint8_t
> >queue_id,
> >+              const struct rte_event_queue_conf *queue_conf),
> >+      rte_trace_point_emit_u8(dev_id);
> >+      rte_trace_point_emit_ptr(dev);
> >+      rte_trace_point_emit_u8(queue_id);
> >+      rte_trace_point_emit_ptr(queue_conf);
> >+      rte_trace_point_emit_u32(queue_conf->nb_atomic_flows);
> >+      rte_trace_point_emit_u32(queue_conf->nb_atomic_order_sequences);
> >+      rte_trace_point_emit_u32(queue_conf->event_queue_cfg);
> >+      rte_trace_point_emit_u8(queue_conf->schedule_type);
> >+      rte_trace_point_emit_u8(queue_conf->priority);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+      rte_eventdev_trace_ring_create,
> >+      RTE_TRACE_POINT_ARGS(const char *name, unsigned int count,
> >+              int socket_id, unsigned int flags),
> >+      rte_trace_point_emit_string(name);
> >+      rte_trace_point_emit_u32(count);
> >+      rte_trace_point_emit_int(socket_id);
> >+      rte_trace_point_emit_u32(flags);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+      rte_eventdev_trace_ring_free,
> >+      RTE_TRACE_POINT_ARGS(const char *name),
> >+      rte_trace_point_emit_string(name);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+      rte_eventdev_trace_ring_init,
> >+      RTE_TRACE_POINT_ARGS(const void *r, const char *name,
> >+              unsigned int count, unsigned int flags),
> >+      rte_trace_point_emit_ptr(r);
> >+      rte_trace_point_emit_string(name);
> >+      rte_trace_point_emit_u32(count);
> >+      rte_trace_point_emit_u32(flags);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+      rte_eventdev_trace_ring_lookup,
> >+      RTE_TRACE_POINT_ARGS(const char *name),
> >+      rte_trace_point_emit_string(name);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+      rte_eventdev_trace_timer_adapter_caps_get,
> >+      RTE_TRACE_POINT_ARGS(uint8_t dev_id),
> >+      rte_trace_point_emit_u8(dev_id);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+      rte_eventdev_trace_timer_adapter_get_info,
> >+      RTE_TRACE_POINT_ARGS(const void *adapter,
> >+              const struct rte_event_timer_adapter_info *adapter_info),
> >+      rte_trace_point_emit_ptr(adapter);
> >+      rte_trace_point_emit_ptr(adapter_info);
> >+      rte_trace_point_emit_u64(adapter_info->min_resolution_ns);
> >+      rte_trace_point_emit_u64(adapter_info->max_tmo_ns);
> >+      rte_trace_point_emit_u32(adapter_info->caps);
> >+      rte_trace_point_emit_u16(adapter_info->event_dev_port_id);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+      rte_eventdev_trace_timer_adapter_lookup,
> >+      RTE_TRACE_POINT_ARGS(uint16_t adapter_id, const void *adapter),
> >+      rte_trace_point_emit_u16(adapter_id);
> >+      rte_trace_point_emit_ptr(adapter);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+      rte_eventdev_trace_timer_adapter_service_id_get,
> >+      RTE_TRACE_POINT_ARGS(const struct rte_event_timer_adapter
> >*adapter,
> >+              uint32_t service_id),
> >+      rte_trace_point_emit_ptr(adapter);
> >+      rte_trace_point_emit_u32(service_id);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+      rte_eventdev_trace_vector_pool_create,
> >+      RTE_TRACE_POINT_ARGS(const void *mp, const char *name, int
> >socket_id,
> >+              uint32_t size, uint32_t cache_size, uint32_t elt_size),
> >+      rte_trace_point_emit_ptr(mp);
> >+      rte_trace_point_emit_string(name);
> >+      rte_trace_point_emit_int(socket_id);
> >+      rte_trace_point_emit_u32(size);
> >+      rte_trace_point_emit_u32(cache_size);
> >+      rte_trace_point_emit_u32(elt_size);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+      rte_eventdev_trace_eth_rx_adapter_queue_conf_get,
> >+      RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint16_t eth_dev_id,
> >+              uint16_t rx_queue_id, const void *queue_conf),
> >+      rte_trace_point_emit_u8(adptr_id);
> >+      rte_trace_point_emit_u16(eth_dev_id);
> >+      rte_trace_point_emit_u16(rx_queue_id);
> >+      rte_trace_point_emit_ptr(queue_conf);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+      rte_eventdev_trace_queue_attr_set,
> >+      RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint8_t queue_id, uint32_t
> >attr_id,
> >+              uint64_t attr_value),
> >+      rte_trace_point_emit_u8(dev_id);
> >+      rte_trace_point_emit_u8(queue_id);
> >+      rte_trace_point_emit_u32(attr_id);
> >+      rte_trace_point_emit_u64(attr_value);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+      rte_eventdev_trace_port_quiesce,
> >+      RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *dev, uint8_t
> >port_id, const void *args),
> >+      rte_trace_point_emit_u8(dev_id);
> >+      rte_trace_point_emit_ptr(dev);
> >+      rte_trace_point_emit_u8(port_id);
> >+      rte_trace_point_emit_ptr(args);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+      rte_eventdev_trace_crypto_adapter_caps_get,
> >+      RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *dev, uint8_t
> >cdev_id,
> >+              const void *cdev),
> >+      rte_trace_point_emit_u8(dev_id);
> >+      rte_trace_point_emit_ptr(dev);
> >+      rte_trace_point_emit_u8(cdev_id);
> >+      rte_trace_point_emit_ptr(cdev);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+      rte_eventdev_trace_dequeue_timeout_ticks,
> >+      RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint64_t ns,
> >+              const void *timeout_ticks),
> >+      rte_trace_point_emit_u8(dev_id);
> >+      rte_trace_point_emit_u64(ns);
> >+      rte_trace_point_emit_ptr(timeout_ticks);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+      rte_eventdev_trace_crypto_adapter_stats_get,
> >+      RTE_TRACE_POINT_ARGS(uint8_t adptr_id, const void *stats,
> >+              uint64_t event_poll_count, uint64_t event_deq_count,
> >+              uint64_t crypto_enq_count, uint64_t crypto_enq_fail,
> >+              uint64_t crypto_deq_count, uint64_t event_enq_count,
> >+              uint64_t event_enq_retry_count, uint64_t
> >event_enq_fail_count),
> >+      rte_trace_point_emit_u8(adptr_id);
> >+      rte_trace_point_emit_ptr(stats);
> >+      rte_trace_point_emit_u64(event_poll_count);
> >+      rte_trace_point_emit_u64(event_deq_count);
> >+      rte_trace_point_emit_u64(crypto_enq_count);
> >+      rte_trace_point_emit_u64(crypto_enq_fail);
> >+      rte_trace_point_emit_u64(crypto_deq_count);
> >+      rte_trace_point_emit_u64(event_enq_count);
> >+      rte_trace_point_emit_u64(event_enq_retry_count);
> >+      rte_trace_point_emit_u64(event_enq_fail_count);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+      rte_eventdev_trace_crypto_adapter_stats_reset,
> >+      RTE_TRACE_POINT_ARGS(uint8_t adptr_id),
> >+      rte_trace_point_emit_u8(adptr_id);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+      rte_eventdev_trace_eth_rx_adapter_stats_get,
> >+      RTE_TRACE_POINT_ARGS(uint8_t adptr_id, const void *stats),
> >+      rte_trace_point_emit_u8(adptr_id);
> >+      rte_trace_point_emit_ptr(stats);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+      rte_eventdev_trace_crypto_adapter_vector_limits_get,
> >+      RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint16_t cdev_id,
> >+              const void *limits),
> >+      rte_trace_point_emit_u8(dev_id);
> >+      rte_trace_point_emit_u16(cdev_id);
> >+      rte_trace_point_emit_ptr(limits);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+      rte_eventdev_trace_eth_rx_adapter_queue_stats_get,
> >+      RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint16_t eth_dev_id,
> >+              uint16_t rx_queue_id, const void *stats),
> >+      rte_trace_point_emit_u8(adptr_id);
> >+      rte_trace_point_emit_u16(eth_dev_id);
> >+      rte_trace_point_emit_u16(rx_queue_id);
> >+      rte_trace_point_emit_ptr(stats);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+      rte_eventdev_trace_eth_rx_adapter_stats_reset,
> >+      RTE_TRACE_POINT_ARGS(uint8_t adptr_id),
> >+      rte_trace_point_emit_u8(adptr_id);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+      rte_eventdev_trace_eth_rx_adapter_queue_stats_reset,
> >+      RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint16_t eth_dev_id,
> >+              uint16_t rx_queue_id),
> >+      rte_trace_point_emit_u8(adptr_id);
> >+      rte_trace_point_emit_u16(eth_dev_id);
> >+      rte_trace_point_emit_u16(rx_queue_id);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+      rte_eventdev_trace_eth_rx_adapter_instance_get,
> >+      RTE_TRACE_POINT_ARGS(uint16_t eth_dev_id, uint16_t rx_queue_id,
> >+              uint8_t rxa_inst_id),
> >+      rte_trace_point_emit_u16(eth_dev_id);
> >+      rte_trace_point_emit_u16(rx_queue_id);
> >+      rte_trace_point_emit_u8(rxa_inst_id);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+      rte_eventdev_trace_eth_tx_adapter_stats_get,
> >+      RTE_TRACE_POINT_ARGS(uint8_t adptr_id, uint64_t tx_retry,
> >+              uint64_t tx_packets, uint64_t tx_dropped, int ret),
> >+      rte_trace_point_emit_u8(adptr_id);
> >+      rte_trace_point_emit_u64(tx_retry);
> >+      rte_trace_point_emit_u64(tx_packets);
> >+      rte_trace_point_emit_u64(tx_dropped);
> >+      rte_trace_point_emit_int(ret);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+      rte_eventdev_trace_eth_tx_adapter_stats_reset,
> >+      RTE_TRACE_POINT_ARGS(uint8_t adptr_id, int ret),
> >+      rte_trace_point_emit_u8(adptr_id);
> >+      rte_trace_point_emit_int(ret);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+      rte_eventdev_trace_eth_tx_adapter_instance_get,
> >+      RTE_TRACE_POINT_ARGS(uint16_t eth_dev_id, uint16_t tx_queue_id,
> >+              uint8_t txa_inst_id),
> >+      rte_trace_point_emit_u16(eth_dev_id);
> >+      rte_trace_point_emit_u16(tx_queue_id);
> >+      rte_trace_point_emit_u8(txa_inst_id);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+      rte_eventdev_trace_eth_tx_adapter_queue_start,
> >+      RTE_TRACE_POINT_ARGS(uint16_t eth_dev_id, uint16_t tx_queue_id),
> >+      rte_trace_point_emit_u16(eth_dev_id);
> >+      rte_trace_point_emit_u16(tx_queue_id);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+      rte_eventdev_trace_eth_tx_adapter_queue_stop,
> >+      RTE_TRACE_POINT_ARGS(uint16_t eth_dev_id, uint16_t tx_queue_id),
> >+      rte_trace_point_emit_u16(eth_dev_id);
> >+      rte_trace_point_emit_u16(tx_queue_id);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+      rte_eventdev_trace_timer_adapter_stats_get,
> >+      RTE_TRACE_POINT_ARGS(const void *adapter, const void *stats),
> >+      rte_trace_point_emit_ptr(adapter);
> >+      rte_trace_point_emit_ptr(stats);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+      rte_eventdev_trace_timer_adapter_stats_reset,
> >+      RTE_TRACE_POINT_ARGS(const void *adapter),
> >+      rte_trace_point_emit_ptr(adapter);
> >+)
> >+
> >+RTE_TRACE_POINT(
> >+      rte_eventdev_trace_timer_remaining_ticks_get,
> >+      RTE_TRACE_POINT_ARGS(const void *adapter, const void *evtim, const
> >void *ticks_remaining),
> >+      rte_trace_point_emit_ptr(adapter);
> >+      rte_trace_point_emit_ptr(evtim);
> >+      rte_trace_point_emit_ptr(ticks_remaining);
> >+)
> >+
> > #ifdef __cplusplus
> > }
> > #endif
> >diff --git a/lib/eventdev/eventdev_trace_points.c
> >b/lib/eventdev/eventdev_trace_points.c
> >index de6b1f4417..76144cfe75 100644
> >--- a/lib/eventdev/eventdev_trace_points.c
> >+++ b/lib/eventdev/eventdev_trace_points.c
> >@@ -124,3 +124,162 @@
> >RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_stop,
> >
> > RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_enqueue,
> >       lib.eventdev.crypto.enq)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_event_port
> >_get,
> >+      lib.eventdev.crypto.adapter_event_port_get)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_service_id_
> >get,
> >+      lib.eventdev.crypto.adapter_service_id_get)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_vector_limi
> >ts_get,
> >+      lib.eventdev.crypto.adapter_vector_limits_get)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_attr_get,
> >+      lib.eventdev.attr_get)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_get_dev_id,
> >+      lib.eventdev.get_dev_id)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_info_get,
> >+      lib.eventdev.info_get)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_service_id_get,
> >+      lib.eventdev.service_id_get)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_socket_id,
> >+      lib.eventdev.socket.id)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_stop_flush_callback_register
> >,
> >+      lib.eventdev.stop.flush.callback.register)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_caps_get,
> >+      lib.eventdev.eth.rx.adapter.caps.get)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_cb_register
> >,
> >+      lib.eventdev.eth.rx.adapter.cb.register)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_service_id_
> >get,
> >+      lib.eventdev.eth.rx.adapter.service.id.get)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_event_port
> >_get,
> >+      lib.eventdev.eth.rx.adapter.event.port.get)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_vector_limi
> >ts_get,
> >+      lib.eventdev.eth.rx.adapter.vector.limits.get)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_queue_sta
> >ts_get,
> >+      lib.eventdev.eth.rx.adapter.queue.stats.get)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_stats_reset
> >,
> >+      lib.eventdev.eth.rx.adapter.stats.reset)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_queue_sta
> >ts_reset,
> >+      lib.eventdev.eth.rx.adapter.queue.stats.reset)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_instance_g
> >et,
> >+      lib.eventdev.eth.rx.adapter.instance.get)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_caps_get,
> >+      lib.eventdev.eth.tx.adapter.caps.get)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_event_port
> >_get,
> >+      lib.eventdev.eth.tx.adapter.event.port.get)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_service_id_
> >get,
> >+      lib.eventdev.eth.tx.adapter.service.id.get)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_stats_get,
> >+      lib.eventdev.eth.tx.adapter.stats.get)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_stats_reset
> >,
> >+      lib.eventdev.eth.tx.adapter.stats.reset)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_instance_g
> >et,
> >+      lib.eventdev.eth.tx.adapter.instance.get)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_port_attr_get,
> >+      lib.eventdev.port.attr.get)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_port_default_conf_get,
> >+      lib.eventdev.port.default.conf.get)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_port_links_get,
> >+      lib.eventdev.port.links.get)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_port_unlinks_in_progress,
> >+      lib.eventdev.port.unlinks.in.progress)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_queue_attr_get,
> >+      lib.eventdev.queue.attr.get)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_queue_default_conf_get,
> >+      lib.eventdev.queue.default.conf.get)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_ring_create,
> >+      lib.eventdev.ring.create)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_ring_free,
> >+      lib.eventdev.ring.free)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_ring_init,
> >+      lib.eventdev.ring.init)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_ring_lookup,
> >+      lib.eventdev.ring.lookup)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_adapter_caps_get,
> >+      lib.eventdev.timer.adapter.caps.get)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_adapter_get_info,
> >+      lib.eventdev.timer.adapter.get.info)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_adapter_lookup,
> >+      lib.eventdev.timer.adapter.lookup)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_adapter_service_id_g
> >et,
> >+      lib.eventdev.timer.adapter.service.id.get)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_vector_pool_create,
> >+      lib.eventdev.vector.pool.create)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_create_wit
> >h_params,
> >+      lib.eventdev.eth.rx.adapter.create.with.params)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_queue_con
> >f_get,
> >+      lib.eventdev.eth.rx.adapter.queue.conf.get)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_queue_attr_set,
> >+      lib.eventdev.queue.attr.set)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_port_quiesce,
> >+      lib.eventdev.port.quiesce)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_caps_get,
> >+      lib.eventdev.crypto.adapter.caps.get)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_dequeue_timeout_ticks,
> >+      lib.eventdev.dequeue.timeout.ticks)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_stats_get,
> >+      lib.eventdev.crypto.adapter.stats.get)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_crypto_adapter_stats_reset
> >,
> >+      lib.eventdev.crypto.adapter.stats.reset)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_rx_adapter_stats_get,
> >+      lib.eventdev.rx.adapter.stats.get)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_queue_sta
> >rt,
> >+      lib.eventdev.tx.adapter.queue.start)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_eth_tx_adapter_queue_sto
> >p,
> >+      lib.eventdev.tx.adapter.queue.stop)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_adapter_stats_get,
> >+      lib.eventdev.timer.adapter.stats.get)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_adapter_stats_reset,
> >+      lib.eventdev.timer.adapter.stats.reset)
> >+
> >+RTE_TRACE_POINT_REGISTER(rte_eventdev_trace_timer_remaining_ticks_get,
> >+      lib.eventdev.timer.remaining.ticks.get)
> >diff --git a/lib/eventdev/rte_event_crypto_adapter.c
> >b/lib/eventdev/rte_event_crypto_adapter.c
> >index bb782208f0..7f0a25a4cc 100644
> >--- a/lib/eventdev/rte_event_crypto_adapter.c
> >+++ b/lib/eventdev/rte_event_crypto_adapter.c
> >@@ -386,8 +386,6 @@ rte_event_crypto_adapter_create_ext(uint8_t id, uint8_t
> >dev_id,
> >
> >       event_crypto_adapter[id] = adapter;
> >
> >-      rte_eventdev_trace_crypto_adapter_create(id, dev_id, adapter,
> >conf_arg,
> >-              mode);
> >       return 0;
> > }
> >
> >@@ -415,6 +413,8 @@ rte_event_crypto_adapter_create(uint8_t id, uint8_t
> >dev_id,
> >       if (ret)
> >               rte_free(pc);
> >
> >+      rte_eventdev_trace_crypto_adapter_create(id, dev_id, port_config,
> >mode,  ret);
> >+
> >       return ret;
> > }
> >
> >@@ -1293,6 +1293,12 @@ rte_event_crypto_adapter_stats_get(uint8_t id,
> >       stats->crypto_deq_count += dev_stats_sum.crypto_deq_count;
> >       stats->event_enq_count += dev_stats_sum.event_enq_count;
> >
> >+      rte_eventdev_trace_crypto_adapter_stats_get(id, stats,
> >+              stats->event_poll_count, stats->event_deq_count,
> >+              stats->crypto_enq_count, stats->crypto_enq_fail,
> >+              stats->crypto_deq_count, stats->event_enq_count,
> >+              stats->event_enq_retry_count, stats->event_enq_fail_count);
> >+
> >       return 0;
> > }
> >
> >@@ -1304,6 +1310,8 @@ rte_event_crypto_adapter_stats_reset(uint8_t id)
> >       struct rte_eventdev *dev;
> >       uint32_t i;
> >
> >+      rte_eventdev_trace_crypto_adapter_stats_reset(id);
> >+
> >       if (eca_memzone_lookup())
> >               return -ENOMEM;
> >
> >@@ -1341,6 +1349,8 @@ rte_event_crypto_adapter_service_id_get(uint8_t id,
> >uint32_t *service_id)
> >       if (adapter->service_inited)
> >               *service_id = adapter->service_id;
> >
> >+      rte_eventdev_trace_crypto_adapter_service_id_get(id, *service_id);
> >+
> >       return adapter->service_inited ? 0 : -ESRCH;
> > }
> >
> >@@ -1357,6 +1367,8 @@ rte_event_crypto_adapter_event_port_get(uint8_t id,
> >uint8_t *event_port_id)
> >
> >       *event_port_id = adapter->event_port_id;
> >
> >+      rte_eventdev_trace_crypto_adapter_event_port_get(id,
> >*event_port_id);
> >+
> >       return 0;
> > }
> >
> >@@ -1370,6 +1382,8 @@ rte_event_crypto_adapter_vector_limits_get(
> >       uint32_t cap;
> >       int ret;
> >
> >+      rte_eventdev_trace_crypto_adapter_vector_limits_get(dev_id, cdev_id,
> >limits);
> >+
> >       RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
> >
> >       if (!rte_cryptodev_is_valid_dev(cdev_id)) {
> >diff --git a/lib/eventdev/rte_event_eth_rx_adapter.c
> >b/lib/eventdev/rte_event_eth_rx_adapter.c
> >index 34aa87379e..91bbba715b 100644
> >--- a/lib/eventdev/rte_event_eth_rx_adapter.c
> >+++ b/lib/eventdev/rte_event_eth_rx_adapter.c
> >@@ -2541,6 +2541,9 @@
> >rte_event_eth_rx_adapter_create_with_params(uint8_t id, uint8_t dev_id,
> >       if (ret)
> >               rte_free(pc);
> >
> >+      rte_eventdev_trace_eth_rx_adapter_create_with_params(id, dev_id,
> >+              port_config, rxa_params, ret);
> >+
> >       return ret;
> > }
> >
> >@@ -2929,6 +2932,9 @@ rte_event_eth_rx_adapter_vector_limits_get(
> >               ret = rxa_sw_vector_limits(limits);
> >       }
> >
> >+      rte_eventdev_trace_eth_rx_adapter_vector_limits_get(dev_id,
> >eth_port_id,
> >+              limits->min_sz, limits->max_sz, limits->log2_sz,
> >+              limits->min_timeout_ns, limits->max_timeout_ns, ret);
> >       return ret;
> > }
> >
> >@@ -2970,6 +2976,8 @@ rte_event_eth_rx_adapter_stats_get(uint8_t id,
> >       uint32_t i, j;
> >       int ret;
> >
> >+      rte_eventdev_trace_eth_rx_adapter_stats_get(id, stats);
> >+
> >       if (rxa_memzone_lookup())
> >               return -ENOMEM;
> >
> >@@ -3041,6 +3049,9 @@ rte_event_eth_rx_adapter_queue_stats_get(uint8_t id,
> >       struct rte_event_eth_rx_adapter_stats *q_stats;
> >       struct rte_eventdev *dev;
> >
> >+      rte_eventdev_trace_eth_rx_adapter_queue_stats_get(id, eth_dev_id,
> >+                                                        rx_queue_id, stats);
> >+
> >       if (rxa_memzone_lookup())
> >               return -ENOMEM;
> >
> >@@ -3098,6 +3109,8 @@ rte_event_eth_rx_adapter_stats_reset(uint8_t id)
> >       struct eth_rx_queue_info *queue_info;
> >       uint32_t i, j;
> >
> >+      rte_eventdev_trace_eth_rx_adapter_stats_reset(id);
> >+
> >       if (rxa_memzone_lookup())
> >               return -ENOMEM;
> >
> >@@ -3145,6 +3158,9 @@ rte_event_eth_rx_adapter_queue_stats_reset(uint8_t
> >id,
> >       struct eth_rx_queue_info *queue_info;
> >       struct rte_eventdev *dev;
> >
> >+      rte_eventdev_trace_eth_rx_adapter_queue_stats_reset(id, eth_dev_id,
> >+                                                          rx_queue_id);
> >+
> >       if (rxa_memzone_lookup())
> >               return -ENOMEM;
> >
> >@@ -3203,6 +3219,8 @@ rte_event_eth_rx_adapter_service_id_get(uint8_t id,
> >uint32_t *service_id)
> >       if (rx_adapter->service_inited)
> >               *service_id = rx_adapter->service_id;
> >
> >+      rte_eventdev_trace_eth_rx_adapter_service_id_get(id, *service_id);
> >+
> >       return rx_adapter->service_inited ? 0 : -ESRCH;
> > }
> >
> >@@ -3223,6 +3241,8 @@ rte_event_eth_rx_adapter_event_port_get(uint8_t id,
> >uint8_t *event_port_id)
> >       if (rx_adapter->service_inited)
> >               *event_port_id = rx_adapter->event_port_id;
> >
> >+      rte_eventdev_trace_eth_rx_adapter_event_port_get(id,
> >*event_port_id);
> >+
> >       return rx_adapter->service_inited ? 0 : -ESRCH;
> > }
> >
> >@@ -3237,6 +3257,9 @@ rte_event_eth_rx_adapter_cb_register(uint8_t id,
> >       uint32_t cap;
> >       int ret;
> >
> >+      rte_eventdev_trace_eth_rx_adapter_cb_register(id, eth_dev_id, cb_fn,
> >+                                                    cb_arg);
> >+
> >       RTE_EVENT_ETH_RX_ADAPTER_ID_VALID_OR_ERR_RET(id, -EINVAL);
> >       RTE_ETH_VALID_PORTID_OR_ERR_RET(eth_dev_id, -EINVAL);
> >
> >@@ -3284,6 +3307,9 @@ rte_event_eth_rx_adapter_queue_conf_get(uint8_t id,
> >       struct eth_rx_queue_info *queue_info;
> >       int ret;
> >
> >+      rte_eventdev_trace_eth_rx_adapter_queue_conf_get(id, eth_dev_id,
> >+                                                       rx_queue_id,
> >queue_conf);
> >+
> >       if (rxa_memzone_lookup())
> >               return -ENOMEM;
> >
> >@@ -3429,8 +3455,11 @@ rte_event_eth_rx_adapter_instance_get(uint16_t
> >eth_dev_id,
> >               }
> >
> >               /* return if entry found */
> >-              if (ret == 0)
> >+              if (ret == 0) {
> >+
> >       rte_eventdev_trace_eth_rx_adapter_instance_get(eth_dev_id,
> >rx_queue_id,
> >+                                                                     *rxa_inst_id);
> >                       return ret;
> >+              }
> >       }
> >
> >       return -EINVAL;
> >diff --git a/lib/eventdev/rte_event_eth_tx_adapter.c
> >b/lib/eventdev/rte_event_eth_tx_adapter.c
> >index 6e9bcb1b79..cce50c3c18 100644
> >--- a/lib/eventdev/rte_event_eth_tx_adapter.c
> >+++ b/lib/eventdev/rte_event_eth_tx_adapter.c
> >@@ -995,6 +995,8 @@ txa_service_id_get(uint8_t id, uint32_t *service_id)
> >               return -EINVAL;
> >
> >       *service_id = txa->service_id;
> >+
> >+      rte_eventdev_trace_eth_tx_adapter_service_id_get(id, *service_id);
> >       return 0;
> > }
> >
> >@@ -1123,6 +1125,8 @@ rte_event_eth_tx_adapter_create_ext(uint8_t id,
> >uint8_t dev_id,
> > int
> > rte_event_eth_tx_adapter_event_port_get(uint8_t id, uint8_t *event_port_id)
> > {
> >+      rte_eventdev_trace_eth_tx_adapter_event_port_get(id);
> >+
> >       TXA_CHECK_OR_ERR_RET(id);
> >
> >       return txa_service_event_port_get(id, event_port_id);
> >@@ -1264,6 +1268,9 @@ rte_event_eth_tx_adapter_stats_get(uint8_t id,
> >                       ret = txa_service_stats_get(id, stats);
> >       }
> >
> >+      rte_eventdev_trace_eth_tx_adapter_stats_get(id, stats->tx_retry, stats-
> >>tx_packets,
> >+                                                  stats->tx_dropped, ret);
> >+
> >       return ret;
> > }
> >
> >@@ -1278,6 +1285,9 @@ rte_event_eth_tx_adapter_stats_reset(uint8_t id)
> >               txa_dev_stats_reset(id)(id, txa_evdev(id)) : 0;
> >       if (ret == 0)
> >               ret = txa_service_stats_reset(id);
> >+
> >+      rte_eventdev_trace_eth_tx_adapter_stats_reset(id, ret);
> >+
> >       return ret;
> > }
> >
> >@@ -1341,8 +1351,11 @@ rte_event_eth_tx_adapter_instance_get(uint16_t
> >eth_dev_id,
> >                                                                tx_queue_id,
> >                                                                txa_inst_id)
> >                                                       : -EINVAL;
> >-                      if (ret == 0)
> >+                      if (ret == 0) {
> >+
> >       rte_eventdev_trace_eth_tx_adapter_instance_get(eth_dev_id,
> >+                                                              tx_queue_id,
> >*txa_inst_id);
> >                               return ret;
> >+                      }
> >               } else {
> >                       struct rte_eth_dev *eth_dev;
> >
> >@@ -1351,6 +1364,8 @@ rte_event_eth_tx_adapter_instance_get(uint16_t
> >eth_dev_id,
> >                       if (txa_service_is_queue_added(txa, eth_dev,
> >                                                      tx_queue_id)) {
> >                               *txa_inst_id = txa->id;
> >+
> >       rte_eventdev_trace_eth_tx_adapter_instance_get(eth_dev_id,
> >+                                                              tx_queue_id,
> >*txa_inst_id);
> >                               return 0;
> >                       }
> >               }
> >@@ -1426,11 +1441,15 @@ txa_queue_start_state_set(uint16_t eth_dev_id,
> >uint16_t tx_queue_id,
> > int
> > rte_event_eth_tx_adapter_queue_start(uint16_t eth_dev_id, uint16_t
> >tx_queue_id)
> > {
> >+      rte_eventdev_trace_eth_tx_adapter_queue_start(eth_dev_id,
> >tx_queue_id);
> >+
> >       return txa_queue_start_state_set(eth_dev_id, tx_queue_id, true);
> > }
> >
> > int
> > rte_event_eth_tx_adapter_queue_stop(uint16_t eth_dev_id, uint16_t
> >tx_queue_id)
> > {
> >+      rte_eventdev_trace_eth_tx_adapter_queue_stop(eth_dev_id,
> >tx_queue_id);
> >+
> >       return txa_queue_start_state_set(eth_dev_id, tx_queue_id, false);
> > }
> >diff --git a/lib/eventdev/rte_event_ring.c b/lib/eventdev/rte_event_ring.c
> >index c070715148..b965970cf9 100644
> >--- a/lib/eventdev/rte_event_ring.c
> >+++ b/lib/eventdev/rte_event_ring.c
> >@@ -5,6 +5,7 @@
> >
> >
> > #include "rte_event_ring.h"
> >+#include "eventdev_trace.h"
> >
> > int
> > rte_event_ring_init(struct rte_event_ring *r, const char *name,
> >@@ -14,6 +15,8 @@ rte_event_ring_init(struct rte_event_ring *r, const char
> >*name,
> >       RTE_BUILD_BUG_ON((sizeof(struct rte_event_ring) &
> >                         RTE_CACHE_LINE_MASK) != 0);
> >
> >+      rte_eventdev_trace_ring_init(r, name, count, flags);
> >+
> >       /* init the ring structure */
> >       return rte_ring_init(&r->r, name, count, flags);
> > }
> >@@ -23,6 +26,8 @@ struct rte_event_ring *
> > rte_event_ring_create(const char *name, unsigned int count, int socket_id,
> >               unsigned int flags)
> > {
> >+      rte_eventdev_trace_ring_create(name, count, socket_id, flags);
> >+
> >       return (struct rte_event_ring *)rte_ring_create_elem(name,
> >                                               sizeof(struct rte_event),
> >                                               count, socket_id, flags);
> >@@ -32,6 +37,8 @@ rte_event_ring_create(const char *name, unsigned int
> >count, int socket_id,
> > struct rte_event_ring *
> > rte_event_ring_lookup(const char *name)
> > {
> >+      rte_eventdev_trace_ring_lookup(name);
> >+
> >       return (struct rte_event_ring *)rte_ring_lookup(name);
> > }
> >
> >@@ -39,5 +46,7 @@ rte_event_ring_lookup(const char *name)
> > void
> > rte_event_ring_free(struct rte_event_ring *r)
> > {
> >+      rte_eventdev_trace_ring_free(r->r.name);
> >+
> >       rte_ring_free((struct rte_ring *)r);
> > }
> >diff --git a/lib/eventdev/rte_event_timer_adapter.c
> >b/lib/eventdev/rte_event_timer_adapter.c
> >index d357f7403a..61712c3bd5 100644
> >--- a/lib/eventdev/rte_event_timer_adapter.c
> >+++ b/lib/eventdev/rte_event_timer_adapter.c
> >@@ -275,6 +275,8 @@ rte_event_timer_adapter_get_info(const struct
> >rte_event_timer_adapter *adapter,
> >       adapter_info->event_dev_port_id = adapter->data->event_port_id;
> >       adapter_info->caps = adapter->data->caps;
> >
> >+      rte_eventdev_trace_timer_adapter_get_info(adapter, adapter_info);
> >+
> >       return 0;
> > }
> >
> >@@ -386,6 +388,8 @@ rte_event_timer_adapter_lookup(uint16_t adapter_id)
> >
> >       adapter->allocated = 1;
> >
> >+      rte_eventdev_trace_timer_adapter_lookup(adapter_id, adapter);
> >+
> >       return adapter;
> > }
> >
> >@@ -436,9 +440,14 @@ rte_event_timer_adapter_service_id_get(struct
> >rte_event_timer_adapter *adapter,
> > {
> >       ADAPTER_VALID_OR_ERR_RET(adapter, -EINVAL);
> >
> >+      if (service_id == NULL)
> >+              return -EINVAL;
> >+
> >       if (adapter->data->service_inited && service_id != NULL)
> >               *service_id = adapter->data->service_id;
> >
> >+      rte_eventdev_trace_timer_adapter_service_id_get(adapter,
> >*service_id);
> >+
> >       return adapter->data->service_inited ? 0 : -ESRCH;
> > }
> >
> >@@ -446,6 +455,8 @@ int
> > rte_event_timer_adapter_stats_get(struct rte_event_timer_adapter *adapter,
> >                                 struct rte_event_timer_adapter_stats *stats)
> > {
> >+      rte_eventdev_trace_timer_adapter_stats_get(adapter, stats);
> >+
> >       ADAPTER_VALID_OR_ERR_RET(adapter, -EINVAL);
> >       FUNC_PTR_OR_ERR_RET(adapter->ops->stats_get, -EINVAL);
> >       if (stats == NULL)
> >@@ -457,6 +468,8 @@ rte_event_timer_adapter_stats_get(struct
> >rte_event_timer_adapter *adapter,
> > int
> > rte_event_timer_adapter_stats_reset(struct rte_event_timer_adapter
> >*adapter)
> > {
> >+      rte_eventdev_trace_timer_adapter_stats_reset(adapter);
> >+
> >       ADAPTER_VALID_OR_ERR_RET(adapter, -EINVAL);
> >       FUNC_PTR_OR_ERR_RET(adapter->ops->stats_reset, -EINVAL);
> >       return adapter->ops->stats_reset(adapter);
> >@@ -468,6 +481,8 @@ rte_event_timer_remaining_ticks_get(
> >                       const struct rte_event_timer *evtim,
> >                       uint64_t *ticks_remaining)
> > {
> >+      rte_eventdev_trace_timer_remaining_ticks_get(adapter, evtim,
> >ticks_remaining);
> >+
> >       ADAPTER_VALID_OR_ERR_RET(adapter, -EINVAL);
> >       FUNC_PTR_OR_ERR_RET(adapter->ops->remaining_ticks_get, -
> >ENOTSUP);
> >
> >diff --git a/lib/eventdev/rte_eventdev.c b/lib/eventdev/rte_eventdev.c
> >index b0414206d9..245b1d2d4e 100644
> >--- a/lib/eventdev/rte_eventdev.c
> >+++ b/lib/eventdev/rte_eventdev.c
> >@@ -62,8 +62,10 @@ rte_event_dev_get_dev_id(const char *name)
> >                               rte_event_devices[i].dev->driver->name, name,
> >                                        RTE_EVENTDEV_NAME_MAX_LEN) == 0) :
> >0);
> >               if (cmp && (rte_event_devices[i].attached ==
> >-                                      RTE_EVENTDEV_ATTACHED))
> >+                                      RTE_EVENTDEV_ATTACHED)) {
> >+                      rte_eventdev_trace_get_dev_id(name, i);
> >                       return i;
> >+              }
> >       }
> >       return -ENODEV;
> > }
> >@@ -76,6 +78,8 @@ rte_event_dev_socket_id(uint8_t dev_id)
> >       RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
> >       dev = &rte_eventdevs[dev_id];
> >
> >+      rte_eventdev_trace_socket_id(dev_id, dev, dev->data->socket_id);
> >+
> >       return dev->data->socket_id;
> > }
> >
> >@@ -99,6 +103,9 @@ rte_event_dev_info_get(uint8_t dev_id, struct
> >rte_event_dev_info *dev_info)
> >       dev_info->dequeue_timeout_ns = dev->data-
> >>dev_conf.dequeue_timeout_ns;
> >
> >       dev_info->dev = dev->dev;
> >+
> >+      rte_eventdev_trace_info_get(dev_id, dev_info, dev_info->dev);
> >+
> >       return 0;
> > }
> >
> >@@ -108,6 +115,8 @@ rte_event_eth_rx_adapter_caps_get(uint8_t dev_id,
> >uint16_t eth_port_id,
> > {
> >       struct rte_eventdev *dev;
> >
> >+      rte_eventdev_trace_eth_rx_adapter_caps_get(dev_id, eth_port_id);
> >+
> >       RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
> >       RTE_ETH_VALID_PORTID_OR_ERR_RET(eth_port_id, -EINVAL);
> >
> >@@ -134,6 +143,8 @@ rte_event_timer_adapter_caps_get(uint8_t dev_id,
> >uint32_t *caps)
> >       struct rte_eventdev *dev;
> >       const struct event_timer_adapter_ops *ops;
> >
> >+      rte_eventdev_trace_timer_adapter_caps_get(dev_id);
> >+
> >       RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
> >
> >       dev = &rte_eventdevs[dev_id];
> >@@ -168,6 +179,8 @@ rte_event_crypto_adapter_caps_get(uint8_t dev_id,
> >uint8_t cdev_id,
> >       dev = &rte_eventdevs[dev_id];
> >       cdev = rte_cryptodev_pmd_get_dev(cdev_id);
> >
> >+      rte_eventdev_trace_crypto_adapter_caps_get(dev_id, dev, cdev_id,
> >cdev);
> >+
> >       if (caps == NULL)
> >               return -EINVAL;
> >
> >@@ -194,6 +207,8 @@ rte_event_eth_tx_adapter_caps_get(uint8_t dev_id,
> >uint16_t eth_port_id,
> >       dev = &rte_eventdevs[dev_id];
> >       eth_dev = &rte_eth_devices[eth_port_id];
> >
> >+      rte_eventdev_trace_eth_tx_adapter_caps_get(dev_id, dev, eth_port_id,
> >eth_dev);
> >+
> >       if (caps == NULL)
> >               return -EINVAL;
> >
> >@@ -524,6 +539,9 @@ rte_event_queue_default_conf_get(uint8_t dev_id,
> >uint8_t queue_id,
> >               return -ENOTSUP;
> >       memset(queue_conf, 0, sizeof(struct rte_event_queue_conf));
> >       (*dev->dev_ops->queue_def_conf)(dev, queue_id, queue_conf);
> >+
> >+      rte_eventdev_trace_queue_default_conf_get(dev_id, dev, queue_id,
> >queue_conf);
> >+
> >       return 0;
> > }
> >
> >@@ -652,6 +670,9 @@ rte_event_port_default_conf_get(uint8_t dev_id, uint8_t
> >port_id,
> >               return -ENOTSUP;
> >       memset(port_conf, 0, sizeof(struct rte_event_port_conf));
> >       (*dev->dev_ops->port_def_conf)(dev, port_id, port_conf);
> >+
> >+      rte_eventdev_trace_port_default_conf_get(dev_id, dev, port_id,
> >port_conf);
> >+
> >       return 0;
> > }
> >
> >@@ -754,6 +775,8 @@ rte_event_port_quiesce(uint8_t dev_id, uint8_t port_id,
> >       RTE_EVENTDEV_VALID_DEVID_OR_RET(dev_id);
> >       dev = &rte_eventdevs[dev_id];
> >
> >+      rte_eventdev_trace_port_quiesce(dev_id, dev, port_id, args);
> >+
> >       if (!is_valid_port(dev, port_id)) {
> >               RTE_EDEV_LOG_ERR("Invalid port_id=%" PRIu8, port_id);
> >               return;
> >@@ -789,6 +812,8 @@ rte_event_dev_attr_get(uint8_t dev_id, uint32_t attr_id,
> >               return -EINVAL;
> >       }
> >
> >+      rte_eventdev_trace_attr_get(dev_id, dev, attr_id, *attr_value);
> >+
> >       return 0;
> > }
> >
> >@@ -829,6 +854,9 @@ rte_event_port_attr_get(uint8_t dev_id, uint8_t port_id,
> >uint32_t attr_id,
> >       default:
> >               return -EINVAL;
> >       };
> >+
> >+      rte_eventdev_trace_port_attr_get(dev_id, dev, port_id, attr_id,
> >*attr_value);
> >+
> >       return 0;
> > }
> >
> >@@ -885,6 +913,9 @@ rte_event_queue_attr_get(uint8_t dev_id, uint8_t
> >queue_id, uint32_t attr_id,
> >       default:
> >               return -EINVAL;
> >       };
> >+
> >+      rte_eventdev_trace_queue_attr_get(dev_id, dev, queue_id, attr_id,
> >*attr_value);
> >+
> >       return 0;
> > }
> >
> >@@ -894,6 +925,8 @@ rte_event_queue_attr_set(uint8_t dev_id, uint8_t
> >queue_id, uint32_t attr_id,
> > {
> >       struct rte_eventdev *dev;
> >
> >+      rte_eventdev_trace_queue_attr_set(dev_id, queue_id, attr_id,
> >attr_value);
> >+
> >       RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
> >       dev = &rte_eventdevs[dev_id];
> >       if (!is_valid_queue(dev, queue_id)) {
> >@@ -1048,6 +1081,8 @@ rte_event_port_unlinks_in_progress(uint8_t dev_id,
> >uint8_t port_id)
> > {
> >       struct rte_eventdev *dev;
> >
> >+      rte_eventdev_trace_port_unlinks_in_progress(dev_id, port_id);
> >+
> >       RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
> >       dev = &rte_eventdevs[dev_id];
> >       if (!is_valid_port(dev, port_id)) {
> >@@ -1091,6 +1126,9 @@ rte_event_port_links_get(uint8_t dev_id, uint8_t
> >port_id,
> >                       ++count;
> >               }
> >       }
> >+
> >+      rte_eventdev_trace_port_links_get(dev_id, port_id, count);
> >+
> >       return count;
> > }
> >
> >@@ -1100,6 +1138,8 @@ rte_event_dequeue_timeout_ticks(uint8_t dev_id,
> >uint64_t ns,
> > {
> >       struct rte_eventdev *dev;
> >
> >+      rte_eventdev_trace_dequeue_timeout_ticks(dev_id, ns, timeout_ticks);
> >+
> >       RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
> >       dev = &rte_eventdevs[dev_id];
> >       if (*dev->dev_ops->timeout_ticks == NULL)
> >@@ -1125,6 +1165,8 @@ rte_event_dev_service_id_get(uint8_t dev_id, uint32_t
> >*service_id)
> >       if (dev->data->service_inited)
> >               *service_id = dev->data->service_id;
> >
> >+      rte_eventdev_trace_service_id_get(dev_id, *service_id);
> >+
> >       return dev->data->service_inited ? 0 : -ESRCH;
> > }
> >
> >@@ -1285,6 +1327,9 @@ rte_event_vector_pool_create(const char *name,
> >unsigned int n,
> >       if (ret < 0)
> >               goto err;
> >
> >+      rte_eventdev_trace_vector_pool_create(mp, mp->name, mp-
> >>socket_id,
> >+              mp->size, mp->cache_size, mp->elt_size);
> >+
> >       return mp;
> > err:
> >       rte_mempool_free(mp);
> >@@ -1332,6 +1377,8 @@ rte_event_dev_stop_flush_callback_register(uint8_t
> >dev_id,
> >
> >       RTE_EDEV_LOG_DEBUG("Stop flush register dev_id=%" PRIu8, dev_id);
> >
> >+      rte_eventdev_trace_stop_flush_callback_register(dev_id, callback,
> >userdata);
> >+
> >       RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
> >       dev = &rte_eventdevs[dev_id];
> >
> >--
> >2.25.1
>

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2023-02-07  8:00 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-19 14:11 [PATCH] eventdev: add trace points Amit Prakash Shukla
2023-01-03  5:57 ` Gujjar, Abhinandan S
2023-01-27  9:06   ` Amit Prakash Shukla
2023-01-30 10:13 ` [PATCH v2] " Amit Prakash Shukla
2023-01-30 14:31   ` Jerin Jacob
2023-01-30 14:52     ` [EXT] " Amit Prakash Shukla
2023-01-30 17:30   ` [PATCH v3] " Amit Prakash Shukla
2023-01-31 13:30     ` [PATCH v4] " Amit Prakash Shukla
2023-01-31 13:44       ` [PATCH v5] " Amit Prakash Shukla
2023-02-01 10:16         ` [EXT] " Shijith Thotton
2023-02-01 10:46           ` Amit Prakash Shukla
2023-02-02  9:17         ` [PATCH v6] " Amit Prakash Shukla
2023-02-02  9:24           ` [EXT] " Shijith Thotton
2023-02-07  8:00             ` Jerin Jacob

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).