From 0f1c676437ce639037ad80a7baa42d980e3c4b58 Mon Sep 17 00:00:00 2001 From: Github Action Date: Tue, 3 Dec 2024 01:55:35 +0000 Subject: [PATCH] Updated documentation Signed-off-by: Github Action --- bpf_2bpf_8h_source.html | 2 +- bpf__helper__defs_8h.html | 46 +++ bpf__helper__defs_8h_source.html | 12 + bpf__legacy_8h_source.html | 4 +- ebpf__extension_8h_source.html | 4 +- ebpf__structs_8h.html | 6 + ebpf__structs_8h_source.html | 390 ++++++++++++----------- globals_b.html | 64 ++-- globals_eval.html | 6 + globals_func.html | 6 + libbpf_8h_source.html | 6 +- libbpf__legacy_8h_source.html | 2 +- linux_2bpf_8h_source.html | 4 +- search/all_10.js | 38 +-- search/all_11.js | 72 ++--- search/all_12.js | 44 +-- search/all_13.js | 24 +- search/all_14.js | 16 +- search/all_15.js | 4 +- search/all_16.js | 4 +- search/all_17.js | 2 +- search/all_2.js | 464 +++++++++++++-------------- search/all_3.js | 44 +-- search/all_4.js | 36 +-- search/all_5.js | 530 +++++++++++++++---------------- search/all_6.js | 22 +- search/all_7.js | 8 +- search/all_8.js | 44 +-- search/all_9.js | 56 ++-- search/all_a.js | 6 +- search/all_b.js | 62 ++-- search/all_c.js | 56 ++-- search/all_d.js | 24 +- search/all_e.js | 14 +- search/all_f.js | 82 ++--- search/classes_0.js | 64 ++-- search/classes_1.js | 16 +- search/classes_2.js | 2 +- search/classes_3.js | 24 +- search/classes_4.js | 2 +- search/classes_5.js | 2 +- search/defines_0.js | 46 +-- search/defines_1.js | 4 +- search/defines_10.js | 2 +- search/defines_2.js | 34 +- search/defines_3.js | 2 +- search/defines_4.js | 168 +++++----- search/defines_5.js | 2 +- search/defines_6.js | 2 +- search/defines_7.js | 18 +- search/defines_8.js | 12 +- search/defines_9.js | 2 +- search/defines_a.js | 6 +- search/defines_b.js | 2 +- search/defines_c.js | 2 +- search/defines_d.js | 4 +- search/defines_e.js | 2 +- search/defines_f.js | 2 +- search/enums_0.js | 14 +- search/enums_1.js | 14 +- search/enums_2.js | 10 +- search/enumvalues_0.js | 2 +- search/enumvalues_1.js | 202 ++++++------ search/enumvalues_2.js | 100 +++--- search/enumvalues_3.js | 4 +- search/files_0.js | 14 +- search/files_1.js | 30 +- search/files_2.js | 2 +- search/files_3.js | 6 +- search/files_4.js | 4 +- search/files_5.js | 2 +- search/files_6.js | 2 +- search/files_7.js | 2 +- search/files_8.js | 4 +- search/files_9.js | 2 +- search/functions_0.js | 10 +- search/functions_1.js | 242 +++++++------- search/functions_2.js | 76 ++--- search/functions_3.js | 18 +- search/functions_4.js | 4 +- search/functions_5.js | 6 +- search/pages_0.js | 2 +- search/typedefs_0.js | 22 +- search/typedefs_1.js | 20 +- search/typedefs_2.js | 80 ++--- search/typedefs_3.js | 2 +- search/typedefs_4.js | 2 +- search/typedefs_5.js | 4 +- search/typedefs_6.js | 6 +- search/typedefs_7.js | 8 +- search/typedefs_8.js | 12 +- search/typedefs_9.js | 6 +- search/typedefs_a.js | 8 +- search/variables_0.js | 6 +- search/variables_1.js | 26 +- search/variables_10.js | 34 +- search/variables_11.js | 30 +- search/variables_12.js | 38 +-- search/variables_13.js | 10 +- search/variables_14.js | 16 +- search/variables_15.js | 2 +- search/variables_16.js | 2 +- search/variables_17.js | 2 +- search/variables_2.js | 20 +- search/variables_3.js | 44 +-- search/variables_4.js | 32 +- search/variables_5.js | 64 ++-- search/variables_6.js | 18 +- search/variables_7.js | 4 +- search/variables_8.js | 20 +- search/variables_9.js | 32 +- search/variables_a.js | 6 +- search/variables_b.js | 36 +-- search/variables_c.js | 44 +-- search/variables_d.js | 18 +- search/variables_e.js | 12 +- search/variables_f.js | 66 ++-- 117 files changed, 2124 insertions(+), 2024 deletions(-) diff --git a/bpf_2bpf_8h_source.html b/bpf_2bpf_8h_source.html index d653d32805..0972cd802c 100644 --- a/bpf_2bpf_8h_source.html +++ b/bpf_2bpf_8h_source.html @@ -191,7 +191,7 @@
int bpf_map_lookup_batch(int fd, void *in_batch, void *out_batch, void *keys, void *values, __u32 *count, const struct bpf_map_batch_opts *opts)
bpf_map_lookup_batch() allows for batch lookup of BPF map elements.
int bpf_prog_get_fd_by_id(__u32 id)
Get a file descriptor referring to a program with a given ID.
-
bpf_prog_type
Definition: ebpf_structs.h:171
+
bpf_prog_type
Definition: ebpf_structs.h:173
bpf_map_type
Definition: ebpf_structs.h:18
uint32_t __u32
Definition: types.h:6
uint64_t __u64
Definition: types.h:7
diff --git a/bpf__helper__defs_8h.html b/bpf__helper__defs_8h.html index 8b999e8db2..955cd1024b 100644 --- a/bpf__helper__defs_8h.html +++ b/bpf__helper__defs_8h.html @@ -169,6 +169,12 @@ size_t bpf_strnlen_s (const char *str, size_t str_size)  Find the length of a string, up to a certain number of characters. More...
  +uint64_t bpf_ktime_get_boot_ms () + Return time elapsed since boot in milliseconds including time while suspended. This function uses a lower resolution clock source than bpf_ktime_get_boot_ns, but is faster. More...
