tests 1551 arch/arm/probes/kprobes/test-core.c static int run_test_cases(void (*tests)(void), const union decode_item *table) tests 1565 arch/arm/probes/kprobes/test-core.c tests(); tests 18 arch/arm/probes/kprobes/test-thumb.c #define DONT_TEST_IN_ITBLOCK(tests) \ tests 20 arch/arm/probes/kprobes/test-thumb.c tests \ tests 23 arch/arm/probes/kprobes/test-thumb.c #define CONDITION_INSTRUCTIONS(cc_pos, tests) \ tests 25 arch/arm/probes/kprobes/test-thumb.c DONT_TEST_IN_ITBLOCK(tests) \ tests 144 crypto/async_tx/raid6test.c static int test(int disks, int *tests) tests 176 crypto/async_tx/raid6test.c (*tests)++; tests 187 crypto/async_tx/raid6test.c int tests = 0; tests 201 crypto/async_tx/raid6test.c err += test(4, &tests); tests 203 crypto/async_tx/raid6test.c err += test(5, &tests); tests 208 crypto/async_tx/raid6test.c err += test(11, &tests); tests 209 crypto/async_tx/raid6test.c err += test(12, &tests); tests 217 crypto/async_tx/raid6test.c err += test(24, &tests); tests 219 crypto/async_tx/raid6test.c err += test(NDISKS, &tests); tests 223 crypto/async_tx/raid6test.c tests, err, err == 1 ? "" : "s"); tests 545 drivers/dma-buf/st-dma-fence.c static const struct subtest tests[] = { tests 569 drivers/dma-buf/st-dma-fence.c ret = subtests(tests, NULL); tests 481 drivers/gpu/drm/drm_color_mgmt.c int drm_color_lut_check(const struct drm_property_blob *lut, u32 tests) tests 486 drivers/gpu/drm/drm_color_mgmt.c if (!lut || !tests) tests 491 drivers/gpu/drm/drm_color_mgmt.c if (tests & DRM_COLOR_LUT_EQUAL_CHANNELS) { tests 499 drivers/gpu/drm/drm_color_mgmt.c if (i > 0 && tests & DRM_COLOR_LUT_NON_DECREASING) { tests 1602 drivers/gpu/drm/i915/gem/selftests/huge_pages.c static const struct i915_subtest tests[] = { tests 1640 drivers/gpu/drm/i915/gem/selftests/huge_pages.c err = i915_subtests(tests, ppgtt); tests 1654 drivers/gpu/drm/i915/gem/selftests/huge_pages.c static const struct i915_subtest tests[] = { tests 1691 drivers/gpu/drm/i915/gem/selftests/huge_pages.c err = i915_subtests(tests, ctx); tests 108 drivers/gpu/drm/i915/gem/selftests/i915_gem_client_blt.c static const struct i915_subtest tests[] = { tests 118 drivers/gpu/drm/i915/gem/selftests/i915_gem_client_blt.c return i915_live_subtests(tests, i915); tests 393 drivers/gpu/drm/i915/gem/selftests/i915_gem_coherency.c static const struct i915_subtest tests[] = { tests 397 drivers/gpu/drm/i915/gem/selftests/i915_gem_coherency.c return i915_subtests(tests, i915); tests 1597 drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c static const struct i915_subtest tests[] = { tests 1607 drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c err = i915_subtests(tests, i915); tests 1615 drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c static const struct i915_subtest tests[] = { tests 1627 drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c return i915_live_subtests(tests, i915); tests 359 drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c static const struct i915_subtest tests[] = { tests 374 drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c err = i915_subtests(tests, i915); tests 382 drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c static const struct i915_subtest tests[] = { tests 386 drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c return i915_subtests(tests, i915); tests 516 drivers/gpu/drm/i915/gem/selftests/i915_gem_mman.c static const struct i915_subtest tests[] = { tests 521 drivers/gpu/drm/i915/gem/selftests/i915_gem_mman.c return i915_subtests(tests, i915); tests 76 drivers/gpu/drm/i915/gem/selftests/i915_gem_object.c static const struct i915_subtest tests[] = { tests 86 drivers/gpu/drm/i915/gem/selftests/i915_gem_object.c err = i915_subtests(tests, i915); tests 94 drivers/gpu/drm/i915/gem/selftests/i915_gem_object.c static const struct i915_subtest tests[] = { tests 98 drivers/gpu/drm/i915/gem/selftests/i915_gem_object.c return i915_subtests(tests, i915); tests 213 drivers/gpu/drm/i915/gem/selftests/i915_gem_object_blt.c static const struct i915_subtest tests[] = { tests 224 drivers/gpu/drm/i915/gem/selftests/i915_gem_object_blt.c return i915_live_subtests(tests, i915); tests 66 drivers/gpu/drm/i915/gem/selftests/i915_gem_phys.c static const struct i915_subtest tests[] = { tests 76 drivers/gpu/drm/i915/gem/selftests/i915_gem_phys.c err = i915_subtests(tests, i915); tests 445 drivers/gpu/drm/i915/gt/selftest_context.c static const struct i915_subtest tests[] = { tests 455 drivers/gpu/drm/i915/gt/selftest_context.c return intel_gt_live_subtests(tests, gt); tests 12 drivers/gpu/drm/i915/gt/selftest_engine.c static int (* const tests[])(struct intel_gt *) = { tests 17 drivers/gpu/drm/i915/gt/selftest_engine.c typeof(*tests) *fn; tests 19 drivers/gpu/drm/i915/gt/selftest_engine.c for (fn = tests; *fn; fn++) { tests 57 drivers/gpu/drm/i915/gt/selftest_engine_cs.c static const struct i915_subtest tests[] = { tests 61 drivers/gpu/drm/i915/gt/selftest_engine_cs.c return i915_subtests(tests, NULL); tests 78 drivers/gpu/drm/i915/gt/selftest_engine_pm.c static const struct i915_subtest tests[] = { tests 82 drivers/gpu/drm/i915/gt/selftest_engine_pm.c return intel_gt_live_subtests(tests, gt); tests 1729 drivers/gpu/drm/i915/gt/selftest_hangcheck.c static const struct i915_subtest tests[] = { tests 1759 drivers/gpu/drm/i915/gt/selftest_hangcheck.c err = intel_gt_live_subtests(tests, gt); tests 2169 drivers/gpu/drm/i915/gt/selftest_lrc.c static const struct i915_subtest tests[] = { tests 2192 drivers/gpu/drm/i915/gt/selftest_lrc.c return i915_live_subtests(tests, i915); tests 165 drivers/gpu/drm/i915/gt/selftest_reset.c static const struct i915_subtest tests[] = { tests 179 drivers/gpu/drm/i915/gt/selftest_reset.c return intel_gt_live_subtests(tests, gt); tests 407 drivers/gpu/drm/i915/gt/selftest_timeline.c static const struct i915_subtest tests[] = { tests 413 drivers/gpu/drm/i915/gt/selftest_timeline.c return i915_subtests(tests, NULL); tests 835 drivers/gpu/drm/i915/gt/selftest_timeline.c static const struct i915_subtest tests[] = { tests 845 drivers/gpu/drm/i915/gt/selftest_timeline.c return i915_live_subtests(tests, i915); tests 1242 drivers/gpu/drm/i915/gt/selftest_workarounds.c static const struct i915_subtest tests[] = { tests 1255 drivers/gpu/drm/i915/gt/selftest_workarounds.c err = i915_subtests(tests, i915); tests 308 drivers/gpu/drm/i915/gt/uc/selftest_guc.c static const struct i915_subtest tests[] = { tests 316 drivers/gpu/drm/i915/gt/uc/selftest_guc.c return i915_subtests(tests, dev_priv); tests 219 drivers/gpu/drm/i915/selftests/i915_active.c static const struct i915_subtest tests[] = { tests 227 drivers/gpu/drm/i915/selftests/i915_active.c return i915_subtests(tests, i915); tests 711 drivers/gpu/drm/i915/selftests/i915_buddy.c static const struct i915_subtest tests[] = { tests 719 drivers/gpu/drm/i915/selftests/i915_buddy.c return i915_subtests(tests, NULL); tests 211 drivers/gpu/drm/i915/selftests/i915_gem.c static const struct i915_subtest tests[] = { tests 219 drivers/gpu/drm/i915/selftests/i915_gem.c return i915_live_subtests(tests, i915); tests 533 drivers/gpu/drm/i915/selftests/i915_gem_evict.c static const struct i915_subtest tests[] = { tests 550 drivers/gpu/drm/i915/selftests/i915_gem_evict.c err = i915_subtests(tests, i915); tests 560 drivers/gpu/drm/i915/selftests/i915_gem_evict.c static const struct i915_subtest tests[] = { tests 567 drivers/gpu/drm/i915/selftests/i915_gem_evict.c return i915_subtests(tests, i915); tests 1669 drivers/gpu/drm/i915/selftests/i915_gem_gtt.c static const struct i915_subtest tests[] = { tests 1693 drivers/gpu/drm/i915/selftests/i915_gem_gtt.c err = i915_subtests(tests, ggtt); tests 1708 drivers/gpu/drm/i915/selftests/i915_gem_gtt.c static const struct i915_subtest tests[] = { tests 1727 drivers/gpu/drm/i915/selftests/i915_gem_gtt.c return i915_subtests(tests, i915); tests 515 drivers/gpu/drm/i915/selftests/i915_request.c static const struct i915_subtest tests[] = { tests 531 drivers/gpu/drm/i915/selftests/i915_request.c err = i915_subtests(tests, i915); tests 1239 drivers/gpu/drm/i915/selftests/i915_request.c static const struct i915_subtest tests[] = { tests 1250 drivers/gpu/drm/i915/selftests/i915_request.c return i915_subtests(tests, i915); tests 743 drivers/gpu/drm/i915/selftests/i915_sw_fence.c static const struct i915_subtest tests[] = { tests 756 drivers/gpu/drm/i915/selftests/i915_sw_fence.c return i915_subtests(tests, NULL); tests 605 drivers/gpu/drm/i915/selftests/i915_syncmap.c static const struct i915_subtest tests[] = { tests 615 drivers/gpu/drm/i915/selftests/i915_syncmap.c return i915_subtests(tests, NULL); tests 813 drivers/gpu/drm/i915/selftests/i915_vma.c static const struct i915_subtest tests[] = { tests 835 drivers/gpu/drm/i915/selftests/i915_vma.c err = i915_subtests(tests, ggtt); tests 987 drivers/gpu/drm/i915/selftests/i915_vma.c static const struct i915_subtest tests[] = { tests 991 drivers/gpu/drm/i915/selftests/i915_vma.c return i915_subtests(tests, i915); tests 315 drivers/gpu/drm/i915/selftests/intel_uncore.c static const struct i915_subtest tests[] = { tests 329 drivers/gpu/drm/i915/selftests/intel_uncore.c return i915_subtests(tests, i915); tests 374 drivers/gpu/drm/i915/selftests/scatterlist.c static const struct i915_subtest tests[] = { tests 379 drivers/gpu/drm/i915/selftests/scatterlist.c return i915_subtests(tests, NULL); tests 5998 drivers/net/ethernet/sfc/ef10.c efx_ef10_test_chip(struct efx_nic *efx, struct efx_self_tests *tests) tests 6009 drivers/net/ethernet/sfc/ef10.c tests->memory = efx_ef10_run_bist(efx, MC_CMD_MC_MEM_BIST) ? -1 : 1; tests 6010 drivers/net/ethernet/sfc/ef10.c tests->registers = efx_ef10_run_bist(efx, MC_CMD_REG_BIST) ? -1 : 1; tests 315 drivers/net/ethernet/sfc/ethtool.c struct efx_self_tests *tests, tests 322 drivers/net/ethernet/sfc/ethtool.c efx_fill_test(n++, strings, data, &tests->phy_alive, tests 324 drivers/net/ethernet/sfc/ethtool.c efx_fill_test(n++, strings, data, &tests->nvram, tests 326 drivers/net/ethernet/sfc/ethtool.c efx_fill_test(n++, strings, data, &tests->interrupt, tests 332 drivers/net/ethernet/sfc/ethtool.c &tests->eventq_dma[channel->channel], tests 336 drivers/net/ethernet/sfc/ethtool.c &tests->eventq_int[channel->channel], tests 341 drivers/net/ethernet/sfc/ethtool.c efx_fill_test(n++, strings, data, &tests->memory, tests 343 drivers/net/ethernet/sfc/ethtool.c efx_fill_test(n++, strings, data, &tests->registers, tests 357 drivers/net/ethernet/sfc/ethtool.c efx_fill_test(n++, strings, data, &tests->phy_ext[i], tests 367 drivers/net/ethernet/sfc/ethtool.c &tests->loopback[mode], mode, n, tests 297 drivers/net/ethernet/sfc/falcon/ethtool.c struct ef4_self_tests *tests, tests 304 drivers/net/ethernet/sfc/falcon/ethtool.c ef4_fill_test(n++, strings, data, &tests->phy_alive, tests 306 drivers/net/ethernet/sfc/falcon/ethtool.c ef4_fill_test(n++, strings, data, &tests->nvram, tests 308 drivers/net/ethernet/sfc/falcon/ethtool.c ef4_fill_test(n++, strings, data, &tests->interrupt, tests 314 drivers/net/ethernet/sfc/falcon/ethtool.c &tests->eventq_dma[channel->channel], tests 318 drivers/net/ethernet/sfc/falcon/ethtool.c &tests->eventq_int[channel->channel], tests 323 drivers/net/ethernet/sfc/falcon/ethtool.c ef4_fill_test(n++, strings, data, &tests->memory, tests 325 drivers/net/ethernet/sfc/falcon/ethtool.c ef4_fill_test(n++, strings, data, &tests->registers, tests 339 drivers/net/ethernet/sfc/falcon/ethtool.c ef4_fill_test(n++, strings, data, &tests->phy_ext[i], tests 349 drivers/net/ethernet/sfc/falcon/ethtool.c &tests->loopback[mode], mode, n, tests 1897 drivers/net/ethernet/sfc/falcon/falcon.c falcon_b0_test_chip(struct ef4_nic *efx, struct ef4_self_tests *tests) tests 1916 drivers/net/ethernet/sfc/falcon/falcon.c tests->registers = tests 1075 drivers/net/ethernet/sfc/falcon/net_driver.h int (*test_chip)(struct ef4_nic *efx, struct ef4_self_tests *tests); tests 96 drivers/net/ethernet/sfc/falcon/selftest.c static int ef4_test_phy_alive(struct ef4_nic *efx, struct ef4_self_tests *tests) tests 102 drivers/net/ethernet/sfc/falcon/selftest.c tests->phy_alive = rc ? -1 : 1; tests 108 drivers/net/ethernet/sfc/falcon/selftest.c static int ef4_test_nvram(struct ef4_nic *efx, struct ef4_self_tests *tests) tests 117 drivers/net/ethernet/sfc/falcon/selftest.c tests->nvram = rc ? -1 : 1; tests 131 drivers/net/ethernet/sfc/falcon/selftest.c struct ef4_self_tests *tests) tests 138 drivers/net/ethernet/sfc/falcon/selftest.c tests->interrupt = -1; tests 144 drivers/net/ethernet/sfc/falcon/selftest.c tests->interrupt = 0; tests 167 drivers/net/ethernet/sfc/falcon/selftest.c tests->interrupt = 1; tests 173 drivers/net/ethernet/sfc/falcon/selftest.c struct ef4_self_tests *tests) tests 221 drivers/net/ethernet/sfc/falcon/selftest.c tests->eventq_dma[channel->channel] = dma_seen ? 1 : -1; tests 222 drivers/net/ethernet/sfc/falcon/selftest.c tests->eventq_int[channel->channel] = int_seen ? 1 : -1; tests 253 drivers/net/ethernet/sfc/falcon/selftest.c static int ef4_test_phy(struct ef4_nic *efx, struct ef4_self_tests *tests, tests 262 drivers/net/ethernet/sfc/falcon/selftest.c rc = efx->phy_op->run_tests(efx, tests->phy_ext, flags); tests 613 drivers/net/ethernet/sfc/falcon/selftest.c static int ef4_test_loopbacks(struct ef4_nic *efx, struct ef4_self_tests *tests, tests 664 drivers/net/ethernet/sfc/falcon/selftest.c &tests->loopback[mode]); tests 689 drivers/net/ethernet/sfc/falcon/selftest.c int ef4_selftest(struct ef4_nic *efx, struct ef4_self_tests *tests, tests 701 drivers/net/ethernet/sfc/falcon/selftest.c rc = ef4_test_phy_alive(efx, tests); tests 705 drivers/net/ethernet/sfc/falcon/selftest.c rc = ef4_test_nvram(efx, tests); tests 709 drivers/net/ethernet/sfc/falcon/selftest.c rc = ef4_test_interrupts(efx, tests); tests 713 drivers/net/ethernet/sfc/falcon/selftest.c rc = ef4_test_eventq_irq(efx, tests); tests 721 drivers/net/ethernet/sfc/falcon/selftest.c return ef4_test_phy(efx, tests, flags); tests 732 drivers/net/ethernet/sfc/falcon/selftest.c rc_reset = efx->type->test_chip(efx, tests); tests 740 drivers/net/ethernet/sfc/falcon/selftest.c if ((tests->memory < 0 || tests->registers < 0) && !rc_test) tests 752 drivers/net/ethernet/sfc/falcon/selftest.c rc = ef4_test_phy(efx, tests, flags); tests 756 drivers/net/ethernet/sfc/falcon/selftest.c rc = ef4_test_loopbacks(efx, tests, efx->loopback_modes); tests 46 drivers/net/ethernet/sfc/falcon/selftest.h int ef4_selftest(struct ef4_nic *efx, struct ef4_self_tests *tests, tests 1306 drivers/net/ethernet/sfc/net_driver.h int (*test_chip)(struct efx_nic *efx, struct efx_self_tests *tests); tests 96 drivers/net/ethernet/sfc/selftest.c static int efx_test_phy_alive(struct efx_nic *efx, struct efx_self_tests *tests) tests 102 drivers/net/ethernet/sfc/selftest.c tests->phy_alive = rc ? -1 : 1; tests 108 drivers/net/ethernet/sfc/selftest.c static int efx_test_nvram(struct efx_nic *efx, struct efx_self_tests *tests) tests 117 drivers/net/ethernet/sfc/selftest.c tests->nvram = rc ? -1 : 1; tests 131 drivers/net/ethernet/sfc/selftest.c struct efx_self_tests *tests) tests 138 drivers/net/ethernet/sfc/selftest.c tests->interrupt = -1; tests 144 drivers/net/ethernet/sfc/selftest.c tests->interrupt = 0; tests 167 drivers/net/ethernet/sfc/selftest.c tests->interrupt = 1; tests 173 drivers/net/ethernet/sfc/selftest.c struct efx_self_tests *tests) tests 221 drivers/net/ethernet/sfc/selftest.c tests->eventq_dma[channel->channel] = dma_seen ? 1 : -1; tests 222 drivers/net/ethernet/sfc/selftest.c tests->eventq_int[channel->channel] = int_seen ? 1 : -1; tests 253 drivers/net/ethernet/sfc/selftest.c static int efx_test_phy(struct efx_nic *efx, struct efx_self_tests *tests, tests 262 drivers/net/ethernet/sfc/selftest.c rc = efx->phy_op->run_tests(efx, tests->phy_ext, flags); tests 613 drivers/net/ethernet/sfc/selftest.c static int efx_test_loopbacks(struct efx_nic *efx, struct efx_self_tests *tests, tests 664 drivers/net/ethernet/sfc/selftest.c &tests->loopback[mode]); tests 689 drivers/net/ethernet/sfc/selftest.c int efx_selftest(struct efx_nic *efx, struct efx_self_tests *tests, tests 701 drivers/net/ethernet/sfc/selftest.c rc = efx_test_phy_alive(efx, tests); tests 705 drivers/net/ethernet/sfc/selftest.c rc = efx_test_nvram(efx, tests); tests 709 drivers/net/ethernet/sfc/selftest.c rc = efx_test_interrupts(efx, tests); tests 713 drivers/net/ethernet/sfc/selftest.c rc = efx_test_eventq_irq(efx, tests); tests 721 drivers/net/ethernet/sfc/selftest.c return efx_test_phy(efx, tests, flags); tests 732 drivers/net/ethernet/sfc/selftest.c rc_reset = efx->type->test_chip(efx, tests); tests 740 drivers/net/ethernet/sfc/selftest.c if ((tests->memory < 0 || tests->registers < 0) && !rc_test) tests 752 drivers/net/ethernet/sfc/selftest.c rc = efx_test_phy(efx, tests, flags); tests 756 drivers/net/ethernet/sfc/selftest.c rc = efx_test_loopbacks(efx, tests, efx->loopback_modes); tests 46 drivers/net/ethernet/sfc/selftest.h int efx_selftest(struct efx_nic *efx, struct efx_self_tests *tests, tests 96 drivers/net/ethernet/sfc/siena.c static int siena_test_chip(struct efx_nic *efx, struct efx_self_tests *tests) tests 110 drivers/net/ethernet/sfc/siena.c tests->registers = tests 1024 drivers/spi/spi-loopback-test.c struct spi_test *tests) tests 1051 drivers/spi/spi-loopback-test.c for (test = tests, count = 0; test->description[0]; tests 118 drivers/spi/spi-test.h struct spi_test *tests); tests 561 fs/btrfs/tests/free-space-tree-tests.c test_func_t tests[] = { tests 583 fs/btrfs/tests/free-space-tree-tests.c for (i = 0; i < ARRAY_SIZE(tests); i++) { tests 586 fs/btrfs/tests/free-space-tree-tests.c ret = run_test_both_formats(tests[i], sectorsize, nodesize, tests 591 fs/btrfs/tests/free-space-tree-tests.c ret = run_test_both_formats(tests[i], sectorsize, nodesize, tests 3221 fs/unicode/mkutf8data.c int tests = 0; tests 3257 fs/unicode/mkutf8data.c tests++; tests 3268 fs/unicode/mkutf8data.c printf("Ran %d tests with %d failures\n", tests, failures); tests 99 include/drm/drm_color_mgmt.h int drm_color_lut_check(const struct drm_property_blob *lut, u32 tests); tests 38 include/uapi/linux/netfilter/xt_u32.h struct xt_u32_test tests[XT_U32_MAXSIZE+1]; tests 464 lib/test_bpf.c static struct bpf_test tests[] = { tests 6559 lib/test_bpf.c if (tests[which].fill_helper) tests 6560 lib/test_bpf.c return tests[which].u.ptr.len; tests 6562 lib/test_bpf.c fp = tests[which].u.insns; tests 6572 lib/test_bpf.c if (tests[which].fill_helper) tests 6573 lib/test_bpf.c return tests[which].u.ptr.insns; tests 6575 lib/test_bpf.c return tests[which].u.insns; tests 6580 lib/test_bpf.c __u8 test_type = tests[which].aux & TEST_TYPE_MASK; tests 6592 lib/test_bpf.c if (tests[which].aux & FLAG_EXPECTED_FAIL) { tests 6593 lib/test_bpf.c if (*err == tests[which].expected_errcode) { tests 6626 lib/test_bpf.c fp->aux->stack_depth = tests[which].stack_depth; tests 6645 lib/test_bpf.c __u8 test_type = tests[which].aux & TEST_TYPE_MASK; tests 6718 lib/test_bpf.c static int test_range[2] = { 0, ARRAY_SIZE(tests) - 1 }; tests 6725 lib/test_bpf.c for (i = 0; i < ARRAY_SIZE(tests); i++) { tests 6726 lib/test_bpf.c if (!strcmp(tests[i].descr, test_name)) tests 6741 lib/test_bpf.c if (test_id >= ARRAY_SIZE(tests)) { tests 6766 lib/test_bpf.c if (test_range[0] >= ARRAY_SIZE(tests) || tests 6767 lib/test_bpf.c test_range[1] >= ARRAY_SIZE(tests) || tests 6779 lib/test_bpf.c for (i = 0; i < ARRAY_SIZE(tests); i++) { tests 6780 lib/test_bpf.c if (tests[i].fill_helper && tests 6781 lib/test_bpf.c tests[i].fill_helper(&tests[i]) < 0) tests 6792 lib/test_bpf.c for (i = 0; i < ARRAY_SIZE(tests); i++) { tests 6793 lib/test_bpf.c if (tests[i].fill_helper) tests 6794 lib/test_bpf.c kfree(tests[i].u.ptr.insns); tests 6895 lib/test_bpf.c for (i = 0; i < ARRAY_SIZE(tests); i++) { tests 6903 lib/test_bpf.c pr_info("#%d %s ", i, tests[i].descr); tests 6921 lib/test_bpf.c err = run_one(fp, &tests[i]); tests 148 lib/test_hash.c unsigned tests = 0; tests 181 lib/test_hash.c tests++; tests 245 lib/test_hash.c pr_notice("%u tests passed.", tests); tests 35 net/netfilter/xt_u32.c ct = &data->tests[testind]; tests 1734 tools/perf/bench/numa.c static const char *tests[][MAX_ARGS] = { tests 1809 tools/perf/bench/numa.c int nr = ARRAY_SIZE(tests); tests 1817 tools/perf/bench/numa.c run_bench_numa(tests[i][0], tests[i] + 1); tests 308 tools/perf/tests/builtin-test.c static struct test *tests[] = { tests 390 tools/perf/tests/builtin-test.c for (j = 0; j < ARRAY_SIZE(tests); j++) \ tests 391 tools/perf/tests/builtin-test.c for (t = &tests[j][0]; t->func; t++) tests 1921 tools/perf/tests/parse-events.c #define TEST_EVENTS(tests) \ tests 1923 tools/perf/tests/parse-events.c ret1 = test_events(tests, ARRAY_SIZE(tests)); \ tests 30 tools/testing/scatterlist/main.c } *test, tests[] = { tests 55 tools/testing/scatterlist/main.c for (i = 0, test = tests; test->expected_segments; test++, i++) { tests 76 tools/testing/scatterlist/main.c assert(i == (sizeof(tests) / sizeof(tests[0])) - 1); tests 42 tools/testing/selftests/bpf/prog_tests/bpf_verif_scale.c struct scale_test_def tests[] = { tests 99 tools/testing/selftests/bpf/prog_tests/bpf_verif_scale.c for (i = 0; i < ARRAY_SIZE(tests); i++) { tests 100 tools/testing/selftests/bpf/prog_tests/bpf_verif_scale.c const struct scale_test_def *test = &tests[i]; tests 103 tools/testing/selftests/bpf/prog_tests/flow_dissector.c struct test tests[] = { tests 457 tools/testing/selftests/bpf/prog_tests/flow_dissector.c for (i = 0; i < ARRAY_SIZE(tests); i++) { tests 461 tools/testing/selftests/bpf/prog_tests/flow_dissector.c .data_in = &tests[i].pkt, tests 462 tools/testing/selftests/bpf/prog_tests/flow_dissector.c .data_size_in = sizeof(tests[i].pkt), tests 467 tools/testing/selftests/bpf/prog_tests/flow_dissector.c if (tests[i].flags) { tests 470 tools/testing/selftests/bpf/prog_tests/flow_dissector.c ctx.flags = tests[i].flags; tests 476 tools/testing/selftests/bpf/prog_tests/flow_dissector.c tests[i].name, tests 480 tools/testing/selftests/bpf/prog_tests/flow_dissector.c CHECK_FLOW_KEYS(tests[i].name, flow_keys, tests[i].keys); tests 497 tools/testing/selftests/bpf/prog_tests/flow_dissector.c for (i = 0; i < ARRAY_SIZE(tests); i++) { tests 503 tools/testing/selftests/bpf/prog_tests/flow_dissector.c __u32 key = (__u32)(tests[i].keys.sport) << 16 | tests 504 tools/testing/selftests/bpf/prog_tests/flow_dissector.c tests[i].keys.dport; tests 510 tools/testing/selftests/bpf/prog_tests/flow_dissector.c if (tests[i].flags != eth_get_headlen_flags) tests 513 tools/testing/selftests/bpf/prog_tests/flow_dissector.c err = tx_tap(tap_fd, &tests[i].pkt, sizeof(tests[i].pkt)); tests 517 tools/testing/selftests/bpf/prog_tests/flow_dissector.c CHECK_ATTR(err, tests[i].name, "bpf_map_lookup_elem %d\n", err); tests 519 tools/testing/selftests/bpf/prog_tests/flow_dissector.c CHECK_ATTR(err, tests[i].name, "skb-less err %d\n", err); tests 520 tools/testing/selftests/bpf/prog_tests/flow_dissector.c CHECK_FLOW_KEYS(tests[i].name, flow_keys, tests[i].keys); tests 523 tools/testing/selftests/bpf/prog_tests/flow_dissector.c CHECK_ATTR(err, tests[i].name, "bpf_map_delete_elem %d\n", err); tests 17 tools/testing/selftests/bpf/prog_tests/global_data.c } tests[] = { tests 31 tools/testing/selftests/bpf/prog_tests/global_data.c for (i = 0; i < sizeof(tests) / sizeof(tests[0]); i++) { tests 32 tools/testing/selftests/bpf/prog_tests/global_data.c err = bpf_map_lookup_elem(map_fd, &tests[i].key, &num); tests 33 tools/testing/selftests/bpf/prog_tests/global_data.c CHECK(err || num != tests[i].num, tests[i].name, tests 35 tools/testing/selftests/bpf/prog_tests/global_data.c err, num, tests[i].num); tests 52 tools/testing/selftests/bpf/prog_tests/global_data.c } tests[] = { tests 60 tools/testing/selftests/bpf/prog_tests/global_data.c for (i = 0; i < sizeof(tests) / sizeof(tests[0]); i++) { tests 61 tools/testing/selftests/bpf/prog_tests/global_data.c err = bpf_map_lookup_elem(map_fd, &tests[i].key, str); tests 62 tools/testing/selftests/bpf/prog_tests/global_data.c CHECK(err || memcmp(str, tests[i].str, sizeof(str)), tests 63 tools/testing/selftests/bpf/prog_tests/global_data.c tests[i].name, "err %d result \'%s\' expected \'%s\'\n", tests 64 tools/testing/selftests/bpf/prog_tests/global_data.c err, str, tests[i].str); tests 87 tools/testing/selftests/bpf/prog_tests/global_data.c } tests[] = { tests 94 tools/testing/selftests/bpf/prog_tests/global_data.c for (i = 0; i < sizeof(tests) / sizeof(tests[0]); i++) { tests 95 tools/testing/selftests/bpf/prog_tests/global_data.c err = bpf_map_lookup_elem(map_fd, &tests[i].key, &val); tests 96 tools/testing/selftests/bpf/prog_tests/global_data.c CHECK(err || memcmp(&val, &tests[i].val, sizeof(val)), tests 97 tools/testing/selftests/bpf/prog_tests/global_data.c tests[i].name, "err %d result { %u, %u, %llu } expected { %u, %u, %llu }\n", tests 98 tools/testing/selftests/bpf/prog_tests/global_data.c err, val.a, val.b, val.c, tests[i].val.a, tests[i].val.b, tests[i].val.c); tests 10 tools/testing/selftests/bpf/prog_tests/obj_name.c } tests[] = { tests 23 tools/testing/selftests/bpf/prog_tests/obj_name.c for (i = 0; i < sizeof(tests) / sizeof(tests[0]); i++) { tests 24 tools/testing/selftests/bpf/prog_tests/obj_name.c size_t name_len = strlen(tests[i].name) + 1; tests 37 tools/testing/selftests/bpf/prog_tests/obj_name.c memcpy(attr.prog_name, tests[i].name, ncopy); tests 40 tools/testing/selftests/bpf/prog_tests/obj_name.c CHECK((tests[i].success && fd < 0) || tests 41 tools/testing/selftests/bpf/prog_tests/obj_name.c (!tests[i].success && fd != -1) || tests 42 tools/testing/selftests/bpf/prog_tests/obj_name.c (!tests[i].success && errno != tests[i].expected_errno), tests 45 tools/testing/selftests/bpf/prog_tests/obj_name.c fd, tests[i].success, errno, tests[i].expected_errno); tests 59 tools/testing/selftests/bpf/prog_tests/obj_name.c memcpy(attr.map_name, tests[i].name, ncopy); tests 61 tools/testing/selftests/bpf/prog_tests/obj_name.c CHECK((tests[i].success && fd < 0) || tests 62 tools/testing/selftests/bpf/prog_tests/obj_name.c (!tests[i].success && fd != -1) || tests 63 tools/testing/selftests/bpf/prog_tests/obj_name.c (!tests[i].success && errno != tests[i].expected_errno), tests 66 tools/testing/selftests/bpf/prog_tests/obj_name.c fd, tests[i].success, errno, tests[i].expected_errno); tests 36 tools/testing/selftests/bpf/prog_tests/sockopt.c } tests[] = { tests 979 tools/testing/selftests/bpf/prog_tests/sockopt.c for (i = 0; i < ARRAY_SIZE(tests); i++) { tests 980 tools/testing/selftests/bpf/prog_tests/sockopt.c test__start_subtest(tests[i].descr); tests 981 tools/testing/selftests/bpf/prog_tests/sockopt.c CHECK_FAIL(run_test(cgroup_fd, &tests[i])); tests 44 tools/testing/selftests/bpf/test_align.c static struct bpf_align_test tests[] = { tests 679 tools/testing/selftests/bpf/test_align.c struct bpf_align_test *test = &tests[i]; tests 700 tools/testing/selftests/bpf/test_align.c unsigned int from = 0, to = ARRAY_SIZE(tests); tests 553 tools/testing/selftests/bpf/test_cgroup_attach.c int (*tests[])(void) = { tests 561 tools/testing/selftests/bpf/test_cgroup_attach.c for (i = 0; i < ARRAY_SIZE(tests); i++) tests 562 tools/testing/selftests/bpf/test_cgroup_attach.c if (tests[i]()) tests 22 tools/testing/selftests/bpf/test_section_names.c static struct sec_name_test tests[] = { tests 220 tools/testing/selftests/bpf/test_section_names.c for (i = 0; i < ARRAY_SIZE(tests); ++i) { tests 221 tools/testing/selftests/bpf/test_section_names.c if (run_test_case(&tests[i])) tests 47 tools/testing/selftests/bpf/test_sock.c static struct sock_test tests[] = { tests 452 tools/testing/selftests/bpf/test_sock.c for (i = 0; i < ARRAY_SIZE(tests); ++i) { tests 453 tools/testing/selftests/bpf/test_sock.c if (run_test_case(cgfd, &tests[i])) tests 103 tools/testing/selftests/bpf/test_sock_addr.c static struct sock_addr_test tests[] = { tests 1601 tools/testing/selftests/bpf/test_sock_addr.c for (i = 0; i < ARRAY_SIZE(tests); ++i) { tests 1602 tools/testing/selftests/bpf/test_sock_addr.c if (run_test_case(cgfd, &tests[i])) tests 46 tools/testing/selftests/bpf/test_sysctl.c static struct sysctl_test tests[] = { tests 1584 tools/testing/selftests/bpf/test_sysctl.c for (i = 0; i < ARRAY_SIZE(tests); ++i) { tests 1585 tools/testing/selftests/bpf/test_sysctl.c if (run_test_case(cgfd, &tests[i])) tests 165 tools/testing/selftests/bpf/test_tag.c static void do_test(uint32_t *tests, int start_insns, int fd_map, tests 181 tools/testing/selftests/bpf/test_tag.c (*tests)++; tests 187 tools/testing/selftests/bpf/test_tag.c uint32_t tests = 0; tests 195 tools/testing/selftests/bpf/test_tag.c do_test(&tests, 2, -1, bpf_gen_imm_prog); tests 196 tools/testing/selftests/bpf/test_tag.c do_test(&tests, 3, fd_map, bpf_gen_map_prog); tests 199 tools/testing/selftests/bpf/test_tag.c printf("test_tag: OK (%u tests)\n", tests); tests 351 tools/testing/selftests/bpf/test_verifier.c static struct bpf_test tests[] = { tests 1104 tools/testing/selftests/bpf/test_verifier.c struct bpf_test *test = &tests[i]; tests 1137 tools/testing/selftests/bpf/test_verifier.c unsigned int from = 0, to = ARRAY_SIZE(tests); tests 334 tools/testing/selftests/breakpoints/breakpoint_test.c unsigned int tests = 0; tests 337 tools/testing/selftests/breakpoints/breakpoint_test.c tests += 3 * COUNT_ISN_BPS; tests 338 tools/testing/selftests/breakpoints/breakpoint_test.c tests += sizeof(long) / 2 * 3 * COUNT_WPS; tests 339 tools/testing/selftests/breakpoints/breakpoint_test.c tests += sizeof(long) / 2 * 3 * COUNT_WPS; tests 340 tools/testing/selftests/breakpoints/breakpoint_test.c tests += 2; tests 341 tools/testing/selftests/breakpoints/breakpoint_test.c ksft_set_plan(tests); tests 167 tools/testing/selftests/breakpoints/step_after_suspend_test.c unsigned int tests = 0; tests 189 tools/testing/selftests/breakpoints/step_after_suspend_test.c tests++; tests 191 tools/testing/selftests/breakpoints/step_after_suspend_test.c ksft_set_plan(tests); tests 361 tools/testing/selftests/cgroup/test_core.c } tests[] = { tests 384 tools/testing/selftests/cgroup/test_core.c for (i = 0; i < ARRAY_SIZE(tests); i++) { tests 385 tools/testing/selftests/cgroup/test_core.c switch (tests[i].fn(root)) { tests 387 tools/testing/selftests/cgroup/test_core.c ksft_test_result_pass("%s\n", tests[i].name); tests 390 tools/testing/selftests/cgroup/test_core.c ksft_test_result_skip("%s\n", tests[i].name); tests 394 tools/testing/selftests/cgroup/test_core.c ksft_test_result_fail("%s\n", tests[i].name); tests 868 tools/testing/selftests/cgroup/test_freezer.c } tests[] = { tests 889 tools/testing/selftests/cgroup/test_freezer.c for (i = 0; i < ARRAY_SIZE(tests); i++) { tests 890 tools/testing/selftests/cgroup/test_freezer.c switch (tests[i].fn(root)) { tests 892 tools/testing/selftests/cgroup/test_freezer.c ksft_test_result_pass("%s\n", tests[i].name); tests 895 tools/testing/selftests/cgroup/test_freezer.c ksft_test_result_skip("%s\n", tests[i].name); tests 899 tools/testing/selftests/cgroup/test_freezer.c ksft_test_result_fail("%s\n", tests[i].name); tests 1177 tools/testing/selftests/cgroup/test_memcontrol.c } tests[] = { tests 1212 tools/testing/selftests/cgroup/test_memcontrol.c for (i = 0; i < ARRAY_SIZE(tests); i++) { tests 1213 tools/testing/selftests/cgroup/test_memcontrol.c switch (tests[i].fn(root)) { tests 1215 tools/testing/selftests/cgroup/test_memcontrol.c ksft_test_result_pass("%s\n", tests[i].name); tests 1218 tools/testing/selftests/cgroup/test_memcontrol.c ksft_test_result_skip("%s\n", tests[i].name); tests 1222 tools/testing/selftests/cgroup/test_memcontrol.c ksft_test_result_fail("%s\n", tests[i].name); tests 26 tools/testing/selftests/net/socket.c static struct socket_testcase tests[] = { tests 44 tools/testing/selftests/net/socket.c for (i = 0; i < ARRAY_SIZE(tests); i++) { tests 45 tools/testing/selftests/net/socket.c struct socket_testcase *s = &tests[i]; tests 559 tools/testing/selftests/net/udpgso.c struct testcase *tests, *test; tests 561 tools/testing/selftests/net/udpgso.c tests = addr->sa_family == AF_INET ? testcases_v4 : testcases_v6; tests 563 tools/testing/selftests/net/udpgso.c for (test = tests; test->tlen; test++) { tests 566 tools/testing/selftests/net/udpgso.c cfg_specific_test_id == test - tests) tests 671 tools/testing/selftests/sparc64/drivers/adi-test.c static int (*tests[])(int fd) = { tests 681 tools/testing/selftests/sparc64/drivers/adi-test.c #define TEST_COUNT ARRAY_SIZE(tests) tests 701 tools/testing/selftests/sparc64/drivers/adi-test.c ret = (*tests[test])(fd);