1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2010-2014 Intel Corporation
15 #include <rte_debug.h>
16 #include <rte_common.h>
19 #define BACKTRACE_SIZE 256
21 /* dump the stack of the calling core */
22 void rte_dump_stack(void)
25 void *func[BACKTRACE_SIZE];
29 size = backtrace(func, BACKTRACE_SIZE);
30 symb = backtrace_symbols(func, size);
36 rte_log(RTE_LOG_ERR, RTE_LOGTYPE_EAL,
37 "%d: [%s]\n", size, symb[size - 1]);
42 #endif /* RTE_BACKTRACE */