+  +uint64_t bpf_ktime_get_ms () + Return time elapsed since boot in milliseconds excluding time while suspended. This function uses a lower resolution clock source than bpf_ktime_get_ns, but is faster. More...

Function Documentation

@@ -376,6 +382,26 @@

+

◆ bpf_ktime_get_boot_ms()

+ +
+
+ + + + + + + +
uint64_t bpf_ktime_get_boot_ms ()
+
+ +

Return time elapsed since boot in milliseconds including time while suspended. This function uses a lower resolution clock source than bpf_ktime_get_boot_ns, but is faster.

+
Returns
Time elapsed since boot in milliseconds.
+
@@ -396,6 +422,26 @@

Returns
Time elapsed since boot in nanosecond units.
+ + +
+

◆ bpf_ktime_get_ms()

+ +
+
+ + + + + + + +
uint64_t bpf_ktime_get_ms ()
+
+ +

Return time elapsed since boot in milliseconds excluding time while suspended. This function uses a lower resolution clock source than bpf_ktime_get_ns, but is faster.

+
Returns
Time elapsed since boot in milliseconds.
+
diff --git a/bpf__helper__defs_8h_source.html b/bpf__helper__defs_8h_source.html index f6816c99c6..113edb6e23 100644 --- a/bpf__helper__defs_8h_source.html +++ b/bpf__helper__defs_8h_source.html @@ -261,6 +261,16 @@
473 #define memcpy_s bpf_memcpy
474 #define memmove_s bpf_memmove
475 #endif
+
476 
+
483 EBPF_HELPER(uint64_t, bpf_ktime_get_boot_ms, ());
+
484 #ifndef __doxygen
+
485 #define bpf_ktime_get_boot_ms ((bpf_ktime_get_boot_ms_t)BPF_FUNC_ktime_get_boot_ms)
+
486 #endif
+
487 
+
494 EBPF_HELPER(uint64_t, bpf_ktime_get_ms, ());
+
495 #ifndef __doxygen
+
496 #define bpf_ktime_get_ms ((bpf_ktime_get_ms_t)BPF_FUNC_ktime_get_ms)
+
497 #endif
int bpf_ringbuf_output(void *ring_buffer, void *data, uint64_t size, uint64_t flags)
Copy data into the ring buffer map.
int64_t bpf_map_delete_elem(void *map, void *key)
Remove an entry from the map.
int bpf_strncpy_s(char *dest, size_t dest_size, const char *src, size_t count)
Copy a string into a buffer, of a fixed size.
@@ -277,6 +287,7 @@
uint64_t bpf_get_current_logon_id(const void *ctx)
Get the 64-bit logon ID of the current thread. In case of sock_addr attach types, get the logon ID of...
int64_t bpf_tail_call(void *ctx, void *prog_array_map, uint32_t index)
Perform a tail call into another eBPF program.
long bpf_trace_printk4(const char *fmt, uint32_t fmt_size, uint64_t arg3, uint64_t arg4)
Print debug output.
+
uint64_t bpf_ktime_get_boot_ms()
Return time elapsed since boot in milliseconds including time while suspended. This function uses a l...
long bpf_memmove(void *destination, uint32_t destination_size, const void *source, uint32_t source_size)
Copy memory from one location to another, handling overlapping regions.
int64_t bpf_map_pop_elem(void *map, void *value)
Copy an entry from the map and remove it from the map (only valid for stack and queue)....
long bpf_trace_printk3(const char *fmt, uint32_t fmt_size, uint64_t arg3)
Print debug output.
@@ -286,6 +297,7 @@
int bpf_memcmp(const void *memory1, uint32_t memory1_size, const void *memory2, uint32_t memory2_size)
Compare two memory regions.
long bpf_printk(const char *fmt,...)
Print debug output. For instructions on viewing the output, see the Using tracing section of the Gett...
void * bpf_map_lookup_elem(void *map, void *key)
Get a pointer to an entry in the map.
+
uint64_t bpf_ktime_get_ms()
Return time elapsed since boot in milliseconds excluding time while suspended. This function uses a l...
uint32_t bpf_get_prandom_u32()
Get a pseudo-random number.
uint64_t bpf_get_smp_processor_id()
Return SMP id of the processor running the program.
int64_t bpf_map_peek_elem(void *map, void *value)
Copy an entry from the map (only valid for stack and queue). Queue peeks at the beginning of the map....
diff --git a/bpf__legacy_8h_source.html b/bpf__legacy_8h_source.html index 215ef839ff..793f65bb58 100644 --- a/bpf__legacy_8h_source.html +++ b/bpf__legacy_8h_source.html @@ -156,8 +156,8 @@
int bpf_create_map_in_map(enum bpf_map_type map_type, const char *name, int key_size, int inner_map_fd, int max_entries, __u32 map_flags)
Create a new map-in-map.
int bpf_load_program(enum bpf_prog_type type, const struct bpf_insn *insns, size_t insns_cnt, const char *license, __u32 kern_version, char *log_buf, size_t log_buf_sz)
Load (but do not attach) an eBPF program from eBPF instructions supplied by the caller.
int bpf_load_program_xattr(const struct bpf_load_program_attr *load_attr, char *log_buf, size_t log_buf_sz)
Load (but do not attach) an eBPF program from eBPF instructions supplied by the caller.
-
bpf_prog_type
Definition: ebpf_structs.h:171
-
bpf_attach_type
Definition: ebpf_structs.h:261
+
bpf_prog_type
Definition: ebpf_structs.h:173
+
bpf_attach_type
Definition: ebpf_structs.h:263
bpf_map_type
Definition: ebpf_structs.h:18
Definition: bpf_legacy.h:16
diff --git a/ebpf__extension_8h_source.html b/ebpf__extension_8h_source.html index cf4b4d69c0..90cc9c67ee 100644 --- a/ebpf__extension_8h_source.html +++ b/ebpf__extension_8h_source.html @@ -174,8 +174,8 @@
enum ebpf_result ebpf_result_t
This file contains eBPF definitions common to eBPF programs, core execution engine as well as eBPF AP...
-
bpf_link_type
Definition: ebpf_structs.h:247
-
enum bpf_attach_type bpf_attach_type_t
Definition: ebpf_structs.h:325
+
bpf_link_type
Definition: ebpf_structs.h:249
+
enum bpf_attach_type bpf_attach_type_t
Definition: ebpf_structs.h:327
GUID ebpf_program_type_t
Definition: ebpf_windows.h:61
Definition: ebpf_extension.h:101
diff --git a/ebpf__structs_8h.html b/ebpf__structs_8h.html index ed2a3cb2ce..02df0b711f 100644 --- a/ebpf__structs_8h.html +++ b/ebpf__structs_8h.html @@ -212,6 +212,8 @@ , BPF_FUNC_strncat_s = 28 ,
  BPF_FUNC_strnlen_s = 29 +, BPF_FUNC_ktime_get_boot_ms = 30 +, BPF_FUNC_ktime_get_ms = 31
}   @@ -744,6 +746,10 @@

