Home
last modified time | relevance | path

Searched refs:map_create_attr (Results 1 – 2 of 2) sorted by relevance

/linux-6.1.9/tools/testing/selftests/bpf/progs/
Dsyscall.c73 static union bpf_attr map_create_attr = { in bpf_prog() local
94 map_create_attr.max_entries = ctx->max_entries; in bpf_prog()
95 map_create_attr.btf_fd = ret; in bpf_prog()
103 ret = bpf_sys_bpf(BPF_MAP_CREATE, &map_create_attr, sizeof(map_create_attr)); in bpf_prog()
/linux-6.1.9/tools/lib/bpf/
Dgen_loader.c456 int map_create_attr, idx; in bpf_gen__map_create() local
476 map_create_attr = add_data(gen, &attr, attr_size); in bpf_gen__map_create()
479 move_stack2blob(gen, attr_field(map_create_attr, btf_fd), 4, in bpf_gen__map_create()
484 move_stack2blob(gen, attr_field(map_create_attr, inner_map_fd), 4, in bpf_gen__map_create()
493 move_ctx2blob(gen, attr_field(map_create_attr, max_entries), 4, in bpf_gen__map_create()
499 emit_sys_bpf(gen, BPF_MAP_CREATE, map_create_attr, attr_size); in bpf_gen__map_create()