1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2010-2014 Intel Corporation
12 rte_dump_registers(void)
17 /* call abort(), it will generate a coredump if enabled */
19 __rte_panic(const char *funcname, const char *format, ...)
23 rte_log(RTE_LOG_CRIT, RTE_LOGTYPE_EAL, "PANIC in %s():\n", funcname);
25 rte_vlog(RTE_LOG_CRIT, RTE_LOGTYPE_EAL, format, ap);
33 * Like rte_panic this terminates the application. However, no traceback is
34 * provided and no core-dump is generated.
37 rte_exit(int exit_code, const char *format, ...)
42 RTE_LOG(CRIT, EAL, "Error - exiting with code: %d\n"
43 " Cause: ", exit_code);
46 rte_vlog(RTE_LOG_CRIT, RTE_LOGTYPE_EAL, format, ap);
49 #ifndef RTE_EAL_ALWAYS_PANIC_ON_ERROR
50 if (rte_eal_cleanup() != 0)
52 "EAL could not release all resources\n");