Lines Matching refs:test_suite

144 static int pin_programs(Unit *u, CGroupContext *cc, const Test *test_suite, size_t test_suite_size,…  in pin_programs()  argument
159 … r = bpf_foreign_test_to_string(test_suite[i].attach_type, test_suite[i].bpffs_path, &str); in pin_programs()
163 r = bpf_program_new(test_suite[i].prog_type, "sd_trivial", &prog); in pin_programs()
175 if (strv_contains(bpffs_paths, test_suite[i].bpffs_path)) in pin_programs()
178 r = strv_extend(&bpffs_paths, test_suite[i].bpffs_path); in pin_programs()
182 r = bpf_program_pin(prog->kernel_fd, test_suite[i].bpffs_path); in pin_programs()
191 static int test_bpf_cgroup_programs(Manager *m, const char *unit_name, const Test *test_suite, size… in test_bpf_cgroup_programs() argument
201 r = pin_programs(u, cc, test_suite, test_suite_size, &bpffs_paths); in test_bpf_cgroup_programs()
206 if (streq(test_suite[i].option_name, "BPFProgram")) { in test_bpf_cgroup_programs()
208 … r = bpf_foreign_test_to_string(test_suite[i].attach_type, test_suite[i].bpffs_path, &option); in test_bpf_cgroup_programs()
212 … u->id, "filename", 1, "Service", 1, test_suite[i].option_name, 0, option, cc, u); in test_bpf_cgroup_programs()
216 … } else if (STR_IN_SET(test_suite[i].option_name, "IPIngressFilterPath", "IPEgressFilterPath")) { in test_bpf_cgroup_programs()
217 const char *option = test_suite[i].bpffs_path; in test_bpf_cgroup_programs()
220 if (streq(test_suite[i].option_name, "IPIngressFilterPath")) in test_bpf_cgroup_programs()
226 … u->id, "filename", 1, "Service", 1, test_suite[i].option_name, 0, option, paths, u); in test_bpf_cgroup_programs()