numam-dpdk/examples/performance-thread/common
Thomas Monjalon 50705e8e3c eal: add assert macro for debug
The macro RTE_VERIFY always checks a condition.
It is optimized with "unlikely" hint.
While this macro is well suited for test applications, it is preferred
in libraries and examples to enable such check in debug mode.
That's why the macro RTE_ASSERT is introduced to call RTE_VERIFY only
if built with debug logs enabled.

A lot of assert macros were duplicated and enabled with a specific flag.
Removing these #ifdef allows to test these code branches more easily
and avoid dead code pitfalls.

The ENA_ASSERT is kept (in debug mode only) because it has more
parameters to log.

Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
2016-05-02 15:31:17 +02:00
..
arch/x86 examples/performance-thread: add lthread subsystem 2015-12-11 02:14:54 +01:00
common.mk examples/performance-thread: add lthread subsystem 2015-12-11 02:14:54 +01:00
lthread_api.h examples/performance-thread: mark as experimental 2015-12-11 02:35:42 +01:00
lthread_cond.c config: remove useless explicit includes of generated header 2016-02-10 22:43:38 +01:00
lthread_cond.h examples/performance-thread: add lthread subsystem 2015-12-11 02:14:54 +01:00
lthread_diag_api.h examples/performance-thread: mark as experimental 2015-12-11 02:35:42 +01:00
lthread_diag.c config: remove useless explicit includes of generated header 2016-02-10 22:43:38 +01:00
lthread_diag.h examples/performance-thread: add lthread subsystem 2015-12-11 02:14:54 +01:00
lthread_int.h eal: add assert macro for debug 2016-05-02 15:31:17 +02:00
lthread_mutex.c eal: add assert macro for debug 2016-05-02 15:31:17 +02:00
lthread_mutex.h examples/performance-thread: add lthread subsystem 2015-12-11 02:14:54 +01:00
lthread_objcache.h examples/performance-thread: add lthread subsystem 2015-12-11 02:14:54 +01:00
lthread_pool.h eal: add assert macro for debug 2016-05-02 15:31:17 +02:00
lthread_queue.h eal: add assert macro for debug 2016-05-02 15:31:17 +02:00
lthread_sched.c eal: add assert macro for debug 2016-05-02 15:31:17 +02:00
lthread_sched.h examples/performance-thread: add lthread subsystem 2015-12-11 02:14:54 +01:00
lthread_timer.h examples/performance-thread: add lthread subsystem 2015-12-11 02:14:54 +01:00
lthread_tls.c eal: add assert macro for debug 2016-05-02 15:31:17 +02:00
lthread_tls.h examples/performance-thread: add lthread subsystem 2015-12-11 02:14:54 +01:00
lthread.c eal: add assert macro for debug 2016-05-02 15:31:17 +02:00
lthread.h examples/performance-thread: add lthread subsystem 2015-12-11 02:14:54 +01:00