redbpf-probes 2.3.0

eBPF probe-related types for redbpf
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// supplements that are not generated by BTF of vmlinux

struct bpf_map_def {
	unsigned int type;
	unsigned int key_size;
	unsigned int value_size;
	unsigned int max_entries;
	unsigned int map_flags;
};

// include some headers in system default path
#include <linux/if_ether.h> // for ETH_P_* macro constants
#include <linux/filter.h> // for BPF_* macro constants
#include <linux/bpf.h> // for BPF_* macro constants
#include <linux/in6.h> // for IPPROTO_* macro constants
#include <sys/socket.h>  // for AF_*, SOCK_* macro constants
#include <linux/if_ether.h>  // for ETH_* macro constants