>
> From: Sunil Kumar Kori <sk...@marvell.com>
>
> Add tracepoints at important and mandatory APIs for tracing support.
>
> Signed-off-by: Sunil Kumar Kori <sk...@marvell.com>
> ---
> examples/cmdline/Makefile | 1 +
> examples/cmdline/meson.build | 1 +
> examples/distributor/Makefile | 1 +
> examples/distributor/meson.build | 1 +
> examples/ethtool/ethtool-app/Makefile | 1 +
> examples/eventdev_pipeline/meson.build | 1 +
> examples/flow_filtering/Makefile | 1 +
> examples/flow_filtering/meson.build | 1 +
> examples/helloworld/Makefile | 1 +
> examples/helloworld/meson.build | 1 +
> examples/ioat/Makefile | 1 +
> examples/ioat/meson.build | 1 +
> examples/ip_fragmentation/Makefile | 2 +
> examples/ip_fragmentation/meson.build | 1 +
> examples/ip_reassembly/Makefile | 1 +
> examples/ip_reassembly/meson.build | 1 +
> examples/ipv4_multicast/Makefile | 1 +
> examples/ipv4_multicast/meson.build | 1 +
> examples/l2fwd-cat/Makefile | 1 +
> examples/l2fwd-cat/meson.build | 1 +
> examples/l2fwd-event/Makefile | 1 +
> examples/l2fwd-event/meson.build | 1 +
> examples/l2fwd-jobstats/Makefile | 1 +
> examples/l2fwd-jobstats/meson.build | 1 +
> examples/l2fwd-keepalive/Makefile | 1 +
> examples/l2fwd-keepalive/ka-agent/Makefile | 1 +
> examples/l2fwd-keepalive/meson.build | 1 +
> examples/l3fwd-acl/Makefile | 1 +
> examples/l3fwd-acl/meson.build | 1 +
> examples/l3fwd/Makefile | 1 +
> examples/l3fwd/meson.build | 1 +
> examples/link_status_interrupt/Makefile | 1 +
> examples/link_status_interrupt/meson.build | 1 +
> .../client_server_mp/mp_client/Makefile | 1 +
> .../client_server_mp/mp_client/meson.build | 1 +
> .../client_server_mp/mp_server/meson.build | 1 +
> examples/multi_process/hotplug_mp/Makefile | 1 +
> examples/multi_process/hotplug_mp/meson.build | 1 +
> examples/multi_process/simple_mp/Makefile | 1 +
> examples/multi_process/simple_mp/meson.build | 1 +
> examples/multi_process/symmetric_mp/Makefile | 1 +
> .../multi_process/symmetric_mp/meson.build | 1 +
> examples/ntb/Makefile | 1 +
> examples/ntb/meson.build | 1 +
> examples/packet_ordering/Makefile | 1 +
> examples/packet_ordering/meson.build | 1 +
> .../performance-thread/l3fwd-thread/Makefile | 1 +
> .../l3fwd-thread/meson.build | 1 +
> .../performance-thread/pthread_shim/Makefile | 1 +
> .../pthread_shim/meson.build | 1 +
> examples/ptpclient/Makefile | 1 +
> examples/ptpclient/meson.build | 1 +
> examples/qos_meter/Makefile | 1 +
> examples/qos_meter/meson.build | 1 +
> examples/qos_sched/Makefile | 1 +
> examples/qos_sched/meson.build | 1 +
> examples/server_node_efd/node/Makefile | 1 +
> examples/server_node_efd/node/meson.build | 1 +
> examples/server_node_efd/server/Makefile | 1 +
> examples/server_node_efd/server/meson.build | 1 +
> examples/service_cores/Makefile | 1 +
> examples/service_cores/meson.build | 1 +
> examples/skeleton/Makefile | 1 +
> examples/skeleton/meson.build | 1 +
> examples/timer/Makefile | 1 +
> examples/timer/meson.build | 1 +
> examples/vm_power_manager/Makefile | 1 +
> examples/vm_power_manager/meson.build | 1 +
> examples/vmdq/Makefile | 1 +
> examples/vmdq/meson.build | 1 +
> examples/vmdq_dcb/Makefile | 1 +
> examples/vmdq_dcb/meson.build | 1 +
> lib/librte_ethdev/Makefile | 3 +
> lib/librte_ethdev/ethdev_trace_points.c | 43 ++++++++
> lib/librte_ethdev/meson.build | 5 +-
> lib/librte_ethdev/rte_ethdev.c | 12 +++
> lib/librte_ethdev/rte_ethdev.h | 5 +
> lib/librte_ethdev/rte_ethdev_trace.h | 97 +++++++++++++++++++
> lib/librte_ethdev/rte_ethdev_trace_fp.h | 44 +++++++++
> lib/librte_ethdev/rte_ethdev_version.map | 10 ++
> 80 files changed, 291 insertions(+), 1 deletion(-)
> create mode 100644 lib/librte_ethdev/ethdev_trace_points.c
> create mode 100644 lib/librte_ethdev/rte_ethdev_trace.h
> create mode 100644 lib/librte_ethdev/rte_ethdev_trace_fp.h
>
> diff --git a/examples/cmdline/Makefile b/examples/cmdline/Makefile
> index 0b6b54540..9a33355d0 100644
> --- a/examples/cmdline/Makefile
> +++ b/examples/cmdline/Makefile
> @@ -57,6 +57,7 @@ SRCS-y := main.c commands.c parse_obj_list.c
>
> CFLAGS += -O3
> CFLAGS += $(WERROR_FLAGS)
> +CFLAGS += -DALLOW_EXPERIMENTAL_API
>
Adding DALLOW_EXPERIMENTAL_API in cflags is no more required for each app.
It is globally controlled now.