numam-dpdk/lib/librte_cryptodev/cryptodev_trace_points.c
David Marchand ebaee64097 trace: simplify trace point headers
Invert the current trace point headers logic by making
rte_trace_point_register.h include rte_trace_point.h.

There is no more need for a RTE_TRACE_POINT_REGISTER_SELECT special macro
since including rte_trace_point_register.h itself means we want to
register trace points.

The unexplained "provider" notion is removed from the documentation and
rte_trace_point_provider.h is merged into rte_trace_point.h.

Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
2020-05-06 13:50:32 +02:00

76 lines
2.6 KiB
C

/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(C) 2020 Marvell International Ltd.
*/
#include <rte_trace_point_register.h>
#include "rte_cryptodev_trace.h"
RTE_TRACE_POINT_DEFINE(rte_cryptodev_trace_configure);
RTE_TRACE_POINT_DEFINE(rte_cryptodev_trace_start);
RTE_TRACE_POINT_DEFINE(rte_cryptodev_trace_stop);
RTE_TRACE_POINT_DEFINE(rte_cryptodev_trace_close);
RTE_TRACE_POINT_DEFINE(rte_cryptodev_trace_queue_pair_setup);
RTE_TRACE_POINT_DEFINE(rte_cryptodev_trace_sym_session_pool_create);
RTE_TRACE_POINT_DEFINE(rte_cryptodev_trace_sym_session_create);
RTE_TRACE_POINT_DEFINE(rte_cryptodev_trace_asym_session_create);
RTE_TRACE_POINT_DEFINE(rte_cryptodev_trace_sym_session_free);
RTE_TRACE_POINT_DEFINE(rte_cryptodev_trace_asym_session_free);
RTE_TRACE_POINT_DEFINE(rte_cryptodev_trace_sym_session_init);
RTE_TRACE_POINT_DEFINE(rte_cryptodev_trace_asym_session_init);
RTE_TRACE_POINT_DEFINE(rte_cryptodev_trace_sym_session_clear);
RTE_TRACE_POINT_DEFINE(rte_cryptodev_trace_asym_session_clear);
RTE_TRACE_POINT_DEFINE(rte_cryptodev_trace_enqueue_burst);
RTE_TRACE_POINT_DEFINE(rte_cryptodev_trace_dequeue_burst);
RTE_INIT(cryptodev_trace_init)
{
RTE_TRACE_POINT_REGISTER(rte_cryptodev_trace_configure,
lib.cryptodev.configure);
RTE_TRACE_POINT_REGISTER(rte_cryptodev_trace_start,
lib.cryptodev.start);
RTE_TRACE_POINT_REGISTER(rte_cryptodev_trace_stop,
lib.cryptodev.stop);
RTE_TRACE_POINT_REGISTER(rte_cryptodev_trace_close,
lib.cryptodev.close);
RTE_TRACE_POINT_REGISTER(rte_cryptodev_trace_queue_pair_setup,
lib.cryptodev.queue.pair.setup);
RTE_TRACE_POINT_REGISTER(rte_cryptodev_trace_sym_session_pool_create,
lib.cryptodev.sym.pool.create);
RTE_TRACE_POINT_REGISTER(rte_cryptodev_trace_sym_session_create,
lib.cryptodev.sym.create);
RTE_TRACE_POINT_REGISTER(rte_cryptodev_trace_asym_session_create,
lib.cryptodev.asym.create);
RTE_TRACE_POINT_REGISTER(rte_cryptodev_trace_sym_session_free,
lib.cryptodev.sym.free);
RTE_TRACE_POINT_REGISTER(rte_cryptodev_trace_asym_session_free,
lib.cryptodev.asym.free);
RTE_TRACE_POINT_REGISTER(rte_cryptodev_trace_sym_session_init,
lib.cryptodev.sym.init);
RTE_TRACE_POINT_REGISTER(rte_cryptodev_trace_asym_session_init,
lib.cryptodev.asym.init);
RTE_TRACE_POINT_REGISTER(rte_cryptodev_trace_sym_session_clear,
lib.cryptodev.sym.clear);
RTE_TRACE_POINT_REGISTER(rte_cryptodev_trace_asym_session_clear,
lib.cryptodev.asym.clear);
RTE_TRACE_POINT_REGISTER(rte_cryptodev_trace_enqueue_burst,
lib.cryptodev.enq.burst);
RTE_TRACE_POINT_REGISTER(rte_cryptodev_trace_dequeue_burst,
lib.cryptodev.deq.burst);
}