Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/prog_tests/
H A Dtest_xsk.h78 struct test_spec;
81 typedef int (*test_func_t)(struct test_spec *test);
190 void pkt_stream_restore_default(struct test_spec *test);
192 struct test_spec { struct
217 static inline char *mode_string(struct test_spec *test) in mode_string() argument
231 void test_init(struct test_spec *test, struct ifobject *ifobj_tx,
233 const struct test_spec *test_to_run);
235 int testapp_adjust_tail_grow(struct test_spec *test);
236 int testapp_adjust_tail_grow_mb(struct test_spec *test);
237 int testapp_adjust_tail_shrink(struct test_spec *test);
[all …]
H A Dtest_xsk.c203 static void __test_spec_init(struct test_spec *test, struct ifobject *ifobj_tx, in __test_spec_init()
272 void test_init(struct test_spec *test, struct ifobject *ifobj_tx, in test_init()
274 const struct test_spec *test_to_run) in test_init()
302 static void test_spec_reset(struct test_spec *test) in test_spec_reset()
307 static void test_spec_set_unaligned(struct test_spec *test) in test_spec_set_unaligned()
313 static void test_spec_set_frame_size(struct test_spec *test, u32 size) in test_spec_set_frame_size()
319 static void test_spec_set_xdp_prog(struct test_spec *test, struct bpf_program *xdp_prog_rx, in test_spec_set_xdp_prog()
329 static int test_spec_set_mtu(struct test_spec *test, int mtu) in test_spec_set_mtu()
382 void pkt_stream_restore_default(struct test_spec *test) in pkt_stream_restore_default()
510 static int pkt_stream_replace(struct test_spec *test, u32 nb_pkts, u32 pkt_len) in pkt_stream_replace()
[all …]
H A Dxsk.c63 static void test_xsk(const struct test_spec *test_to_run, enum test_mode mode) in test_xsk()
67 struct test_spec test; in test_xsk()
/linux/tools/testing/selftests/bpf/
H A Dtesting_helpers.c134 char *test_spec, in insert_test()
147 subtest_str = strchr(test_spec, '/'); in insert_test()
153 ext_test_str = malloc(strlen(test_spec) + glob_chars + 1); in insert_test()
157 sprintf(ext_test_str, pattern, test_spec); in insert_test()
227 char *input, *state = NULL, *test_spec; in parse_test_list()
234 while ((test_spec = strtok_r(cnt++ ? NULL : input, ",", &state))) { in parse_test_list()
235 err = insert_test(set, test_spec, is_glob_pattern); in parse_test_list()
131 insert_test(struct test_filter_set * set,char * test_spec,bool is_glob_pattern) insert_test() argument
224 char *input, *state = NULL, *test_spec; parse_test_list() local
H A Dxskxceiver.h161 struct test_spec { global() struct
162 ifobj_txtest_spec global() argument
163 ifobj_rxtest_spec global() argument
164 tx_pkt_stream_defaulttest_spec global() argument
165 rx_pkt_stream_defaulttest_spec global() argument
166 xdp_prog_rxtest_spec global() argument
167 xdp_prog_txtest_spec global() argument
168 xskmap_rxtest_spec global() argument
169 xskmap_txtest_spec global() argument
170 test_functest_spec global() argument
171 mtutest_spec global() argument
172 total_stepstest_spec global() argument
173 current_steptest_spec global() argument
174 nb_socketstest_spec global() argument
175 failtest_spec global() argument
176 set_ringtest_spec global() argument
177 adjust_tailtest_spec global() argument
178 adjust_tail_supporttest_spec global() argument
179 modetest_spec global() argument
180 nametest_spec global() argument
H A Dtest_loader.c61 struct test_spec { struct
109 static void free_test_spec(struct test_spec *spec) in free_test_spec()
406 struct test_spec *spec) in parse_test_spec()
744 struct test_spec *spec, in prepare_case()
828 struct test_spec spec = {}; in verify_test_stderr()
1046 static bool can_execute_unpriv(struct test_loader *tester, struct test_spec *spec) in can_execute_unpriv()
1125 static bool should_do_test_run(struct test_spec *spec, struct test_subspec *subspec) in should_do_test_run()
1311 struct test_spec *specs, in run_subtest()
1312 struct test_spec *spec, in run_subtest()
1319 struct test_spec *spec_iter; in run_subtest()
[all …]
H A Dxskxceiver.c268 static void run_pkt_test(struct test_spec *test) in run_pkt_test()
343 struct test_spec test; in main()