/tools/testing/scatterlist/ |
A D | main.c | 8 struct test { struct 30 static void fail(struct test *test, struct sg_table *st, const char *cond) in fail() 48 #define VALIDATE(cond, st, test) \ argument 55 struct test *test, tests[] = { in main() local
|
/tools/testing/selftests/bpf/ |
A D | xskxceiver.c | 130 static char *mode_string(struct test_spec *test) in mode_string() 144 static void report_failure(struct test_spec *test) in report_failure() 568 static void test_spec_reset(struct test_spec *test) in test_spec_reset() 1324 static int receive_pkts(struct test_spec *test) in receive_pkts() 1789 struct test_spec *test = (struct test_spec *)arg; in worker_testapp_validate_tx() local 1812 struct test_spec *test = (struct test_spec *)arg; in worker_testapp_validate_rx() local 2021 static int testapp_teardown(struct test_spec *test) in testapp_teardown() 2465 static int testapp_poll_rx(struct test_spec *test) in testapp_poll_rx() 2471 static int testapp_poll_tx(struct test_spec *test) in testapp_poll_tx() 2669 static void run_pkt_test(struct test_spec *test) in run_pkt_test() [all …]
|
A D | test_progs.c | 403 static void dump_test_log(const struct prog_test_def *test, in dump_test_log() 521 struct prog_test_def *test = env.test; in test__end_subtest() local 547 struct prog_test_def *test = env.test; in test__start_subtest() local 657 int bpf_find_map(const char *test, struct bpf_object *obj, const char *name) in bpf_find_map() 1377 struct prog_test_def *test = &prog_test_defs[test_num]; in run_one_test() local 1504 struct prog_test_def *test; in dispatch_thread() local 1641 struct prog_test_def *test = &prog_test_defs[i]; in calculate_summary_and_print_errors() local 1724 struct prog_test_def *test = &prog_test_defs[i]; in server_main() local 1853 struct prog_test_def *test = &prog_test_defs[test_to_run]; in worker_main() local 1990 struct prog_test_def *test = &prog_test_defs[i]; in main() local [all …]
|
/tools/testing/selftests/clone3/ |
A D | clone3.c | 163 struct test { struct 169 enum test_mode test_mode; argument 173 static const struct test tests[] = { argument
|
/tools/testing/selftests/sched_ext/ |
A D | runner.c | 42 static void print_test_preamble(const struct scx_test *test, bool quiet) in print_test_preamble() 64 static void print_test_result(const struct scx_test *test, in print_test_result() 75 static bool should_skip_test(const struct scx_test *test, const char * filter) in should_skip_test() 80 static enum scx_test_status run_test(const struct scx_test *test) in run_test() 99 static bool test_valid(const struct scx_test *test) in test_valid() 159 struct scx_test *test = &__scx_tests[i]; in main() local 206 void scx_test_register(struct scx_test *test) in scx_test_register()
|
/tools/testing/selftests/powerpc/vphn/ |
A D | test-vphn.c | 21 static struct test { struct 25 } all_tests[] = { argument 366 static int test_one(struct test *test) in test_one() 394 static struct test *test; in test_vphn() local
|
/tools/build/feature/ |
A D | test-clang-bpf-co-re.c | 4 struct test { struct 9 volatile struct test global_value_for_test = {}; argument
|
/tools/testing/selftests/kvm/ |
A D | system_counter_offset_test.c | 36 static void setup_system_counter(struct kvm_vcpu *vcpu, struct test_case *test) in setup_system_counter() 42 static uint64_t guest_read_system_counter(struct test_case *test) in guest_read_system_counter() 47 static uint64_t host_read_guest_system_counter(struct test_case *test) in host_read_guest_system_counter() 66 struct test_case *test = &test_cases[i]; in guest_main() local 96 struct test_case *test = &test_cases[i]; in enter_guest() local
|
/tools/testing/selftests/kvm/s390/ |
A D | tprot.c | 72 struct test { struct 79 * We perform each test in the array by executing TEST PROTECTION on argument
|
/tools/testing/selftests/resctrl/ |
A D | resctrl_tests.c | 84 static int test_prepare(const struct resctrl_test *test) in test_prepare() 103 static void test_cleanup(const struct resctrl_test *test) in test_cleanup() 111 static bool test_vendor_specific_check(const struct resctrl_test *test) in test_vendor_specific_check() 119 static void run_single_test(const struct resctrl_test *test, const struct user_params *uparams) in run_single_test()
|
A D | cat_test.c | 156 static int cat_test(const struct resctrl_test *test, in cat_test() 235 static int cat_run_test(const struct resctrl_test *test, const struct user_params *uparams) in cat_run_test() 291 static bool arch_supports_noncont_cat(const struct resctrl_test *test) in arch_supports_noncont_cat() 313 static int noncont_cat_run_test(const struct resctrl_test *test, in noncont_cat_run_test() 371 static bool noncont_cat_feature_check(const struct resctrl_test *test) in noncont_cat_feature_check()
|
A D | mbm_test.c | 99 static int mbm_setup(const struct resctrl_test *test, in mbm_setup() 129 static int mbm_run_test(const struct resctrl_test *test, const struct user_params *uparams) in mbm_run_test() 169 static bool mbm_feature_check(const struct resctrl_test *test) in mbm_feature_check()
|
A D | cmt_test.c | 30 static int cmt_setup(const struct resctrl_test *test, in cmt_setup() 116 static int cmt_run_test(const struct resctrl_test *test, const struct user_params *uparams) in cmt_run_test() 178 static bool cmt_feature_check(const struct resctrl_test *test) in cmt_feature_check()
|
A D | mba_test.c | 38 static int mba_setup(const struct resctrl_test *test, in mba_setup() 170 static int mba_run_test(const struct resctrl_test *test, const struct user_params *uparams) in mba_run_test() 210 static bool mba_feature_check(const struct resctrl_test *test) in mba_feature_check()
|
/tools/testing/selftests/x86/ |
A D | lam.c | 288 int handle_max_bits(struct testcases *test) in handle_max_bits() 307 static int handle_malloc(struct testcases *test) in handle_malloc() 339 static int handle_mmap(struct testcases *test) in handle_mmap() 375 static int handle_syscall(struct testcases *test) in handle_syscall() 401 static int get_user_syscall(struct testcases *test) in get_user_syscall() 738 int handle_uring(struct testcases *test) in handle_uring() 756 static int fork_test(struct testcases *test) in fork_test() 776 static int handle_execve(struct testcases *test) in handle_execve() 849 struct testcases *test = arg; in thread_fn_set_lam() local 854 static int handle_thread(struct testcases *test) in handle_thread() [all …]
|
/tools/testing/selftests/bpf/prog_tests/ |
A D | test_sysctl.c | 1420 static int load_sysctl_prog_insns(struct sysctl_test *test, in load_sysctl_prog_insns() 1462 static int load_sysctl_prog_file(struct sysctl_test *test) in load_sysctl_prog_file() 1477 static int load_sysctl_prog(struct sysctl_test *test, const char *sysctl_path) in load_sysctl_prog() 1485 const struct sysctl_test *test) in access_sysctl() 1529 static int run_test_case(int cgfd, struct sysctl_test *test) in run_test_case()
|
A D | section_names.c | 208 static void test_prog_type_by_name(const struct sec_name_test *test) in test_prog_type_by_name() 232 static void test_attach_type_by_name(const struct sec_name_test *test) in test_attach_type_by_name() 255 struct sec_name_test *test = &tests[i]; in test_section_names() local
|
A D | sk_lookup.c | 65 struct test { struct 66 const char *desc; 67 struct bpf_program *lookup_prog; 68 struct bpf_program *reuseport_prog; 69 struct bpf_map *sock_map; 70 int sotype; 71 struct inet_addr connect_to; 72 struct inet_addr listen_at; 73 enum server accept_on; 74 bool reuseport_has_conns; /* Add a connected socket to reuseport group */
|
A D | flow_dissector.c | 80 struct test { struct 98 struct test tests[] = { argument
|
A D | btf_skc_cls_ingress.c | 234 struct test { struct 236 void (*run)(struct test_btf_skc_cls_ingress *skel); argument 240 static struct test tests[] = { argument
|
/tools/testing/selftests/net/ |
A D | ip_local_port_range.c | 217 const struct test { in TEST_F() struct 218 __u16 range_lo; in TEST_F() 219 __u16 range_hi; in TEST_F() 265 const struct test { in TEST_F() struct 266 __u16 range_lo; in TEST_F() 267 __u16 range_hi; in TEST_F() 268 __u16 expected; in TEST_F()
|
/tools/testing/selftests/kvm/arm64/ |
A D | page_fault_test.c | 252 static bool guest_prepare(struct test_desc *test) in guest_prepare() 266 static void guest_test_check(struct test_desc *test) in guest_test_check() 278 static void guest_code(struct test_desc *test) in guest_code() 366 struct test_desc *test = p->test_desc; in setup_uffd() local 387 static void free_uffd(struct test_desc *test, struct uffd_desc *pt_uffd, in free_uffd() 541 struct test_desc *test) in setup_abort_handlers() 621 static void setup_default_handlers(struct test_desc *test) in setup_default_handlers() 630 static void check_event_counts(struct test_desc *test) in check_event_counts() 639 struct test_desc *test = p->test_desc; in print_test_banner() local 657 struct test_desc *test) in vcpu_run_loop() [all …]
|
/tools/testing/radix-tree/ |
A D | maple.c | 30 #define RCU_MT_BUG_ON(test, y) {if (y) { test->stop = true; } MT_BUG_ON(test->mt, y); } argument 63 struct rcu_test_struct2 *test; member 34352 static void rcu_reader_register(struct rcu_test_struct2 *test) in rcu_reader_register() 34362 unsigned int id, struct rcu_test_struct2 *test) in rcu_reader_setup() 34377 struct rcu_test_struct2 *test = reader->test; in rcu_reader_fwd() local 34487 struct rcu_test_struct2 *test = reader->test; in rcu_reader_rev() local 34749 struct rcu_test_struct2 test; in rcu_stress() local 34887 struct rcu_test_struct *test = (struct rcu_test_struct *)ptr; in rcu_val() local 34916 struct rcu_test_struct *test = (struct rcu_test_struct *)ptr; in rcu_loop() local 34997 struct rcu_test_struct3 *test = ptr; in rcu_slot_store_reader() local [all …]
|
/tools/perf/tests/shell/lib/ |
A D | attr.py | 30 def __init__(self, test, msg): argument 37 def __init__(self, test, arch): argument 44 def __init__(self, test): argument
|
/tools/testing/selftests/bpf/progs/ |
A D | linked_list_fail.c | 47 #define CHECK(test, op, hexpr) \ argument 71 #define CHECK(test, op, hexpr, nexpr) \ argument 94 #define CHECK(test, op, lexpr, hexpr) \ argument 132 #define CHECK(test, op, lexpr, hexpr, nexpr) \ argument
|