Searched refs:prog_load_attr (Results 1 – 3 of 3) sorted by relevance
/linux-5.19.10/tools/testing/selftests/bpf/progs/ |
D | syscall.c | 83 static union bpf_attr prog_load_attr = { in bpf_prog() local 97 prog_load_attr.license = (long) license; in bpf_prog() 98 prog_load_attr.insns = (long) insns; in bpf_prog() 99 prog_load_attr.log_buf = ctx->log_buf; in bpf_prog() 100 prog_load_attr.log_size = ctx->log_size; in bpf_prog() 101 prog_load_attr.log_level = 1; in bpf_prog() 116 ret = bpf_sys_bpf(BPF_PROG_LOAD, &prog_load_attr, sizeof(prog_load_attr)); in bpf_prog()
|
/linux-5.19.10/tools/lib/bpf/ |
D | gen_loader.c | 937 int prog_load_attr, license_off, insns_off, func_info, line_info, core_relos; in bpf_gen__prog_load() local 973 prog_load_attr = add_data(gen, &attr, attr_size); in bpf_gen__prog_load() 976 emit_rel_store(gen, attr_field(prog_load_attr, license), license_off); in bpf_gen__prog_load() 979 emit_rel_store(gen, attr_field(prog_load_attr, insns), insns_off); in bpf_gen__prog_load() 982 emit_rel_store(gen, attr_field(prog_load_attr, func_info), func_info); in bpf_gen__prog_load() 985 emit_rel_store(gen, attr_field(prog_load_attr, line_info), line_info); in bpf_gen__prog_load() 988 emit_rel_store(gen, attr_field(prog_load_attr, core_relos), core_relos); in bpf_gen__prog_load() 991 emit_rel_store(gen, attr_field(prog_load_attr, fd_array), gen->fd_array); in bpf_gen__prog_load() 994 move_ctx2blob(gen, attr_field(prog_load_attr, log_level), 4, in bpf_gen__prog_load() 996 move_ctx2blob(gen, attr_field(prog_load_attr, log_size), 4, in bpf_gen__prog_load() [all …]
|
/linux-5.19.10/samples/bpf/ |
D | xdpsock_user.c | 1745 struct bpf_prog_load_attr prog_load_attr = { in load_xdp_program() local 1752 prog_load_attr.file = xdp_filename; in load_xdp_program() 1754 if (bpf_prog_load_xattr(&prog_load_attr, obj, &prog_fd)) in load_xdp_program()
|