Searched refs:map_create_attr (Results 1 – 2 of 2) sorted by relevance
/linux-6.12.1/tools/testing/selftests/bpf/progs/ |
D | syscall.c | 111 static union bpf_attr map_create_attr = { in load_prog() local 132 map_create_attr.max_entries = ctx->max_entries; in load_prog() 133 map_create_attr.btf_fd = ret; in load_prog() 141 ret = bpf_sys_bpf(BPF_MAP_CREATE, &map_create_attr, sizeof(map_create_attr)); in load_prog()
|
/linux-6.12.1/tools/lib/bpf/ |
D | gen_loader.c | 456 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()
|