BPF_FUNC_strnlen_s 

bpf_strnlen_s

+BPF_FUNC_ktime_get_boot_ms 

bpf_ktime_get_boot_ms

+ +BPF_FUNC_ktime_get_ms 

bpf_ktime_get_ms

+ diff --git a/ebpf__structs_8h_source.html b/ebpf__structs_8h_source.html index d48b4727cf..4dd70220e9 100644 --- a/ebpf__structs_8h_source.html +++ b/ebpf__structs_8h_source.html @@ -211,160 +211,162 @@ - -
168 
-
169 // Cross-platform BPF program types.
- -
171 {
- -
173 
- -
183 
-
192  BPF_PROG_TYPE_BIND, // TODO(#333): replace with cross-platform program type
-
193 
- -
207 
- -
218 
- -
228 
- -
237 };
-
238 
-
239 typedef enum bpf_prog_type bpf_prog_type_t;
+ + + +
170 
+
171 // Cross-platform BPF program types.
+ +
173 {
+ +
175 
+ +
185 
+
194  BPF_PROG_TYPE_BIND, // TODO(#333): replace with cross-platform program type
+
195 
+ +
209 
+ +
220 
+ +
230 
+ +
239 };
240 
-
241 #define XDP_FLAGS_REPLACE 0x01
+
241 typedef enum bpf_prog_type bpf_prog_type_t;
242 
-
243 // The link type is used to tell which union member is present
-
244 // in the bpf_link_info struct. There is exactly one non-zero value
-
245 // per union member.
- -
247 {
- - - - - -
253 };
-
254 
-
255 static const char* const _ebpf_link_display_names[] = {
-
256  "unspec",
-
257  "plain",
-
258 };
-
259 
- -
261 {
- -
263 
- -
269 
- -
275 
- -
282 
- -
289 
- -
296 
- -
303 
- -
309 
- -
315 
- -
321 
- -
323 };
-
324 
- +
243 #define XDP_FLAGS_REPLACE 0x01
+
244 
+
245 // The link type is used to tell which union member is present
+
246 // in the bpf_link_info struct. There is exactly one non-zero value
+
247 // per union member.
+ +
249 {
+ + + + + +
255 };
+
256 
+
257 static const char* const _ebpf_link_display_names[] = {
+
258  "unspec",
+
259  "plain",
+
260 };
+
261 
+ +
263 {
+ +
265 
+ +
271 
+ +
277 
+ +
284 
+ +
291 
+ +
298 
+ +
305 
+ +
311 
+ +
317 
+ +
323 
+ +
325 };
326 
-
327 // Libbpf itself requires the following structs to be defined, but doesn't
-
328 // care what fields they have. Applications such as bpftool on the other
-
329 // hand depend on fields of specific names and types.
-
330 
-
331 #ifdef _MSC_VER
-
332 #pragma warning(push)
-
333 #pragma warning(disable : 4201) /* nameless struct/union */
-
334 #endif
- -
340 {
- - -
343  enum bpf_link_type type;
- - - -
347  union
-
348  {
-
349  struct
-
350  {
-
351  uint32_t ifindex;
-
352  } xdp;
-
353  struct
-
354  {
-
355  uint64_t cgroup_id;
- -
357  uint8_t attach_data;
-
358  };
-
359 };
-
360 #ifdef _MSC_VER
-
361 #pragma warning(pop)
-
362 #endif
-
363 
-
364 #define BPF_OBJ_NAME_LEN 64
+ +
328 
+
329 // Libbpf itself requires the following structs to be defined, but doesn't
+
330 // care what fields they have. Applications such as bpftool on the other
+
331 // hand depend on fields of specific names and types.
+
332 
+
333 #ifdef _MSC_VER
+
334 #pragma warning(push)
+
335 #pragma warning(disable : 4201) /* nameless struct/union */
+
336 #endif
+ +
342 {
+ + +
345  enum bpf_link_type type;
+ + + +
349  union
+
350  {
+
351  struct
+
352  {
+
353  uint32_t ifindex;
+
354  } xdp;
+
355  struct
+
356  {
+
357  uint64_t cgroup_id;
+ +
359  uint8_t attach_data;
+
360  };
+
361 };
+
362 #ifdef _MSC_VER
+
363 #pragma warning(pop)
+
364 #endif
365 
- -
371 {
-
372  // Cross-platform fields.
- - -
375  uint32_t key_size;
-
376  uint32_t value_size;
-
377  uint32_t max_entries;
- -
379  uint32_t map_flags;
-
380 
-
381  // Windows-specific fields.
- -
383  uint32_t pinned_path_count;
-
384 };
-
385 
-
386 #define BPF_ANY 0x0
-
387 #define BPF_NOEXIST 0x1
-
388 #define BPF_EXIST 0x2
-
389 
- -
395 {
-
396  // Cross-platform fields.
- -
398  enum bpf_prog_type type;
-
399  uint32_t nr_map_ids;
-
400  uintptr_t map_ids;
- -
402 
-
403  // Windows-specific fields.
- - -
406  uint32_t pinned_path_count;
-
407  uint32_t link_count;
-
408 };
-
bpf_prog_type
Definition: ebpf_structs.h:171
-
@ BPF_PROG_TYPE_XDP
Program type for handling incoming packets as early as possible.
Definition: ebpf_structs.h:182
-
@ BPF_PROG_TYPE_BIND
Program type for handling socket bind() requests.
Definition: ebpf_structs.h:192
-
@ BPF_PROG_TYPE_CGROUP_SOCK_ADDR
Program type for handling various socket operations such as connect(), accept() etc.
Definition: ebpf_structs.h:206
-
@ BPF_PROG_TYPE_UNSPEC
Unspecified program type.
Definition: ebpf_structs.h:172
-
@ BPF_PROG_TYPE_XDP_TEST
Program type for handling incoming packets as early as possible.
Definition: ebpf_structs.h:227
-
@ BPF_PROG_TYPE_SOCK_OPS
Program type for handling various socket event notifications such as connection established etc.
Definition: ebpf_structs.h:217
-
@ BPF_PROG_TYPE_SAMPLE
Program type for handling calls from the eBPF sample extension. Used for testing.
Definition: ebpf_structs.h:236
+
366 #define BPF_OBJ_NAME_LEN 64
+
367 
+ +
373 {
+
374  // Cross-platform fields.
+ + +
377  uint32_t key_size;
+
378  uint32_t value_size;
+
379  uint32_t max_entries;
+ +
381  uint32_t map_flags;
+
382 
+
383  // Windows-specific fields.
+ +
385  uint32_t pinned_path_count;
+
386 };
+
387 
+
388 #define BPF_ANY 0x0
+
389 #define BPF_NOEXIST 0x1
+
390 #define BPF_EXIST 0x2
+
391 
+ +
397 {
+
398  // Cross-platform fields.
+ +
400  enum bpf_prog_type type;
+
401  uint32_t nr_map_ids;
+
402  uintptr_t map_ids;
+ +
404 
+
405  // Windows-specific fields.
+ + +
408  uint32_t pinned_path_count;
+
409  uint32_t link_count;
+
410 };
+
bpf_prog_type
Definition: ebpf_structs.h:173
+
@ BPF_PROG_TYPE_XDP
Program type for handling incoming packets as early as possible.
Definition: ebpf_structs.h:184
+
@ BPF_PROG_TYPE_BIND
Program type for handling socket bind() requests.
Definition: ebpf_structs.h:194
+
@ BPF_PROG_TYPE_CGROUP_SOCK_ADDR
Program type for handling various socket operations such as connect(), accept() etc.
Definition: ebpf_structs.h:208
+
@ BPF_PROG_TYPE_UNSPEC
Unspecified program type.
Definition: ebpf_structs.h:174
+
@ BPF_PROG_TYPE_XDP_TEST
Program type for handling incoming packets as early as possible.
Definition: ebpf_structs.h:229
+
@ BPF_PROG_TYPE_SOCK_OPS
Program type for handling various socket event notifications such as connection established etc.
Definition: ebpf_structs.h:219
+
@ BPF_PROG_TYPE_SAMPLE
Program type for handling calls from the eBPF sample extension. Used for testing.
Definition: ebpf_structs.h:238
enum ebpf_map_option ebpf_map_option_t
-
bpf_link_type
Definition: ebpf_structs.h:247
-
@ BPF_LINK_TYPE_UNSPEC
Unspecified link type.
Definition: ebpf_structs.h:248
-
@ BPF_LINK_TYPE_PLAIN
No union members are used in bpf_link_info.
Definition: ebpf_structs.h:249
-
@ BPF_LINK_TYPE_CGROUP
cgroup struct is present in bpf_link_info.
Definition: ebpf_structs.h:250
-
@ BPF_LINK_TYPE_XDP
xdp struct is present in bpf_link_info.
Definition: ebpf_structs.h:251
-
@ BPF_LINK_TYPE_MAX
Definition: ebpf_structs.h:252
-
enum bpf_prog_type bpf_prog_type_t
Definition: ebpf_structs.h:239
+
bpf_link_type
Definition: ebpf_structs.h:249
+
@ BPF_LINK_TYPE_UNSPEC
Unspecified link type.
Definition: ebpf_structs.h:250
+
@ BPF_LINK_TYPE_PLAIN
No union members are used in bpf_link_info.
Definition: ebpf_structs.h:251
+
@ BPF_LINK_TYPE_CGROUP
cgroup struct is present in bpf_link_info.
Definition: ebpf_structs.h:252
+
@ BPF_LINK_TYPE_XDP
xdp struct is present in bpf_link_info.
Definition: ebpf_structs.h:253
+
@ BPF_LINK_TYPE_MAX
Definition: ebpf_structs.h:254
+
enum bpf_prog_type bpf_prog_type_t
Definition: ebpf_structs.h:241
enum bpf_map_type ebpf_map_type_t
#define BPF_ENUM_TO_STRING(X)
Definition: ebpf_structs.h:15
struct _ebpf_map_definition_in_memory ebpf_map_definition_in_memory_t
eBPF Map Definition as it is stored in memory.
@@ -385,6 +387,7 @@
@ BPF_FUNC_map_lookup_and_delete_elem
bpf_map_lookup_and_delete_elem
Definition: ebpf_structs.h:141
@ BPF_FUNC_ringbuf_output
bpf_ringbuf_output
Definition: ebpf_structs.h:148
@ BPF_FUNC_memcmp
bpf_memcmp
Definition: ebpf_structs.h:160
+
@ BPF_FUNC_ktime_get_ms
bpf_ktime_get_ms
Definition: ebpf_structs.h:168
@ BPF_FUNC_memmove
bpf_memmove
Definition: ebpf_structs.h:162
@ BPF_FUNC_trace_printk5
bpf_trace_printk5 (but use bpf_printk instead)
Definition: ebpf_structs.h:152
@ BPF_FUNC_is_current_admin
bpf_is_current_admin
Definition: ebpf_structs.h:158
@@ -399,25 +402,26 @@
@ BPF_FUNC_strncpy_s
bpf_strncpy_s
Definition: ebpf_structs.h:164
@ BPF_FUNC_strncat_s
bpf_strncat_s
Definition: ebpf_structs.h:165
@ BPF_FUNC_ktime_get_boot_ns
bpf_ktime_get_boot_ns
Definition: ebpf_structs.h:144
+
@ BPF_FUNC_ktime_get_boot_ms
bpf_ktime_get_boot_ms
Definition: ebpf_structs.h:167
@ BPF_FUNC_get_current_logon_id
bpf_get_current_logon_id
Definition: ebpf_structs.h:157
@ BPF_FUNC_memcpy
bpf_memcpy
Definition: ebpf_structs.h:159
@ BPF_FUNC_map_push_elem
bpf_map_push_elem
Definition: ebpf_structs.h:153
@ BPF_FUNC_get_current_pid_tgid
bpf_get_current_pid_tgid
Definition: ebpf_structs.h:156
-
bpf_attach_type
Definition: ebpf_structs.h:261
-
@ BPF_XDP
Attach type for handling incoming packets as early as possible.
Definition: ebpf_structs.h:268
-
@ BPF_CGROUP_INET6_CONNECT
Attach type for handling IPv6 TCP connect() or UDP send to a unique remote address/port tuple.
Definition: ebpf_structs.h:288
-
@ BPF_ATTACH_TYPE_UNSPEC
Unspecified attach type.
Definition: ebpf_structs.h:262
-
@ __MAX_BPF_ATTACH_TYPE
Definition: ebpf_structs.h:322
-
@ BPF_ATTACH_TYPE_BIND
Attach type for handling socket bind() requests.
Definition: ebpf_structs.h:274
-
@ BPF_XDP_TEST
Attach type for handling incoming packets as early as possible.
Definition: ebpf_structs.h:320
-
@ BPF_CGROUP_INET6_RECV_ACCEPT
Attach type for handling IPv6 TCP accept() or on receiving the first unicast UDP packet from a unique...
Definition: ebpf_structs.h:302
-
@ BPF_ATTACH_TYPE_SAMPLE
Attach type implemented by eBPF Sample Extension driver, used for testing.
Definition: ebpf_structs.h:314
-
@ BPF_CGROUP_SOCK_OPS
Attach type for handling various socket event notifications.
Definition: ebpf_structs.h:308
-
@ BPF_CGROUP_INET4_RECV_ACCEPT
Attach type for handling IPv4 TCP accept() or on receiving the first unicast UDP packet from a unique...
Definition: ebpf_structs.h:295
-
@ BPF_CGROUP_INET4_CONNECT
Attach type for handling IPv4 TCP connect() or UDP send to a unique remote address/port tuple.
Definition: ebpf_structs.h:281
+
bpf_attach_type
Definition: ebpf_structs.h:263
+
@ BPF_XDP
Attach type for handling incoming packets as early as possible.
Definition: ebpf_structs.h:270
+
@ BPF_CGROUP_INET6_CONNECT
Attach type for handling IPv6 TCP connect() or UDP send to a unique remote address/port tuple.
Definition: ebpf_structs.h:290
+
@ BPF_ATTACH_TYPE_UNSPEC
Unspecified attach type.
Definition: ebpf_structs.h:264
+
@ __MAX_BPF_ATTACH_TYPE
Definition: ebpf_structs.h:324
+
@ BPF_ATTACH_TYPE_BIND
Attach type for handling socket bind() requests.
Definition: ebpf_structs.h:276
+
@ BPF_XDP_TEST
Attach type for handling incoming packets as early as possible.
Definition: ebpf_structs.h:322
+
@ BPF_CGROUP_INET6_RECV_ACCEPT
Attach type for handling IPv6 TCP accept() or on receiving the first unicast UDP packet from a unique...
Definition: ebpf_structs.h:304
+
@ BPF_ATTACH_TYPE_SAMPLE
Attach type implemented by eBPF Sample Extension driver, used for testing.
Definition: ebpf_structs.h:316
+
@ BPF_CGROUP_SOCK_OPS
Attach type for handling various socket event notifications.
Definition: ebpf_structs.h:310
+
@ BPF_CGROUP_INET4_RECV_ACCEPT
Attach type for handling IPv4 TCP accept() or on receiving the first unicast UDP packet from a unique...
Definition: ebpf_structs.h:297
+
@ BPF_CGROUP_INET4_CONNECT
Attach type for handling IPv4 TCP connect() or UDP send to a unique remote address/port tuple.
Definition: ebpf_structs.h:283
struct _ebpf_map_definition_in_file ebpf_map_definition_in_file_t
eBPF Map Definition as it appears in the maps section of an ELF file.
-
#define BPF_OBJ_NAME_LEN
Definition: ebpf_structs.h:364
-
enum bpf_attach_type bpf_attach_type_t
Definition: ebpf_structs.h:325
+
#define BPF_OBJ_NAME_LEN
Definition: ebpf_structs.h:366
+
enum bpf_attach_type bpf_attach_type_t
Definition: ebpf_structs.h:327
ebpf_map_option
Definition: ebpf_structs.h:74
@ EBPF_ANY
Create a new element or update an existing element.
Definition: ebpf_structs.h:75
@ EBPF_EXIST
Update an existing element.
Definition: ebpf_structs.h:77
@@ -456,38 +460,38 @@
uint32_t max_entries
Maximum number of entries allowed in the map.
Definition: ebpf_structs.h:106
ebpf_pin_type_t pinning
Definition: ebpf_structs.h:108
uint32_t value_size
Size in bytes of a map value.
Definition: ebpf_structs.h:105
- - - - + + + + - - - - - + + + + + - -
eBPF map information. This structure can be retrieved by calling bpf_obj_get_info_by_fd on a map fd.
Definition: ebpf_structs.h:371
-
uint32_t max_entries
Maximum number of entries allowed in the map.
Definition: ebpf_structs.h:377
-
char name[BPF_OBJ_NAME_LEN]
Null-terminated map name.
Definition: ebpf_structs.h:378
-
ebpf_map_type_t type
Type of map.
Definition: ebpf_structs.h:374
-
uint32_t key_size
Size in bytes of a map key.
Definition: ebpf_structs.h:375
-
ebpf_id_t id
Map ID.
Definition: ebpf_structs.h:373
-
uint32_t map_flags
Map flags.
Definition: ebpf_structs.h:379
-
uint32_t pinned_path_count
Number of pinned paths.
Definition: ebpf_structs.h:383
-
uint32_t value_size
Size in bytes of a map value.
Definition: ebpf_structs.h:376
-
ebpf_id_t inner_map_id
ID of inner map template.
Definition: ebpf_structs.h:382
-
eBPF program information. This structure can be retrieved by calling bpf_obj_get_info_by_fd on a prog...
Definition: ebpf_structs.h:395
-
ebpf_attach_type_t attach_type_uuid
Attach type UUID.
Definition: ebpf_structs.h:405
-
uint32_t pinned_path_count
Number of pinned paths.
Definition: ebpf_structs.h:406
-
uint32_t link_count
Number of attached links.
Definition: ebpf_structs.h:407
-
enum bpf_prog_type type
Program type, if a cross-platform type.
Definition: ebpf_structs.h:398
-
char name[BPF_OBJ_NAME_LEN]
Null-terminated program name.
Definition: ebpf_structs.h:401
-
uintptr_t map_ids
Pointer to caller-allocated array to fill map IDs into.
Definition: ebpf_structs.h:400
-
uint32_t nr_map_ids
Number of maps associated with this program.
Definition: ebpf_structs.h:399
-
ebpf_id_t id
Program ID.
Definition: ebpf_structs.h:397
-
ebpf_program_type_t type_uuid
Program type UUID.
Definition: ebpf_structs.h:404
+ +
eBPF map information. This structure can be retrieved by calling bpf_obj_get_info_by_fd on a map fd.
Definition: ebpf_structs.h:373
+
uint32_t max_entries
Maximum number of entries allowed in the map.
Definition: ebpf_structs.h:379
+
char name[BPF_OBJ_NAME_LEN]
Null-terminated map name.
Definition: ebpf_structs.h:380
+
ebpf_map_type_t type
Type of map.
Definition: ebpf_structs.h:376
+
uint32_t key_size
Size in bytes of a map key.
Definition: ebpf_structs.h:377
+
ebpf_id_t id
Map ID.
Definition: ebpf_structs.h:375
+
uint32_t map_flags
Map flags.
Definition: ebpf_structs.h:381
+
uint32_t pinned_path_count
Number of pinned paths.
Definition: ebpf_structs.h:385
+
uint32_t value_size
Size in bytes of a map value.
Definition: ebpf_structs.h:378
+
ebpf_id_t inner_map_id
ID of inner map template.
Definition: ebpf_structs.h:384
+
eBPF program information. This structure can be retrieved by calling bpf_obj_get_info_by_fd on a prog...
Definition: ebpf_structs.h:397
+
ebpf_attach_type_t attach_type_uuid
Attach type UUID.
Definition: ebpf_structs.h:407
+
uint32_t pinned_path_count
Number of pinned paths.
Definition: ebpf_structs.h:408
+
uint32_t link_count
Number of attached links.
Definition: ebpf_structs.h:409
+
enum bpf_prog_type type
Program type, if a cross-platform type.
Definition: ebpf_structs.h:400
+
char name[BPF_OBJ_NAME_LEN]
Null-terminated program name.
Definition: ebpf_structs.h:403
+
uintptr_t map_ids
Pointer to caller-allocated array to fill map IDs into.
Definition: ebpf_structs.h:402
+
uint32_t nr_map_ids
Number of maps associated with this program.
Definition: ebpf_structs.h:401
+
ebpf_id_t id
Program ID.
Definition: ebpf_structs.h:399
+
ebpf_program_type_t type_uuid
Program type UUID.
Definition: ebpf_structs.h:406