Lines Matching refs:prog
96 static int check_test_run_args(struct bpf_prog *prog, struct bpf_dummy_ops_test_args *args) in check_test_run_args() argument
98 const struct btf_type *func_proto = prog->aux->attach_func_proto; in check_test_run_args()
117 info = find_ctx_arg_info(prog->aux, offset); in check_test_run_args()
129 int bpf_struct_ops_test_run(struct bpf_prog *prog, const union bpf_attr *kattr, in bpf_struct_ops_test_run() argument
149 if (prog->aux->attach_btf_id != type_id) in bpf_struct_ops_test_run()
152 func_proto = prog->aux->attach_func_proto; in bpf_struct_ops_test_run()
157 err = check_test_run_args(prog, args); in bpf_struct_ops_test_run()
173 bpf_prog_inc(prog); in bpf_struct_ops_test_run()
174 bpf_link_init(&link->link, BPF_LINK_TYPE_STRUCT_OPS, &bpf_struct_ops_link_lops, prog, in bpf_struct_ops_test_run()
175 prog->expected_attach_type); in bpf_struct_ops_test_run()
177 op_idx = prog->expected_attach_type; in bpf_struct_ops_test_run()
213 const struct bpf_prog *prog, in bpf_dummy_ops_is_valid_access() argument
216 return bpf_tracing_btf_ctx_access(off, size, type, prog, info); in bpf_dummy_ops_is_valid_access()
221 const struct bpf_prog *prog) in bpf_dummy_ops_check_member() argument
229 if (prog->sleepable) in bpf_dummy_ops_check_member()