2021-03-02 21:45:34 +03:00
|
|
|
// Copyright (c) Microsoft Corporation
|
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
#pragma once
|
|
|
|
|
2021-05-10 18:47:54 +03:00
|
|
|
#include <guiddef.h>
|
2021-04-26 22:16:20 +03:00
|
|
|
|
2021-03-02 21:45:34 +03:00
|
|
|
// This file contains eBPF definitions needed by eBPF programs as well as
|
|
|
|
// the verifier and execution context.
|
|
|
|
|
2021-05-04 01:17:10 +03:00
|
|
|
typedef GUID ebpf_program_type_t;
|
2021-05-10 18:47:54 +03:00
|
|
|
typedef GUID ebpf_attach_type_t;
|
2021-03-08 19:37:39 +03:00
|
|
|
|
2021-04-20 02:12:08 +03:00
|
|
|
typedef enum _ebpf_helper_function
|
|
|
|
{
|
2021-06-30 19:22:40 +03:00
|
|
|
EBPF_LOOKUP_ELEMENT = 1, ///< Look up a map element.
|
|
|
|
EBPF_UPDATE_ELEMENT = 2, ///< Update map element.
|
|
|
|
EBPF_DELETE_ELEMENT = 3, ///< Delete a map element.
|
2021-03-08 19:37:39 +03:00
|
|
|
} ebpf_helper_function_t;
|