git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vfio: fix API description
[dpdk.git]
/
lib
/
librte_eal
/
include
/
rte_trace_point.h
diff --git
a/lib/librte_eal/include/rte_trace_point.h
b/lib/librte_eal/include/rte_trace_point.h
index
377c241
..
e226f07
100644
(file)
--- a/
lib/librte_eal/include/rte_trace_point.h
+++ b/
lib/librte_eal/include/rte_trace_point.h
@@
-34,10
+34,6
@@
extern "C" {
/** The tracepoint object. */
typedef uint64_t rte_trace_point_t;
/** The tracepoint object. */
typedef uint64_t rte_trace_point_t;
-/** Macro to define the tracepoint. */
-#define RTE_TRACE_POINT_DEFINE(tp) \
-rte_trace_point_t __attribute__((section("__rte_trace_point"))) __##tp
-
/**
* Macro to define the tracepoint arguments in RTE_TRACE_POINT macro.
/**
* Macro to define the tracepoint arguments in RTE_TRACE_POINT macro.
@@
-69,7
+65,7
@@
_tp _args \
*
* @param tp
* Tracepoint object. Before using the tracepoint, an application needs to
*
* @param tp
* Tracepoint object. Before using the tracepoint, an application needs to
- * define the tracepoint using RTE_TRACE_POINT_
DEFINE
macro.
+ * define the tracepoint using RTE_TRACE_POINT_
REGISTER
macro.
* @param args
* C function style input arguments to define the arguments to tracepoint
* function.
* @param args
* C function style input arguments to define the arguments to tracepoint
* function.
@@
-77,7
+73,7
@@
_tp _args \
* Define the payload of trace function. The payload will be formed using
* rte_trace_point_emit_* macros. Use ";" delimiter between two payloads.
*
* Define the payload of trace function. The payload will be formed using
* rte_trace_point_emit_* macros. Use ";" delimiter between two payloads.
*
- * @see RTE_TRACE_POINT_ARGS, RTE_TRACE_POINT_
DEFINE
, rte_trace_point_emit_*
+ * @see RTE_TRACE_POINT_ARGS, RTE_TRACE_POINT_
REGISTER
, rte_trace_point_emit_*
*/
#define RTE_TRACE_POINT(tp, args, ...) \
__RTE_TRACE_POINT(generic, tp, args, __VA_ARGS__)
*/
#define RTE_TRACE_POINT(tp, args, ...) \
__RTE_TRACE_POINT(generic, tp, args, __VA_ARGS__)
@@
-90,7
+86,7
@@
_tp _args \
*
* @param tp
* Tracepoint object. Before using the tracepoint, an application needs to
*
* @param tp
* Tracepoint object. Before using the tracepoint, an application needs to
- * define the tracepoint using RTE_TRACE_POINT_
DEFINE
macro.
+ * define the tracepoint using RTE_TRACE_POINT_
REGISTER
macro.
* @param args
* C function style input arguments to define the arguments to tracepoint.
* function.
* @param args
* C function style input arguments to define the arguments to tracepoint.
* function.
@@
-109,7
+105,7
@@
_tp _args \
* Register a tracepoint.
*
* @param trace
* Register a tracepoint.
*
* @param trace
- * The tracepoint object created using RTE_TRACE_POINT_
DEFINE
.
+ * The tracepoint object created using RTE_TRACE_POINT_
REGISTER
.
* @param name
* The name of the tracepoint object.
* @return
* @param name
* The name of the tracepoint object.
* @return
@@
-256,7
+252,7
@@
void __rte_trace_point_emit_field(size_t sz, const char *field,
* Use RTE_TRACE_POINT_REGISTER macro for tracepoint registration.
*
* @param trace
* Use RTE_TRACE_POINT_REGISTER macro for tracepoint registration.
*
* @param trace
- * The tracepoint object created using RTE_TRACE_POINT_
DEFINE
.
+ * The tracepoint object created using RTE_TRACE_POINT_
REGISTER
.
* @param name
* The name of the tracepoint object.
* @param register_fn
* @param name
* The name of the tracepoint object.
* @param register_fn
@@
-302,13
+298,14
@@
RTE_DECLARE_PER_LCORE(void *, trace_mem);
static __rte_always_inline void *
__rte_trace_mem_get(uint64_t in)
{
static __rte_always_inline void *
__rte_trace_mem_get(uint64_t in)
{
- struct __rte_trace_header *trace = RTE_PER_LCORE(trace_mem);
+ struct __rte_trace_header *trace =
+ (struct __rte_trace_header *)(RTE_PER_LCORE(trace_mem));
const uint16_t sz = in & __RTE_TRACE_FIELD_SIZE_MASK;
/* Trace memory is not initialized for this thread */
if (unlikely(trace == NULL)) {
__rte_trace_mem_per_thread_alloc();
const uint16_t sz = in & __RTE_TRACE_FIELD_SIZE_MASK;
/* Trace memory is not initialized for this thread */
if (unlikely(trace == NULL)) {
__rte_trace_mem_per_thread_alloc();
- trace =
RTE_PER_LCORE(trace_mem
);
+ trace =
(struct __rte_trace_header *)(RTE_PER_LCORE(trace_mem)
);
if (unlikely(trace == NULL))
return NULL;
}
if (unlikely(trace == NULL))
return NULL;
}