8 #define WIN32_LEAN_AND_MEAN
15 win32_error_code_to_ebpf_result(uint32_t error)
24 case ERROR_OUTOFMEMORY:
25 case ERROR_NOT_ENOUGH_MEMORY:
29 case ERROR_PATH_NOT_FOUND:
37 case ERROR_INVALID_PARAMETER:
41 case ERROR_NO_MORE_ITEMS:
42 case ERROR_NO_MORE_MATCHES:
46 case ERROR_INVALID_HANDLE:
50 case ERROR_NOT_SUPPORTED:
58 case ERROR_FILE_NOT_FOUND:
62 case ERROR_ALREADY_INITIALIZED:
66 case ERROR_OBJECT_ALREADY_EXISTS:
70 case ERROR_IO_PENDING:
74 case ERROR_VERIFIER_STOP:
78 case ERROR_NONE_MAPPED:
82 case ERROR_BAD_DRIVER:
86 case ERROR_INVALID_FUNCTION:
90 case ERROR_OBJECT_NAME_EXISTS:
94 case ERROR_TOO_MANY_CMDS:
98 case RPC_S_CALL_FAILED:
102 case ERROR_BAD_EXE_FORMAT:
106 case ERROR_ACCESS_DENIED:
110 case ERROR_NOT_OWNER:
114 case ERROR_CONTENT_BLOCKED:
118 case ERROR_ARITHMETIC_OVERFLOW:
122 case ERROR_GENERIC_COMMAND_FAILED:
126 case ERROR_ALREADY_REGISTERED:
129 case ERROR_INTERNAL_ERROR:
133 case ERROR_TOO_MANY_NAMES:
137 case ERROR_NO_SYSTEM_RESOURCES:
141 case ERROR_OPERATION_ABORTED:
153 case ERROR_BAD_COMMAND:
157 case ERROR_INVALID_STATE:
@ EBPF_KEY_NOT_FOUND
The requested key was not found.
Definition: ebpf_result.h:75
@ EBPF_ALREADY_INITIALIZED
The handle was already initialized.
Definition: ebpf_result.h:63
@ EBPF_NO_MORE_KEYS
The enumeration found no more keys.
Definition: ebpf_result.h:93
@ EBPF_INVALID_OBJECT
Invalid object provided (ebpf_object, ebpf_map, ebpf_program).
Definition: ebpf_result.h:33
@ EBPF_INSUFFICIENT_BUFFER
A buffer of insufficient size was supplied.
Definition: ebpf_result.h:90
@ EBPF_BLOCKED_BY_POLICY
The operation was blocked for all requesters by policy.
Definition: ebpf_result.h:81
@ EBPF_FAILED
Generic failure code for all other errors.
Definition: ebpf_result.h:69
@ EBPF_OBJECT_NOT_FOUND
No pinned map or program exists for the path provided.
Definition: ebpf_result.h:39
@ EBPF_JIT_COMPILATION_FAILED
JIT compilation failed.
Definition: ebpf_result.h:24
@ EBPF_EXTENSION_FAILED_TO_LOAD
The eBPF extension failed to load.
Definition: ebpf_result.h:87
@ EBPF_INVALID_POINTER
Invalid pointer.
Definition: ebpf_result.h:111
@ EBPF_ACCESS_DENIED
Access was denied for the requested operation.
Definition: ebpf_result.h:78
@ EBPF_OPERATION_NOT_SUPPORTED
Operation is not supported.
Definition: ebpf_result.h:72
@ EBPF_NO_MEMORY
Low memory.
Definition: ebpf_result.h:54
@ EBPF_OUT_OF_SPACE
The container can not hold additional elements.
Definition: ebpf_result.h:105
@ EBPF_ALREADY_PINNED
The program or map already pinned to a different path.
Definition: ebpf_result.h:48
@ EBPF_FILE_NOT_FOUND
Invalid ELF file path.
Definition: ebpf_result.h:45
@ EBPF_SUCCESS
The operation was successful.
Definition: ebpf_result.h:18
@ EBPF_PROGRAM_TOO_LARGE
The program is too large.
Definition: ebpf_result.h:57
@ EBPF_PENDING
Requested action is still pending.
Definition: ebpf_result.h:102
@ EBPF_ARITHMETIC_OVERFLOW
Arithmetic overflow occurred.
Definition: ebpf_result.h:84
@ EBPF_OBJECT_ALREADY_EXISTS
A program or map is already pinned with the same path.
Definition: ebpf_result.h:42
@ EBPF_INVALID_ARGUMENT
An invalid argument was supplied.
Definition: ebpf_result.h:36
@ EBPF_RPC_EXCEPTION
An RPC exception occurred.
Definition: ebpf_result.h:60
@ EBPF_PROGRAM_LOAD_FAILED
Program load failed.
Definition: ebpf_result.h:27
@ EBPF_NO_MORE_TAIL_CALLS
Caller has reached tail call limit.
Definition: ebpf_result.h:99
@ EBPF_TIMEOUT
Operation timed out.
Definition: ebpf_result.h:114
@ EBPF_STALE_ID
ID is valid, but the object has been deleted.
Definition: ebpf_result.h:117
@ EBPF_INVALID_FD
Invalid FD provided.
Definition: ebpf_result.h:30
@ EBPF_CANCELED
Operation was canceled.
Definition: ebpf_result.h:108
@ EBPF_VERIFICATION_FAILED
Program verification failed.
Definition: ebpf_result.h:21
@ EBPF_ELF_PARSING_FAILED
A failure occurred in parsing the ELF file.
Definition: ebpf_result.h:66
@ EBPF_INVALID_STATE
The system is in an invalid state for this operation.
Definition: ebpf_result.h:120
@ EBPF_NOT_PINNED
The program or map is not pinned.
Definition: ebpf_result.h:51
@ EBPF_KEY_ALREADY_EXISTS
The requested key is already present.
Definition: ebpf_result.h:96
enum ebpf_result ebpf_result_t
_When_(error !=ERROR_SUCCESS, _Ret_range_(1, 65535)) __forceinline ebpf_result_t win32_error_code_to_ebpf_result(uint32_t error)
Definition: ebpf_utilities.h:14