mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 02:44:43 +01:00
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:
parent
1824bee579
commit
49f2cca872
1 changed files with 29 additions and 1 deletions
|
|
@ -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,
|
||||
_,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue