numam-dpdk/lib/librte_mempool/mempool_trace_points.c
David Marchand 0fc601af3a trace: simplify trace point registration
RTE_TRACE_POINT_DEFINE and RTE_TRACE_POINT_REGISTER must come in pairs.
Merge them and let RTE_TRACE_POINT_REGISTER handle the constructor part.

Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
2020-07-05 21:34:21 +02:00

80 lines
2.1 KiB
C

/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(C) 2020 Marvell International Ltd.
*/
#include <rte_trace_point_register.h>
#include "rte_mempool_trace.h"
RTE_TRACE_POINT_REGISTER(rte_mempool_trace_ops_dequeue_bulk,
lib.mempool.ops.deq.bulk)
RTE_TRACE_POINT_REGISTER(rte_mempool_trace_ops_dequeue_contig_blocks,
lib.mempool.ops.deq.contig)
RTE_TRACE_POINT_REGISTER(rte_mempool_trace_ops_enqueue_bulk,
lib.mempool.ops.enq.bulk)
RTE_TRACE_POINT_REGISTER(rte_mempool_trace_generic_put,
lib.mempool.generic.put)
RTE_TRACE_POINT_REGISTER(rte_mempool_trace_put_bulk,
lib.mempool.put.bulk)
RTE_TRACE_POINT_REGISTER(rte_mempool_trace_generic_get,
lib.mempool.generic.get)
RTE_TRACE_POINT_REGISTER(rte_mempool_trace_get_bulk,
lib.mempool.get.bulk)
RTE_TRACE_POINT_REGISTER(rte_mempool_trace_get_contig_blocks,
lib.mempool.get.blocks)
RTE_TRACE_POINT_REGISTER(rte_mempool_trace_create,
lib.mempool.create)
RTE_TRACE_POINT_REGISTER(rte_mempool_trace_create_empty,
lib.mempool.create.empty)
RTE_TRACE_POINT_REGISTER(rte_mempool_trace_free,
lib.mempool.free)
RTE_TRACE_POINT_REGISTER(rte_mempool_trace_populate_iova,
lib.mempool.populate.iova)
RTE_TRACE_POINT_REGISTER(rte_mempool_trace_populate_virt,
lib.mempool.populate.virt)
RTE_TRACE_POINT_REGISTER(rte_mempool_trace_populate_default,
lib.mempool.populate.default)
RTE_TRACE_POINT_REGISTER(rte_mempool_trace_populate_anon,
lib.mempool.populate.anon)
RTE_TRACE_POINT_REGISTER(rte_mempool_trace_cache_create,
lib.mempool.cache_create)
RTE_TRACE_POINT_REGISTER(rte_mempool_trace_cache_free,
lib.mempool.cache.free)
RTE_TRACE_POINT_REGISTER(rte_mempool_trace_default_cache,
lib.mempool.default.cache)
RTE_TRACE_POINT_REGISTER(rte_mempool_trace_get_page_size,
lib.mempool.get.page.size)
RTE_TRACE_POINT_REGISTER(rte_mempool_trace_cache_flush,
lib.mempool.cache.flush)
RTE_TRACE_POINT_REGISTER(rte_mempool_trace_ops_populate,
lib.mempool.ops.populate)
RTE_TRACE_POINT_REGISTER(rte_mempool_trace_ops_alloc,
lib.mempool.ops.alloc)
RTE_TRACE_POINT_REGISTER(rte_mempool_trace_ops_free,
lib.mempool.ops.free)
RTE_TRACE_POINT_REGISTER(rte_mempool_trace_set_ops_byname,
lib.mempool.set.ops.byname)