Searched refs:btf_load_attr (Results 1 – 2 of 2) sorted by relevance
/linux/tools/testing/selftests/bpf/progs/ |
H A D | syscall.c | 90 static union bpf_attr btf_load_attr = { in btf_load() local 94 btf_load_attr.btf = (long)&raw_btf; in btf_load() 95 return bpf_sys_bpf(BPF_BTF_LOAD, &btf_load_attr, sizeof(btf_load_attr)); in btf_load()
|
/linux/tools/lib/bpf/ |
H A D | gen_loader.c | 421 int btf_data, btf_load_attr; in bpf_gen__load_btf() local 429 btf_load_attr = add_data(gen, &attr, attr_size); in bpf_gen__load_btf() 432 move_ctx2blob(gen, attr_field(btf_load_attr, btf_log_level), 4, in bpf_gen__load_btf() 434 move_ctx2blob(gen, attr_field(btf_load_attr, btf_log_size), 4, in bpf_gen__load_btf() 436 move_ctx2blob(gen, attr_field(btf_load_attr, btf_log_buf), 8, in bpf_gen__load_btf() 439 emit_rel_store(gen, attr_field(btf_load_attr, btf), btf_data); in bpf_gen__load_btf() 441 emit_sys_bpf(gen, BPF_BTF_LOAD, btf_load_attr, attr_size); in bpf_gen__load_btf()
|