33 #define ec_sign(a) static_cast<int64_t>(a) 35 #define ec_sign(a) ((int64_t)(a)) 48 #define ENTRY_SUCCESS ec_sign(SUCCESS) 49 #define ENTRY_ERROR_STACK_OVERFLOW ec_sign(0x8000000000000010) 50 #define ENTRY_ERROR_VMM_INIT_FAILED ec_sign(0x8000000000000020) 51 #define ENTRY_ERROR_VMM_START_FAILED ec_sign(0x8000000000000030) 52 #define ENTRY_ERROR_VMM_STOP_FAILED ec_sign(0x8000000000000040) 53 #define ENTRY_ERROR_UNKNOWN ec_sign(0x8000000000000050) 59 #define CRT_SUCCESS ec_sign(SUCCESS) 60 #define CRT_FAILURE ec_sign(0x8000000000000100) 66 #define REGISTER_EH_FRAME_SUCCESS ec_sign(SUCCESS) 67 #define REGISTER_EH_FRAME_FAILURE ec_sign(0x8000000000001000) 73 #define GET_DRR_SUCCESS ec_sign(SUCCESS) 74 #define GET_DRR_FAILURE ec_sign(0x8000000000010000) 80 #define BFELF_SUCCESS ec_sign(SUCCESS) 81 #define BFELF_ERROR_INVALID_ARG ec_sign(0x8000000000100000) 82 #define BFELF_ERROR_INVALID_FILE ec_sign(0x8000000000200000) 83 #define BFELF_ERROR_INVALID_INDEX ec_sign(0x8000000000300000) 84 #define BFELF_ERROR_INVALID_SIGNATURE ec_sign(0x8000000000500000) 85 #define BFELF_ERROR_UNSUPPORTED_FILE ec_sign(0x8000000000600000) 86 #define BFELF_ERROR_INVALID_SEGMENT ec_sign(0x8000000000700000) 87 #define BFELF_ERROR_INVALID_SECTION ec_sign(0x8000000000800000) 88 #define BFELF_ERROR_LOADER_FULL ec_sign(0x8000000000900000) 89 #define BFELF_ERROR_NO_SUCH_SYMBOL ec_sign(0x8000000000A00000) 90 #define BFELF_ERROR_MISMATCH ec_sign(0x8000000000B00000) 91 #define BFELF_ERROR_UNSUPPORTED_RELA ec_sign(0x8000000000C00000) 92 #define BFELF_ERROR_OUT_OF_ORDER ec_sign(0x8000000000D00000) 98 #define MEMORY_MANAGER_SUCCESS ec_sign(SUCCESS) 99 #define MEMORY_MANAGER_FAILURE ec_sign(0x8000000001000000) 105 #define BF_SUCCESS ec_sign(SUCCESS) 106 #define BF_ERROR_INVALID_ARG ec_sign(0x8000000010000000) 107 #define BF_ERROR_INVALID_INDEX ec_sign(0x8000000020000000) 108 #define BF_ERROR_NO_MODULES_ADDED ec_sign(0x8000000030000000) 109 #define BF_ERROR_MAX_MODULES_REACHED ec_sign(0x8000000040000000) 110 #define BF_ERROR_VMM_INVALID_STATE ec_sign(0x8000000050000000) 111 #define BF_ERROR_FAILED_TO_ADD_FILE ec_sign(0x8000000060000000) 112 #define BF_ERROR_FAILED_TO_DUMP_DR ec_sign(0x8000000070000000) 113 #define BF_ERROR_OUT_OF_MEMORY ec_sign(0x8000000080000000) 114 #define BF_ERROR_VMM_CORRUPTED ec_sign(0x8000000090000000) 115 #define BF_ERROR_UNKNOWN ec_sign(0x80000000A0000000) 121 #define BF_IOCTL_SUCCESS ec_sign(SUCCESS) 122 #define BF_IOCTL_FAILURE ec_sign(-1) 128 #define BF_BAD_ALLOC ec_sign(0x8000000100000000) 134 #define BF_VMCALL_SUCCESS ec_sign(SUCCESS) 135 #define BF_VMCALL_FAILURE ec_sign(0x8000001000000000) 144 static inline const char *
145 ec_to_str(int64_t value)
185 return "UNDEFINED_ERROR_CODE";
#define BFELF_ERROR_UNSUPPORTED_RELA
#define ENTRY_ERROR_VMM_START_FAILED
#define BFELF_ERROR_INVALID_ARG
#define BFELF_ERROR_NO_SUCH_SYMBOL
#define BFELF_ERROR_INVALID_SECTION
#define BF_ERROR_FAILED_TO_DUMP_DR
#define BF_ERROR_VMM_INVALID_STATE
#define BF_ERROR_MAX_MODULES_REACHED
#define REGISTER_EH_FRAME_FAILURE
#define MEMORY_MANAGER_FAILURE
#define BFELF_ERROR_MISMATCH
#define BFELF_ERROR_INVALID_INDEX
#define BFELF_ERROR_UNSUPPORTED_FILE
#define BFELF_ERROR_OUT_OF_ORDER
#define ENTRY_ERROR_UNKNOWN
#define BFELF_ERROR_INVALID_FILE
#define BF_ERROR_INVALID_INDEX
#define BFELF_ERROR_INVALID_SEGMENT
#define BFELF_ERROR_LOADER_FULL
#define BFELF_ERROR_INVALID_SIGNATURE
#define BF_ERROR_OUT_OF_MEMORY
#define ENTRY_ERROR_STACK_OVERFLOW
#define BF_ERROR_NO_MODULES_ADDED
#define ENTRY_ERROR_VMM_STOP_FAILED
#define BF_ERROR_INVALID_ARG
#define BF_ERROR_FAILED_TO_ADD_FILE
#define BF_ERROR_VMM_CORRUPTED
#define ENTRY_ERROR_VMM_INIT_FAILED