xlat: update BPF_* constants
* xlat/bpf_map_types.in (BPF_MAP_TYPE_PERCPU_CGROUP_STORAGE): New constant introduced by Linux kernel commit v4.20-rc1~14^2~124^2~12^2~7. (BPF_MAP_TYPE_QUEUE, BPF_MAP_TYPE_STACK): New constants introduced by Linux kernel commit v4.20-rc1~151^2~32^2~11^2~3. * xlat/bpf_commands.in (BPF_MAP_LOOKUP_AND_DELETE_ELEM): New constant introduced by Linux kernel commit v4.20-rc1~151^2~32^2~11^2~2. * tests/bpf.c (BPF_MAP_CREATE_checks): Update.
This commit is contained in:
parent
38ea49ad11
commit
333079522a
@ -278,7 +278,7 @@ static struct bpf_attr_check BPF_MAP_CREATE_checks[] = {
|
||||
},
|
||||
{ /* 2 */
|
||||
.data = { .BPF_MAP_CREATE_data = {
|
||||
.map_type = 21,
|
||||
.map_type = 24,
|
||||
.key_size = 0xface1e55,
|
||||
.value_size = 0xbadc0ded,
|
||||
.max_entries = 0xbeefcafe,
|
||||
@ -289,7 +289,7 @@ static struct bpf_attr_check BPF_MAP_CREATE_checks[] = {
|
||||
.map_ifindex = 3141592653,
|
||||
} },
|
||||
.size = offsetofend(struct BPF_MAP_CREATE_struct, map_ifindex),
|
||||
.str = "map_type=0x15 /* BPF_MAP_TYPE_??? */"
|
||||
.str = "map_type=0x18 /* BPF_MAP_TYPE_??? */"
|
||||
", key_size=4207812181, value_size=3134983661"
|
||||
", max_entries=3203386110"
|
||||
", map_flags=0xffffffc0 /* BPF_F_??? */"
|
||||
|
@ -20,3 +20,4 @@ BPF_RAW_TRACEPOINT_OPEN 17
|
||||
BPF_BTF_LOAD 18
|
||||
BPF_BTF_GET_FD_BY_ID 19
|
||||
BPF_TASK_FD_QUERY 20
|
||||
BPF_MAP_LOOKUP_AND_DELETE_ELEM 21
|
||||
|
@ -20,3 +20,6 @@ BPF_MAP_TYPE_XSKMAP 17
|
||||
BPF_MAP_TYPE_SOCKHASH 18
|
||||
BPF_MAP_TYPE_CGROUP_STORAGE 19
|
||||
BPF_MAP_TYPE_REUSEPORT_SOCKARRAY 20
|
||||
BPF_MAP_TYPE_PERCPU_CGROUP_STORAGE 21
|
||||
BPF_MAP_TYPE_QUEUE 22
|
||||
BPF_MAP_TYPE_STACK 23
|
||||
|
Loading…
Reference in New Issue
Block a user