Macros
error_codes.h File Reference

Go to the source code of this file.

Macros

#define ec_sign(a)   ((int64_t)(a))
 
#define SUCCESS   0
 
#define ENTRY_SUCCESS   ec_sign(SUCCESS)
 
#define ENTRY_ERROR_STACK_OVERFLOW   ec_sign(0x8000000000000010)
 
#define ENTRY_ERROR_VMM_INIT_FAILED   ec_sign(0x8000000000000020)
 
#define ENTRY_ERROR_VMM_START_FAILED   ec_sign(0x8000000000000030)
 
#define ENTRY_ERROR_VMM_STOP_FAILED   ec_sign(0x8000000000000040)
 
#define ENTRY_ERROR_UNKNOWN   ec_sign(0x8000000000000050)
 
#define CRT_SUCCESS   ec_sign(SUCCESS)
 
#define CRT_FAILURE   ec_sign(0x8000000000000100)
 
#define REGISTER_EH_FRAME_SUCCESS   ec_sign(SUCCESS)
 
#define REGISTER_EH_FRAME_FAILURE   ec_sign(0x8000000000001000)
 
#define GET_DRR_SUCCESS   ec_sign(SUCCESS)
 
#define GET_DRR_FAILURE   ec_sign(0x8000000000010000)
 
#define BFELF_SUCCESS   ec_sign(SUCCESS)
 
#define BFELF_ERROR_INVALID_ARG   ec_sign(0x8000000000100000)
 
#define BFELF_ERROR_INVALID_FILE   ec_sign(0x8000000000200000)
 
#define BFELF_ERROR_INVALID_INDEX   ec_sign(0x8000000000300000)
 
#define BFELF_ERROR_INVALID_SIGNATURE   ec_sign(0x8000000000500000)
 
#define BFELF_ERROR_UNSUPPORTED_FILE   ec_sign(0x8000000000600000)
 
#define BFELF_ERROR_INVALID_SEGMENT   ec_sign(0x8000000000700000)
 
#define BFELF_ERROR_INVALID_SECTION   ec_sign(0x8000000000800000)
 
#define BFELF_ERROR_LOADER_FULL   ec_sign(0x8000000000900000)
 
#define BFELF_ERROR_NO_SUCH_SYMBOL   ec_sign(0x8000000000A00000)
 
#define BFELF_ERROR_MISMATCH   ec_sign(0x8000000000B00000)
 
#define BFELF_ERROR_UNSUPPORTED_RELA   ec_sign(0x8000000000C00000)
 
#define BFELF_ERROR_OUT_OF_ORDER   ec_sign(0x8000000000D00000)
 
#define MEMORY_MANAGER_SUCCESS   ec_sign(SUCCESS)
 
#define MEMORY_MANAGER_FAILURE   ec_sign(0x8000000001000000)
 
#define BF_SUCCESS   ec_sign(SUCCESS)
 
#define BF_ERROR_INVALID_ARG   ec_sign(0x8000000010000000)
 
#define BF_ERROR_INVALID_INDEX   ec_sign(0x8000000020000000)
 
#define BF_ERROR_NO_MODULES_ADDED   ec_sign(0x8000000030000000)
 
#define BF_ERROR_MAX_MODULES_REACHED   ec_sign(0x8000000040000000)
 
#define BF_ERROR_VMM_INVALID_STATE   ec_sign(0x8000000050000000)
 
#define BF_ERROR_FAILED_TO_ADD_FILE   ec_sign(0x8000000060000000)
 
#define BF_ERROR_FAILED_TO_DUMP_DR   ec_sign(0x8000000070000000)
 
#define BF_ERROR_OUT_OF_MEMORY   ec_sign(0x8000000080000000)
 
#define BF_ERROR_VMM_CORRUPTED   ec_sign(0x8000000090000000)
 
#define BF_ERROR_UNKNOWN   ec_sign(0x80000000A0000000)
 
#define BF_IOCTL_SUCCESS   ec_sign(SUCCESS)
 
#define BF_IOCTL_FAILURE   ec_sign(-1)
 
#define BF_BAD_ALLOC   ec_sign(0x8000000100000000)
 
#define BF_VMCALL_SUCCESS   ec_sign(SUCCESS)
 
#define BF_VMCALL_FAILURE   ec_sign(0x8000001000000000)
 
#define EC_CASE(a)   case a: return #a
 

Macro Definition Documentation

◆ ec_sign

#define ec_sign (   a)    ((int64_t)(a))

Definition at line 35 of file error_codes.h.

◆ SUCCESS

#define SUCCESS   0

Definition at line 42 of file error_codes.h.

◆ ENTRY_SUCCESS

#define ENTRY_SUCCESS   ec_sign(SUCCESS)

Definition at line 48 of file error_codes.h.

◆ ENTRY_ERROR_STACK_OVERFLOW

#define ENTRY_ERROR_STACK_OVERFLOW   ec_sign(0x8000000000000010)

Definition at line 49 of file error_codes.h.

◆ ENTRY_ERROR_VMM_INIT_FAILED

#define ENTRY_ERROR_VMM_INIT_FAILED   ec_sign(0x8000000000000020)

Definition at line 50 of file error_codes.h.

◆ ENTRY_ERROR_VMM_START_FAILED

#define ENTRY_ERROR_VMM_START_FAILED   ec_sign(0x8000000000000030)

Definition at line 51 of file error_codes.h.

◆ ENTRY_ERROR_VMM_STOP_FAILED

#define ENTRY_ERROR_VMM_STOP_FAILED   ec_sign(0x8000000000000040)

Definition at line 52 of file error_codes.h.

◆ ENTRY_ERROR_UNKNOWN

#define ENTRY_ERROR_UNKNOWN   ec_sign(0x8000000000000050)

Definition at line 53 of file error_codes.h.

◆ CRT_SUCCESS

#define CRT_SUCCESS   ec_sign(SUCCESS)

Definition at line 59 of file error_codes.h.

◆ CRT_FAILURE

#define CRT_FAILURE   ec_sign(0x8000000000000100)

Definition at line 60 of file error_codes.h.

◆ REGISTER_EH_FRAME_SUCCESS

#define REGISTER_EH_FRAME_SUCCESS   ec_sign(SUCCESS)

Definition at line 66 of file error_codes.h.

◆ REGISTER_EH_FRAME_FAILURE

#define REGISTER_EH_FRAME_FAILURE   ec_sign(0x8000000000001000)

Definition at line 67 of file error_codes.h.

◆ GET_DRR_SUCCESS

#define GET_DRR_SUCCESS   ec_sign(SUCCESS)

Definition at line 73 of file error_codes.h.

◆ GET_DRR_FAILURE

#define GET_DRR_FAILURE   ec_sign(0x8000000000010000)

Definition at line 74 of file error_codes.h.

◆ BFELF_SUCCESS

#define BFELF_SUCCESS   ec_sign(SUCCESS)

Definition at line 80 of file error_codes.h.

◆ BFELF_ERROR_INVALID_ARG

#define BFELF_ERROR_INVALID_ARG   ec_sign(0x8000000000100000)

Definition at line 81 of file error_codes.h.

◆ BFELF_ERROR_INVALID_FILE

#define BFELF_ERROR_INVALID_FILE   ec_sign(0x8000000000200000)

Definition at line 82 of file error_codes.h.

◆ BFELF_ERROR_INVALID_INDEX

#define BFELF_ERROR_INVALID_INDEX   ec_sign(0x8000000000300000)

Definition at line 83 of file error_codes.h.

◆ BFELF_ERROR_INVALID_SIGNATURE

#define BFELF_ERROR_INVALID_SIGNATURE   ec_sign(0x8000000000500000)

Definition at line 84 of file error_codes.h.

◆ BFELF_ERROR_UNSUPPORTED_FILE

#define BFELF_ERROR_UNSUPPORTED_FILE   ec_sign(0x8000000000600000)

Definition at line 85 of file error_codes.h.

◆ BFELF_ERROR_INVALID_SEGMENT

#define BFELF_ERROR_INVALID_SEGMENT   ec_sign(0x8000000000700000)

Definition at line 86 of file error_codes.h.

◆ BFELF_ERROR_INVALID_SECTION

#define BFELF_ERROR_INVALID_SECTION   ec_sign(0x8000000000800000)

Definition at line 87 of file error_codes.h.

◆ BFELF_ERROR_LOADER_FULL

#define BFELF_ERROR_LOADER_FULL   ec_sign(0x8000000000900000)

Definition at line 88 of file error_codes.h.

