![]() |
|
|||
0001 // SPDX-License-Identifier: GPL-2.0 0002 /* 0003 * This file setups defines to compile arch specific binary from the 0004 * generic one. 0005 * 0006 * The function 'LIBUNWIND__ARCH_REG_ID' name is set according to arch 0007 * name and the definition of this function is included directly from 0008 * 'arch/x86/util/unwind-libunwind.c', to make sure that this function 0009 * is defined no matter what arch the host is. 0010 * 0011 * Finally, the arch specific unwind methods are exported which will 0012 * be assigned to each x86 thread. 0013 */ 0014 0015 #define REMOTE_UNWIND_LIBUNWIND 0016 0017 /* Define arch specific functions & regs for libunwind, should be 0018 * defined before including "unwind.h" 0019 */ 0020 #define LIBUNWIND__ARCH_REG_ID(regnum) libunwind__x86_reg_id(regnum) 0021 #define LIBUNWIND__ARCH_REG_IP PERF_REG_X86_IP 0022 #define LIBUNWIND__ARCH_REG_SP PERF_REG_X86_SP 0023 0024 #include "unwind.h" 0025 #include "libunwind-x86.h" 0026 #include <../../../../arch/x86/include/uapi/asm/perf_regs.h> 0027 0028 /* HAVE_ARCH_X86_64_SUPPORT is used in'arch/x86/util/unwind-libunwind.c' 0029 * for x86_32, we undef it to compile code for x86_32 only. 0030 */ 0031 #undef HAVE_ARCH_X86_64_SUPPORT 0032 #include "../../arch/x86/util/unwind-libunwind.c" 0033 0034 /* Explicitly define NO_LIBUNWIND_DEBUG_FRAME, because non-ARM has no 0035 * dwarf_find_debug_frame() function. 0036 */ 0037 #ifndef NO_LIBUNWIND_DEBUG_FRAME 0038 #define NO_LIBUNWIND_DEBUG_FRAME 0039 #endif 0040 #include "util/unwind-libunwind-local.c" 0041 0042 struct unwind_libunwind_ops * 0043 x86_32_unwind_libunwind_ops = &_unwind_libunwind_ops;
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |