79 #define rte_panic(...) rte_panic_(__func__, __VA_ARGS__, "dummy") 80 #define rte_panic_(func, format, ...) __rte_panic(func, format "%.0s", __VA_ARGS__) 82 #if RTE_LOG_LEVEL >= RTE_LOG_DEBUG 83 #define RTE_ASSERT(exp) RTE_VERIFY(exp) 85 #define RTE_ASSERT(exp) do {} while (0) 87 #define RTE_VERIFY(exp) do { \ 88 if (unlikely(!(exp))) \ 89 rte_panic("line %d\tassert \"" #exp "\" failed\n", __LINE__); \ 98 void __rte_panic(
const char *funcname ,
const char *format, ...)
100 #if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 2)) 101 __attribute__((cold))
104 __attribute__((noreturn))
105 __attribute__((format(printf, 2, 3)));
void rte_dump_registers(void)
void rte_dump_stack(void)