| /kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/ |
| H A D | arg_parsing.c | 9 set->tests = NULL; in init_test_filter_set() 17 for (j = 0; j < set->tests[i].subtest_cnt; j++) in free_test_filter_set() 18 free((void *)set->tests[i].subtests[j]); in free_test_filter_set() 19 free(set->tests[i].subtests); in free_test_filter_set() 20 free(set->tests[i].name); in free_test_filter_set() 23 free(set->tests); in free_test_filter_set() 36 if (!ASSERT_OK_PTR(set.tests, "test filters initialized")) in test_parse_test_list() 38 ASSERT_EQ(set.tests[0].subtest_cnt, 0, "subtest filters count"); in test_parse_test_list() 39 ASSERT_OK(strcmp("arg_parsing", set.tests[0].name), "subtest name"); in test_parse_test_list() 46 if (!ASSERT_OK_PTR(set.tests, "tes in test_parse_test_list() [all...] |
| H A D | obj_name.c | 10 } tests[] = { in test_obj_name() local 23 for (i = 0; i < ARRAY_SIZE(tests); i++) { in test_obj_name() 24 size_t name_len = strlen(tests[i].name) + 1; in test_obj_name() 37 memcpy(attr.prog_name, tests[i].name, ncopy); in test_obj_name() 40 CHECK((tests[i].success && fd < 0) || in test_obj_name() 41 (!tests[i].success && fd >= 0) || in test_obj_name() 42 (!tests[i].success && errno != tests[i].expected_errno), in test_obj_name() 45 fd, tests[i].success, errno, tests[ in test_obj_name() [all...] |
| H A D | global_data.c | 18 } tests[] = { in test_global_data_number() local 32 for (i = 0; i < ARRAY_SIZE(tests); i++) { in test_global_data_number() 33 err = bpf_map_lookup_elem(map_fd, &tests[i].key, &num); in test_global_data_number() 34 CHECK(err || num != tests[i].num, tests[i].name, in test_global_data_number() 36 err, num, tests[i].num); in test_global_data_number() 53 } tests[] = { in test_global_data_string() local 61 for (i = 0; i < ARRAY_SIZE(tests); i++) { in test_global_data_string() 62 err = bpf_map_lookup_elem(map_fd, &tests[i].key, str); in test_global_data_string() 63 CHECK(err || memcmp(str, tests[ in test_global_data_string() 88 } tests[] = { test_global_data_struct() local [all...] |
| H A D | empty_skb.c | 29 } tests[] = { in test_empty_skb() local 113 for (i = 0; i < ARRAY_SIZE(tests); i++) { in test_empty_skb() 120 expected_ret = at_egress && !at_tc ? tests[i].lwt_egress_ret : tests[i].ret; in test_empty_skb() 122 tattr.data_in = tests[i].data_in; in test_empty_skb() 123 tattr.data_size_in = tests[i].data_size_in; in test_empty_skb() 126 bpf_obj->bss->ifindex = *tests[i].ifindex; in test_empty_skb() 129 sprintf(buf, "err: %s [%s]", tests[i].msg, bpf_program__name(prog)); in test_empty_skb() 131 if (at_tc && tests[i].success_on_tc) in test_empty_skb() 134 ASSERT_EQ(err, tests[ in test_empty_skb() [all...] |
| H A D | fib_lookup.c | 39 static const struct fib_lookup_test tests[] = { variable 100 /* Setup for tbid lookup tests */ in setup_netns() 195 for (i = 0; i < ARRAY_SIZE(tests); i++) { in test_fib_lookup() 196 printf("Testing %s ", tests[i].desc); in test_fib_lookup() 198 if (set_lookup_params(fib_params, &tests[i])) in test_fib_lookup() 201 skel->bss->lookup_flags = tests[i].lookup_flags; in test_fib_lookup() 207 ASSERT_EQ(skel->bss->fib_lookup_ret, tests[i].expected_ret, in test_fib_lookup() 210 ret = memcmp(tests[i].dmac, fib_params->dmac, sizeof(tests[i].dmac)); in test_fib_lookup() 214 mac_str(expected, tests[ in test_fib_lookup() [all...] |
| H A D | flow_dissector.c | 111 struct test tests[] = { variable 545 for (i = 0; i < ARRAY_SIZE(tests); i++) { in run_tests_skb_less() 551 __u32 key = (__u32)(tests[i].keys.sport) << 16 | in run_tests_skb_less() 552 tests[i].keys.dport; in run_tests_skb_less() 555 * only the tests that have a matching set of flags. in run_tests_skb_less() 558 if (tests[i].flags != eth_get_headlen_flags) in run_tests_skb_less() 561 err = tx_tap(tap_fd, &tests[i].pkt, sizeof(tests[i].pkt)); in run_tests_skb_less() 565 if (tests[i].retval != BPF_OK) in run_tests_skb_less() 571 CHECK_FLOW_KEYS(tests[ in run_tests_skb_less() [all...] |
| /kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/ |
| H A D | obj_name.c | 10 } tests[] = { in test_obj_name() local 23 for (i = 0; i < sizeof(tests) / sizeof(tests[0]); i++) { in test_obj_name() 24 size_t name_len = strlen(tests[i].name) + 1; in test_obj_name() 37 memcpy(attr.prog_name, tests[i].name, ncopy); in test_obj_name() 40 CHECK((tests[i].success && fd < 0) || in test_obj_name() 41 (!tests[i].success && fd != -1) || in test_obj_name() 42 (!tests[i].success && errno != tests[i].expected_errno), in test_obj_name() 45 fd, tests[ in test_obj_name() [all...] |
| H A D | global_data.c | 18 } tests[] = { in test_global_data_number() local 32 for (i = 0; i < sizeof(tests) / sizeof(tests[0]); i++) { in test_global_data_number() 33 err = bpf_map_lookup_elem(map_fd, &tests[i].key, &num); in test_global_data_number() 34 CHECK(err || num != tests[i].num, tests[i].name, in test_global_data_number() 36 err, num, tests[i].num); in test_global_data_number() 53 } tests[] = { in test_global_data_string() local 61 for (i = 0; i < sizeof(tests) / sizeof(tests[ in test_global_data_string() 88 } tests[] = { test_global_data_struct() local [all...] |
| H A D | flow_dissector.c | 107 struct test tests[] = { variable 486 for (i = 0; i < ARRAY_SIZE(tests); i++) { in run_tests_skb_less() 492 __u32 key = (__u32)(tests[i].keys.sport) << 16 | in run_tests_skb_less() 493 tests[i].keys.dport; in run_tests_skb_less() 496 * only the tests that have a matching set of flags. in run_tests_skb_less() 499 if (tests[i].flags != eth_get_headlen_flags) in run_tests_skb_less() 502 err = tx_tap(tap_fd, &tests[i].pkt, sizeof(tests[i].pkt)); in run_tests_skb_less() 506 CHECK_ATTR(err, tests[i].name, "bpf_map_lookup_elem %d\n", err); in run_tests_skb_less() 508 CHECK_ATTR(err, tests[ in run_tests_skb_less() [all...] |
| /kernel/linux/linux-6.6/fs/btrfs/ |
| H A D | Makefile | 44 btrfs-$(CONFIG_BTRFS_FS_RUN_SANITY_TESTS) += tests/free-space-tests.o \ 45 tests/extent-buffer-tests.o tests/btrfs-tests.o \ 46 tests/extent-io-tests.o tests/inode-tests [all...] |
| /kernel/linux/linux-6.6/tools/testing/selftests/mm/ |
| H A D | run_vmtests.sh | 17 -a: run all tests, including extra ones 18 -t: specify specific categories to tests to run 21 The default behavior is to run required tests only. If -a is specified, 22 will run all tests. 24 Alternatively, specific groups tests can be run by passing a string 28 tests for mmap(2) 30 tests for gup 32 tests for userfaultfd(2) 36 tests for mlock(2) 38 tests fo [all...] |
| /kernel/linux/linux-5.10/net/mptcp/ |
| H A D | crypto_test.c | 15 static struct test_case tests[] = { variable 41 for (i = 0; i < ARRAY_SIZE(tests); ++i) { in mptcp_crypto_test_basic() 43 key1 = be64_to_cpu(*((__be64 *)&tests[i].key[0])); in mptcp_crypto_test_basic() 44 key2 = be64_to_cpu(*((__be64 *)&tests[i].key[8])); in mptcp_crypto_test_basic() 45 nonce1 = be32_to_cpu(*((__be32 *)&tests[i].msg[0])); in mptcp_crypto_test_basic() 46 nonce2 = be32_to_cpu(*((__be32 *)&tests[i].msg[4])); in mptcp_crypto_test_basic() 56 KUNIT_EXPECT_STREQ(test, &hmac_hex[0], tests[i].result); in mptcp_crypto_test_basic()
|
| /kernel/linux/linux-6.6/net/mptcp/ |
| H A D | crypto_test.c | 15 static struct test_case tests[] = { variable 41 for (i = 0; i < ARRAY_SIZE(tests); ++i) { in mptcp_crypto_test_basic() 43 key1 = be64_to_cpu(*((__be64 *)&tests[i].key[0])); in mptcp_crypto_test_basic() 44 key2 = be64_to_cpu(*((__be64 *)&tests[i].key[8])); in mptcp_crypto_test_basic() 45 nonce1 = be32_to_cpu(*((__be32 *)&tests[i].msg[0])); in mptcp_crypto_test_basic() 46 nonce2 = be32_to_cpu(*((__be32 *)&tests[i].msg[4])); in mptcp_crypto_test_basic() 56 KUNIT_EXPECT_STREQ(test, &hmac_hex[0], tests[i].result); in mptcp_crypto_test_basic()
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/sfc/ |
| H A D | selftest.c | 78 * @payload: Payload used in tests 95 * MII, NVRAM and register tests 99 static int efx_test_phy_alive(struct efx_nic *efx, struct efx_self_tests *tests) in efx_test_phy_alive() argument 104 tests->phy_alive = rc ? -1 : 1; in efx_test_phy_alive() 109 static int efx_test_nvram(struct efx_nic *efx, struct efx_self_tests *tests) in efx_test_nvram() argument 118 tests->nvram = rc ? -1 : 1; in efx_test_nvram() 132 struct efx_self_tests *tests) in efx_test_interrupts() 139 tests->interrupt = -1; in efx_test_interrupts() 145 tests->interrupt = 0; in efx_test_interrupts() 168 tests in efx_test_interrupts() 131 efx_test_interrupts(struct efx_nic *efx, struct efx_self_tests *tests) efx_test_interrupts() argument 173 efx_test_eventq_irq(struct efx_nic *efx, struct efx_self_tests *tests) efx_test_eventq_irq() argument 254 efx_test_phy(struct efx_nic *efx, struct efx_self_tests *tests, unsigned flags) efx_test_phy() argument 611 efx_test_loopbacks(struct efx_nic *efx, struct efx_self_tests *tests, unsigned int loopback_modes) efx_test_loopbacks() argument 687 efx_selftest(struct efx_nic *efx, struct efx_self_tests *tests, unsigned flags) efx_selftest() argument [all...] |
| /kernel/linux/linux-5.10/drivers/net/ethernet/sfc/falcon/ |
| H A D | selftest.c | 75 * @payload: Payload used in tests 92 * MII, NVRAM and register tests 96 static int ef4_test_phy_alive(struct ef4_nic *efx, struct ef4_self_tests *tests) in ef4_test_phy_alive() argument 102 tests->phy_alive = rc ? -1 : 1; in ef4_test_phy_alive() 108 static int ef4_test_nvram(struct ef4_nic *efx, struct ef4_self_tests *tests) in ef4_test_nvram() argument 117 tests->nvram = rc ? -1 : 1; in ef4_test_nvram() 131 struct ef4_self_tests *tests) in ef4_test_interrupts() 138 tests->interrupt = -1; in ef4_test_interrupts() 144 tests->interrupt = 0; in ef4_test_interrupts() 167 tests in ef4_test_interrupts() 130 ef4_test_interrupts(struct ef4_nic *efx, struct ef4_self_tests *tests) ef4_test_interrupts() argument 172 ef4_test_eventq_irq(struct ef4_nic *efx, struct ef4_self_tests *tests) ef4_test_eventq_irq() argument 253 ef4_test_phy(struct ef4_nic *efx, struct ef4_self_tests *tests, unsigned flags) ef4_test_phy() argument 613 ef4_test_loopbacks(struct ef4_nic *efx, struct ef4_self_tests *tests, unsigned int loopback_modes) ef4_test_loopbacks() argument 689 ef4_selftest(struct ef4_nic *efx, struct ef4_self_tests *tests, unsigned flags) ef4_selftest() argument [all...] |
| /kernel/linux/linux-6.6/drivers/net/ethernet/sfc/falcon/ |
| H A D | selftest.c | 80 * @payload: Payload used in tests 97 * MII, NVRAM and register tests 101 static int ef4_test_phy_alive(struct ef4_nic *efx, struct ef4_self_tests *tests) in ef4_test_phy_alive() argument 107 tests->phy_alive = rc ? -1 : 1; in ef4_test_phy_alive() 113 static int ef4_test_nvram(struct ef4_nic *efx, struct ef4_self_tests *tests) in ef4_test_nvram() argument 122 tests->nvram = rc ? -1 : 1; in ef4_test_nvram() 136 struct ef4_self_tests *tests) in ef4_test_interrupts() 143 tests->interrupt = -1; in ef4_test_interrupts() 149 tests->interrupt = 0; in ef4_test_interrupts() 172 tests in ef4_test_interrupts() 135 ef4_test_interrupts(struct ef4_nic *efx, struct ef4_self_tests *tests) ef4_test_interrupts() argument 177 ef4_test_eventq_irq(struct ef4_nic *efx, struct ef4_self_tests *tests) ef4_test_eventq_irq() argument 258 ef4_test_phy(struct ef4_nic *efx, struct ef4_self_tests *tests, unsigned flags) ef4_test_phy() argument 625 ef4_test_loopbacks(struct ef4_nic *efx, struct ef4_self_tests *tests, unsigned int loopback_modes) ef4_test_loopbacks() argument 701 ef4_selftest(struct ef4_nic *efx, struct ef4_self_tests *tests, unsigned flags) ef4_selftest() argument [all...] |
| /kernel/linux/linux-6.6/drivers/net/ethernet/sfc/ |
| H A D | selftest.c | 82 * @payload: Payload used in tests 99 * MII, NVRAM and register tests 103 static int efx_test_phy_alive(struct efx_nic *efx, struct efx_self_tests *tests) in efx_test_phy_alive() argument 108 tests->phy_alive = rc ? -1 : 1; in efx_test_phy_alive() 113 static int efx_test_nvram(struct efx_nic *efx, struct efx_self_tests *tests) in efx_test_nvram() argument 122 tests->nvram = rc ? -1 : 1; in efx_test_nvram() 136 struct efx_self_tests *tests) in efx_test_interrupts() 143 tests->interrupt = -1; in efx_test_interrupts() 149 tests->interrupt = 0; in efx_test_interrupts() 172 tests in efx_test_interrupts() 135 efx_test_interrupts(struct efx_nic *efx, struct efx_self_tests *tests) efx_test_interrupts() argument 177 efx_test_eventq_irq(struct efx_nic *efx, struct efx_self_tests *tests) efx_test_eventq_irq() argument 258 efx_test_phy(struct efx_nic *efx, struct efx_self_tests *tests, unsigned flags) efx_test_phy() argument 618 efx_test_loopbacks(struct efx_nic *efx, struct efx_self_tests *tests, unsigned int loopback_modes) efx_test_loopbacks() argument 694 efx_selftest(struct efx_nic *efx, struct efx_self_tests *tests, unsigned flags) efx_selftest() argument [all...] |
| /kernel/linux/linux-6.6/drivers/net/ethernet/sfc/siena/ |
| H A D | selftest.c | 83 * @payload: Payload used in tests 100 * MII, NVRAM and register tests 104 static int efx_test_phy_alive(struct efx_nic *efx, struct efx_self_tests *tests) in efx_test_phy_alive() argument 109 tests->phy_alive = rc ? -1 : 1; in efx_test_phy_alive() 114 static int efx_test_nvram(struct efx_nic *efx, struct efx_self_tests *tests) in efx_test_nvram() argument 123 tests->nvram = rc ? -1 : 1; in efx_test_nvram() 137 struct efx_self_tests *tests) in efx_test_interrupts() 144 tests->interrupt = -1; in efx_test_interrupts() 150 tests->interrupt = 0; in efx_test_interrupts() 173 tests in efx_test_interrupts() 136 efx_test_interrupts(struct efx_nic *efx, struct efx_self_tests *tests) efx_test_interrupts() argument 178 efx_test_eventq_irq(struct efx_nic *efx, struct efx_self_tests *tests) efx_test_eventq_irq() argument 259 efx_test_phy(struct efx_nic *efx, struct efx_self_tests *tests, unsigned flags) efx_test_phy() argument 623 efx_test_loopbacks(struct efx_nic *efx, struct efx_self_tests *tests, unsigned int loopback_modes) efx_test_loopbacks() argument 699 efx_siena_selftest(struct efx_nic *efx, struct efx_self_tests *tests, unsigned int flags) efx_siena_selftest() argument [all...] |
| /kernel/linux/linux-6.6/tools/testing/selftests/kvm/s390x/ |
| H A D | tprot.c | 69 STAGE_END /* must be the last entry (it's the amount of tests) */ 77 } tests[] = { variable 141 enum stage stage = tests[*i].stage; in perform_next_stage() 145 for (; tests[*i].stage == stage; (*i)++) { in perform_next_stage() 147 * Some fetch protection override tests require that page 0 in perform_next_stage() 151 * In order to skip these tests we detect this inside the guest in perform_next_stage() 153 skip = tests[*i].addr < (void *)4096 && in perform_next_stage() 154 tests[*i].expected != TRANSL_UNAVAIL && in perform_next_stage() 157 result = test_protection(tests[*i].addr, tests[* in perform_next_stage() [all...] |
| /kernel/linux/linux-6.6/drivers/gpu/drm/vc4/ |
| H A D | Makefile | 29 tests/vc4_mock.o \ 30 tests/vc4_mock_crtc.o \ 31 tests/vc4_mock_output.o \ 32 tests/vc4_mock_plane.o \ 33 tests/vc4_test_pv_muxing.o
|
| /kernel/linux/linux-6.6/tools/testing/memblock/ |
| H A D | Makefile | 9 TEST_OFILES = tests/alloc_nid_api.o tests/alloc_helpers_api.o tests/alloc_api.o \ 10 tests/basic_api.o tests/common.o tests/alloc_exact_nid_api.o
|
| /kernel/linux/linux-5.10/crypto/async_tx/ |
| H A D | raid6test.c | 152 static int test(int disks, int *tests) in test() argument 184 (*tests)++; in test() 195 int tests = 0; in raid6_test() local 209 err += test(4, &tests); in raid6_test() 211 err += test(5, &tests); in raid6_test() 216 err += test(11, &tests); in raid6_test() 217 err += test(12, &tests); in raid6_test() 225 err += test(24, &tests); in raid6_test() 227 err += test(NDISKS, &tests); in raid6_test() 230 pr("complete (%d tests, in raid6_test() [all...] |
| /kernel/linux/linux-6.6/crypto/async_tx/ |
| H A D | raid6test.c | 152 static int test(int disks, int *tests) in test() argument 184 (*tests)++; in test() 195 int tests = 0; in raid6_test() local 209 err += test(4, &tests); in raid6_test() 211 err += test(5, &tests); in raid6_test() 216 err += test(11, &tests); in raid6_test() 217 err += test(12, &tests); in raid6_test() 225 err += test(24, &tests); in raid6_test() 227 err += test(NDISKS, &tests); in raid6_test() 230 pr("complete (%d tests, in raid6_test() [all...] |
| /kernel/linux/linux-6.6/tools/testing/selftests/exec/ |
| H A D | binfmt_script.py | 45 global test_num, tests, NAME_MAX 47 if test_num > tests: 48 raise ValueError("more binfmt_script tests than expected! (want %d, expected %d)" 49 % (test_num, tests)) 104 tests=27 variable 106 print("1..%d" % (tests)) 108 ### FAIL (8 tests) 131 ### ok (19 tests) 169 if test_num != tests: 170 raise ValueError("fewer binfmt_script tests tha [all...] |
| /kernel/linux/linux-6.6/tools/testing/selftests/arm64/fp/ |
| H A D | fp-stress.c | 43 static int tests; variable 418 ret = epoll_wait(epoll_fd, evs, tests, 0); in drain_output() 462 tests = 0; in main() 466 tests += sve_vl_count * cpus; in main() 473 tests += sme_vl_count * cpus * 2; in main() 479 tests += cpus; in main() 490 tests += cpus * fpsimd_per_cpu; in main() 493 ksft_set_plan(tests); in main() 504 children = calloc(sizeof(*children), tests); in main() 539 evs = calloc(tests, sizeo in main() [all...] |