Lines Matching defs:progs
15034 static void __init destroy_tail_call_tests(struct bpf_array *progs)
15039 if (progs->ptrs[i])
15040 bpf_prog_free(progs->ptrs[i]);
15041 kfree(progs);
15047 struct bpf_array *progs;
15051 progs = kzalloc(struct_size(progs, ptrs, ntests + 1), GFP_KERNEL);
15052 if (!progs)
15091 insn[0].imm = (u32)(long)progs;
15092 insn[1].imm = ((u64)(long)progs) >> 32;
15144 progs->ptrs[which] = fp;
15148 progs->map.max_entries = ntests + 1;
15149 *pprogs = progs;
15156 if (progs)
15157 destroy_tail_call_tests(progs);
15161 static __init int test_tail_calls(struct bpf_array *progs)
15168 struct bpf_prog *fp = progs->ptrs[i];
15301 struct bpf_array *progs = NULL;
15334 ret = prepare_tail_call_tests(&progs);
15337 ret = test_tail_calls(progs);
15338 destroy_tail_call_tests(progs);