Lines Matching defs:progs
15610 static void __init destroy_tail_call_tests(struct bpf_array *progs)
15615 if (progs->ptrs[i])
15616 bpf_prog_free(progs->ptrs[i]);
15617 kfree(progs);
15623 struct bpf_array *progs;
15627 progs = kzalloc_flex(*progs, ptrs, ntests + 1);
15628 if (!progs)
15668 insn[0].imm = (u32)(long)progs;
15669 insn[1].imm = ((u64)(long)progs) >> 32;
15721 progs->ptrs[which] = fp;
15725 progs->map.max_entries = ntests + 1;
15726 *pprogs = progs;
15733 if (progs)
15734 destroy_tail_call_tests(progs);
15738 static __init int test_tail_calls(struct bpf_array *progs)
15745 struct bpf_prog *fp = progs->ptrs[i];
15878 struct bpf_array *progs = NULL;
15911 ret = prepare_tail_call_tests(&progs);
15914 ret = test_tail_calls(progs);
15915 destroy_tail_call_tests(progs);