Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/progs/
H A Dsyscall.c121 static union bpf_attr prog_load_attr = { in load_prog() local
135 prog_load_attr.license = ptr_to_u64(license); in load_prog()
136 prog_load_attr.insns = ptr_to_u64(insns); in load_prog()
137 prog_load_attr.log_buf = ctx->log_buf; in load_prog()
138 prog_load_attr.log_size = ctx->log_size; in load_prog()
139 prog_load_attr.log_level = 1; in load_prog()
154 ret = bpf_sys_bpf(BPF_PROG_LOAD, &prog_load_attr, sizeof(prog_load_attr)); in load_prog()