◆ BFELF_ERROR_NO_SUCH_SYMBOL

#define BFELF_ERROR_NO_SUCH_SYMBOL   ec_sign(0x8000000000A00000)

Definition at line 89 of file error_codes.h.

◆ BFELF_ERROR_MISMATCH

#define BFELF_ERROR_MISMATCH   ec_sign(0x8000000000B00000)

Definition at line 90 of file error_codes.h.

◆ BFELF_ERROR_UNSUPPORTED_RELA

#define BFELF_ERROR_UNSUPPORTED_RELA   ec_sign(0x8000000000C00000)

Definition at line 91 of file error_codes.h.

◆ BFELF_ERROR_OUT_OF_ORDER

#define BFELF_ERROR_OUT_OF_ORDER   ec_sign(0x8000000000D00000)

Definition at line 92 of file error_codes.h.

◆ MEMORY_MANAGER_SUCCESS

#define MEMORY_MANAGER_SUCCESS   ec_sign(SUCCESS)

Definition at line 98 of file error_codes.h.

◆ MEMORY_MANAGER_FAILURE

#define MEMORY_MANAGER_FAILURE   ec_sign(0x8000000001000000)

Definition at line 99 of file error_codes.h.

◆ BF_SUCCESS

#define BF_SUCCESS   ec_sign(SUCCESS)

Definition at line 105 of file error_codes.h.

◆ BF_ERROR_INVALID_ARG

#define BF_ERROR_INVALID_ARG   ec_sign(0x8000000010000000)

Definition at line 106 of file error_codes.h.

◆ BF_ERROR_INVALID_INDEX

#define BF_ERROR_INVALID_INDEX   ec_sign(0x8000000020000000)

Definition at line 107 of file error_codes.h.

◆ BF_ERROR_NO_MODULES_ADDED

#define BF_ERROR_NO_MODULES_ADDED   ec_sign(0x8000000030000000)

Definition at line 108 of file error_codes.h.

◆ BF_ERROR_MAX_MODULES_REACHED

#define BF_ERROR_MAX_MODULES_REACHED   ec_sign(0x8000000040000000)

Definition at line 109 of file error_codes.h.

◆ BF_ERROR_VMM_INVALID_STATE

#define BF_ERROR_VMM_INVALID_STATE   ec_sign(0x8000000050000000)

Definition at line 110 of file error_codes.h.

◆ BF_ERROR_FAILED_TO_ADD_FILE

#define BF_ERROR_FAILED_TO_ADD_FILE   ec_sign(0x8000000060000000)

Definition at line 111 of file error_codes.h.

◆ BF_ERROR_FAILED_TO_DUMP_DR

#define BF_ERROR_FAILED_TO_DUMP_DR   ec_sign(0x8000000070000000)

Definition at line 112 of file error_codes.h.

◆ BF_ERROR_OUT_OF_MEMORY

#define BF_ERROR_OUT_OF_MEMORY   ec_sign(0x8000000080000000)

Definition at line 113 of file error_codes.h.

◆ BF_ERROR_VMM_CORRUPTED

#define BF_ERROR_VMM_CORRUPTED   ec_sign(0x8000000090000000)

Definition at line 114 of file error_codes.h.

◆ BF_ERROR_UNKNOWN

#define BF_ERROR_UNKNOWN   ec_sign(0x80000000A0000000)

Definition at line 115 of file error_codes.h.

◆ BF_IOCTL_SUCCESS

#define BF_IOCTL_SUCCESS   ec_sign(SUCCESS)

Definition at line 121 of file error_codes.h.

◆ BF_IOCTL_FAILURE

#define BF_IOCTL_FAILURE   ec_sign(-1)

Definition at line 122 of file error_codes.h.

◆ BF_BAD_ALLOC

#define BF_BAD_ALLOC   ec_sign(0x8000000100000000)

Definition at line 128 of file error_codes.h.

◆ BF_VMCALL_SUCCESS

#define BF_VMCALL_SUCCESS   ec_sign(SUCCESS)

Definition at line 134 of file error_codes.h.

◆ BF_VMCALL_FAILURE

#define BF_VMCALL_FAILURE   ec_sign(0x8000001000000000)

Definition at line 135 of file error_codes.h.

◆ EC_CASE

#define EC_CASE (   a)    case a: return #a

Definition at line 141 of file error_codes.h.