99a2dd955f
There is no reason for the DPDK libraries to all have 'librte_' prefix on the directory names. This prefix makes the directory names longer and also makes it awkward to add features referring to individual libraries in the build - should the lib names be specified with or without the prefix. Therefore, we can just remove the library prefix and use the library's unique name as the directory name, i.e. 'eal' rather than 'librte_eal' Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
117 lines
2.9 KiB
C
117 lines
2.9 KiB
C
/* SPDX-License-Identifier: BSD-3-Clause
|
|
* Copyright(C) 2020 Marvell International Ltd.
|
|
*/
|
|
|
|
#ifndef _RTE_MEMPOOL_TRACE_FP_H_
|
|
#define _RTE_MEMPOOL_TRACE_FP_H_
|
|
|
|
/**
|
|
* @file
|
|
*
|
|
* Mempool fast path API for trace support
|
|
*/
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <rte_trace_point.h>
|
|
|
|
RTE_TRACE_POINT_FP(
|
|
rte_mempool_trace_ops_dequeue_bulk,
|
|
RTE_TRACE_POINT_ARGS(void *mempool, void **obj_table,
|
|
uint32_t nb_objs),
|
|
rte_trace_point_emit_ptr(mempool);
|
|
rte_trace_point_emit_ptr(obj_table);
|
|
rte_trace_point_emit_u32(nb_objs);
|
|
)
|
|
|
|
RTE_TRACE_POINT_FP(
|
|
rte_mempool_trace_ops_dequeue_contig_blocks,
|
|
RTE_TRACE_POINT_ARGS(void *mempool, void **first_obj_table,
|
|
uint32_t nb_objs),
|
|
rte_trace_point_emit_ptr(mempool);
|
|
rte_trace_point_emit_ptr(first_obj_table);
|
|
rte_trace_point_emit_u32(nb_objs);
|
|
)
|
|
|
|
RTE_TRACE_POINT_FP(
|
|
rte_mempool_trace_ops_enqueue_bulk,
|
|
RTE_TRACE_POINT_ARGS(void *mempool, void * const *obj_table,
|
|
uint32_t nb_objs),
|
|
rte_trace_point_emit_ptr(mempool);
|
|
rte_trace_point_emit_ptr(obj_table);
|
|
rte_trace_point_emit_u32(nb_objs);
|
|
)
|
|
|
|
RTE_TRACE_POINT_FP(
|
|
rte_mempool_trace_generic_put,
|
|
RTE_TRACE_POINT_ARGS(void *mempool, void * const *obj_table,
|
|
uint32_t nb_objs, void *cache),
|
|
rte_trace_point_emit_ptr(mempool);
|
|
rte_trace_point_emit_ptr(obj_table);
|
|
rte_trace_point_emit_u32(nb_objs);
|
|
rte_trace_point_emit_ptr(cache);
|
|
)
|
|
|
|
RTE_TRACE_POINT_FP(
|
|
rte_mempool_trace_put_bulk,
|
|
RTE_TRACE_POINT_ARGS(void *mempool, void * const *obj_table,
|
|
uint32_t nb_objs, void *cache),
|
|
rte_trace_point_emit_ptr(mempool);
|
|
rte_trace_point_emit_ptr(obj_table);
|
|
rte_trace_point_emit_u32(nb_objs);
|
|
rte_trace_point_emit_ptr(cache);
|
|
)
|
|
|
|
RTE_TRACE_POINT_FP(
|
|
rte_mempool_trace_generic_get,
|
|
RTE_TRACE_POINT_ARGS(void *mempool, void * const *obj_table,
|
|
uint32_t nb_objs, void *cache),
|
|
rte_trace_point_emit_ptr(mempool);
|
|
rte_trace_point_emit_ptr(obj_table);
|
|
rte_trace_point_emit_u32(nb_objs);
|
|
rte_trace_point_emit_ptr(cache);
|
|
)
|
|
|
|
RTE_TRACE_POINT_FP(
|
|
rte_mempool_trace_get_bulk,
|
|
RTE_TRACE_POINT_ARGS(void *mempool, void **obj_table,
|
|
uint32_t nb_objs, void *cache),
|
|
rte_trace_point_emit_ptr(mempool);
|
|
rte_trace_point_emit_ptr(obj_table);
|
|
rte_trace_point_emit_u32(nb_objs);
|
|
rte_trace_point_emit_ptr(cache);
|
|
)
|
|
|
|
RTE_TRACE_POINT_FP(
|
|
rte_mempool_trace_get_contig_blocks,
|
|
RTE_TRACE_POINT_ARGS(void *mempool, void **first_obj_table,
|
|
uint32_t nb_objs),
|
|
rte_trace_point_emit_ptr(mempool);
|
|
rte_trace_point_emit_ptr(first_obj_table);
|
|
rte_trace_point_emit_u32(nb_objs);
|
|
)
|
|
|
|
RTE_TRACE_POINT_FP(
|
|
rte_mempool_trace_default_cache,
|
|
RTE_TRACE_POINT_ARGS(void *mempool, uint32_t lcore_id,
|
|
void *default_cache),
|
|
rte_trace_point_emit_ptr(mempool);
|
|
rte_trace_point_emit_u32(lcore_id);
|
|
rte_trace_point_emit_ptr(default_cache);
|
|
)
|
|
|
|
RTE_TRACE_POINT_FP(
|
|
rte_mempool_trace_cache_flush,
|
|
RTE_TRACE_POINT_ARGS(void *cache, void *mempool),
|
|
rte_trace_point_emit_ptr(cache);
|
|
rte_trace_point_emit_ptr(mempool);
|
|
)
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* _RTE_MEMPOOL_TRACE_FP_H_ */
|