eBPF for Windows
Macros | Typedefs | Enumerations
ebpf_result.h File Reference
#include <sal.h>

Go to the source code of this file.

Macros

#define EBPF_RESULT_COUNT   (EBPF_INVALID_STATE + 1)
 

Typedefs

typedef enum ebpf_result ebpf_result_t
 

Enumerations

enum  ebpf_result {
  EBPF_SUCCESS , EBPF_VERIFICATION_FAILED , EBPF_JIT_COMPILATION_FAILED , EBPF_PROGRAM_LOAD_FAILED ,
  EBPF_INVALID_FD , EBPF_INVALID_OBJECT , EBPF_INVALID_ARGUMENT , EBPF_OBJECT_NOT_FOUND ,
  EBPF_OBJECT_ALREADY_EXISTS , EBPF_FILE_NOT_FOUND , EBPF_ALREADY_PINNED , EBPF_NOT_PINNED ,
  EBPF_NO_MEMORY , EBPF_PROGRAM_TOO_LARGE , EBPF_RPC_EXCEPTION , EBPF_ALREADY_INITIALIZED ,
  EBPF_ELF_PARSING_FAILED , EBPF_FAILED , EBPF_OPERATION_NOT_SUPPORTED , EBPF_KEY_NOT_FOUND ,
  EBPF_ACCESS_DENIED , EBPF_BLOCKED_BY_POLICY , EBPF_ARITHMETIC_OVERFLOW , EBPF_EXTENSION_FAILED_TO_LOAD ,
  EBPF_INSUFFICIENT_BUFFER , EBPF_NO_MORE_KEYS , EBPF_KEY_ALREADY_EXISTS , EBPF_NO_MORE_TAIL_CALLS ,
  EBPF_PENDING , EBPF_OUT_OF_SPACE , EBPF_CANCELED , EBPF_INVALID_POINTER ,
  EBPF_TIMEOUT , EBPF_STALE_ID , EBPF_INVALID_STATE
}
 

Macro Definition Documentation

◆ EBPF_RESULT_COUNT

#define EBPF_RESULT_COUNT   (EBPF_INVALID_STATE + 1)

Typedef Documentation

◆ ebpf_result_t

typedef enum ebpf_result ebpf_result_t

Enumeration Type Documentation

◆ ebpf_result

Enumerator
EBPF_SUCCESS 

The operation was successful.

EBPF_VERIFICATION_FAILED 

Program verification failed.

EBPF_JIT_COMPILATION_FAILED 

JIT compilation failed.

EBPF_PROGRAM_LOAD_FAILED 

Program load failed.

EBPF_INVALID_FD 

Invalid FD provided.

EBPF_INVALID_OBJECT 

Invalid object provided (ebpf_object, ebpf_map, ebpf_program).

EBPF_INVALID_ARGUMENT 

An invalid argument was supplied.

EBPF_OBJECT_NOT_FOUND 

No pinned map or program exists for the path provided.

EBPF_OBJECT_ALREADY_EXISTS 

A program or map is already pinned with the same path.

EBPF_FILE_NOT_FOUND 

Invalid ELF file path.

EBPF_ALREADY_PINNED 

The program or map already pinned to a different path.

EBPF_NOT_PINNED 

The program or map is not pinned.

EBPF_NO_MEMORY 

Low memory.

EBPF_PROGRAM_TOO_LARGE 

The program is too large.

EBPF_RPC_EXCEPTION 

An RPC exception occurred.

EBPF_ALREADY_INITIALIZED 

The handle was already initialized.

EBPF_ELF_PARSING_FAILED 

A failure occurred in parsing the ELF file.

EBPF_FAILED 

Generic failure code for all other errors.

EBPF_OPERATION_NOT_SUPPORTED 

Operation is not supported.

EBPF_KEY_NOT_FOUND 

The requested key was not found.

EBPF_ACCESS_DENIED 

Access was denied for the requested operation.

EBPF_BLOCKED_BY_POLICY 

The operation was blocked for all requesters by policy.

EBPF_ARITHMETIC_OVERFLOW 

Arithmetic overflow occurred.

EBPF_EXTENSION_FAILED_TO_LOAD 

The eBPF extension failed to load.

EBPF_INSUFFICIENT_BUFFER 

A buffer of insufficient size was supplied.

EBPF_NO_MORE_KEYS 

The enumeration found no more keys.

EBPF_KEY_ALREADY_EXISTS 

The requested key is already present.

EBPF_NO_MORE_TAIL_CALLS 

Caller has reached tail call limit.

EBPF_PENDING 

Requested action is still pending.

EBPF_OUT_OF_SPACE 

The container can not hold additional elements.

EBPF_CANCELED 

Operation was canceled.

EBPF_INVALID_POINTER 

Invalid pointer.

EBPF_TIMEOUT 

Operation timed out.

EBPF_STALE_ID 

ID is valid, but the object has been deleted.

EBPF_INVALID_STATE 

The system is in an invalid state for this operation.