bpf: sync map/prog/attach type with latest linux kernel

Note that the original `cgroup_storage` MapType has been deprecated,
so renamed to `cgroup_storage_deprecated`.

Signed-off-by: Tw <tw19881113@gmail.com>
This commit is contained in:
Tw 2024-07-08 15:19:32 +08:00 committed by Andrew Kelley
parent 1824bee579
commit 49f2cca872

View file

@ -1001,7 +1001,7 @@ pub const MapType = enum(u32) {
cpumap,
xskmap,
sockhash,
cgroup_storage,
cgroup_storage_deprecated,
reuseport_sockarray,
percpu_cgroup_storage,
queue,
@ -1044,6 +1044,12 @@ pub const MapType = enum(u32) {
/// value size: 0
/// max entries: size of ringbuf, must be power of 2
ringbuf,
inode_storage,
task_storage,
bloom_filter,
user_ringbuf,
cgroup_storage,
arena,
_,
};
@ -1144,6 +1150,9 @@ pub const ProgType = enum(u32) {
/// context type: void *
syscall,
/// context type: bpf_nf_ctx
netfilter,
_,
};
@ -1186,6 +1195,25 @@ pub const AttachType = enum(u32) {
xdp_cpumap,
sk_lookup,
xdp,
sk_skb_verdict,
sk_reuseport_select,
sk_reuseport_select_or_migrate,
perf_event,
trace_kprobe_multi,
lsm_cgroup,
struct_ops,
netfilter,
tcx_ingress,
tcx_egress,
trace_uprobe_multi,
cgroup_unix_connect,
cgroup_unix_sendmsg,
cgroup_unix_recvmsg,
cgroup_unix_getpeername,
cgroup_unix_getsockname,
netkit_primary,
netkit_peer,
trace_kprobe_session,
_,
};