50 #define rte_panic(...) rte_panic_(__func__, __VA_ARGS__, "dummy") 51 #define rte_panic_(func, format, ...) __rte_panic(func, format "%.0s", __VA_ARGS__) 53 #ifdef RTE_ENABLE_ASSERT 54 #define RTE_ASSERT(exp) RTE_VERIFY(exp) 56 #define RTE_ASSERT(exp) do {} while (0) 58 #define RTE_VERIFY(exp) do { \ 59 if (unlikely(!(exp))) \ 60 rte_panic("line %d\tassert \"%s\" failed\n", __LINE__, #exp); \ 69 void __rte_panic(
const char *funcname ,
const char *format, ...)
71 #if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 2)) 75 __attribute__((noreturn))
void rte_dump_registers(void)
void rte_dump_stack(void)
#define __rte_format_printf(format_index, first_arg)