Home
last modified time | relevance | path

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

/external/linux-kselftest/tools/testing/selftests/bpf/progs/
Dsyscall.c83 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()
/external/libbpf/src/
Dgen_loader.c937 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 …]