/Linux-v5.4/tools/testing/selftests/bpf/prog_tests/ |
D | global_data.c | 17 } tests[] = { in test_global_data_number() local 31 for (i = 0; i < sizeof(tests) / sizeof(tests[0]); i++) { in test_global_data_number() 32 err = bpf_map_lookup_elem(map_fd, &tests[i].key, &num); in test_global_data_number() 33 CHECK(err || num != tests[i].num, tests[i].name, in test_global_data_number() 35 err, num, tests[i].num); in test_global_data_number() 52 } tests[] = { in test_global_data_string() local 60 for (i = 0; i < sizeof(tests) / sizeof(tests[0]); i++) { in test_global_data_string() 61 err = bpf_map_lookup_elem(map_fd, &tests[i].key, str); in test_global_data_string() 62 CHECK(err || memcmp(str, tests[i].str, sizeof(str)), in test_global_data_string() 63 tests[i].name, "err %d result \'%s\' expected \'%s\'\n", in test_global_data_string() [all …]
|
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[i].success, errno, tests[i].expected_errno); in test_obj_name() 59 memcpy(attr.map_name, tests[i].name, ncopy); in test_obj_name() 61 CHECK((tests[i].success && fd < 0) || in test_obj_name() [all …]
|
D | flow_dissector.c | 103 struct test tests[] = { variable 457 for (i = 0; i < ARRAY_SIZE(tests); i++) { in test_flow_dissector() 461 .data_in = &tests[i].pkt, in test_flow_dissector() 462 .data_size_in = sizeof(tests[i].pkt), in test_flow_dissector() 467 if (tests[i].flags) { in test_flow_dissector() 470 ctx.flags = tests[i].flags; in test_flow_dissector() 476 tests[i].name, in test_flow_dissector() 480 CHECK_FLOW_KEYS(tests[i].name, flow_keys, tests[i].keys); in test_flow_dissector() 497 for (i = 0; i < ARRAY_SIZE(tests); i++) { in test_flow_dissector() 503 __u32 key = (__u32)(tests[i].keys.sport) << 16 | in test_flow_dissector() [all …]
|
/Linux-v5.4/fs/btrfs/ |
D | Makefile | 20 btrfs-$(CONFIG_BTRFS_FS_RUN_SANITY_TESTS) += tests/free-space-tests.o \ 21 tests/extent-buffer-tests.o tests/btrfs-tests.o \ 22 tests/extent-io-tests.o tests/inode-tests.o tests/qgroup-tests.o \ 23 tests/free-space-tree-tests.o tests/extent-map-tests.o
|
/Linux-v5.4/tools/perf/tests/ |
D | Build | 58 $(OUTPUT)tests/llvm-src-base.c: tests/bpf-script-example.c tests/Build 60 $(Q)echo '#include <tests/llvm.h>' > $@ 65 $(OUTPUT)tests/llvm-src-kbuild.c: tests/bpf-script-test-kbuild.c tests/Build 67 $(Q)echo '#include <tests/llvm.h>' > $@ 72 $(OUTPUT)tests/llvm-src-prologue.c: tests/bpf-script-test-prologue.c tests/Build 74 $(Q)echo '#include <tests/llvm.h>' > $@ 79 $(OUTPUT)tests/llvm-src-relocation.c: tests/bpf-script-test-relocation.c tests/Build 81 $(Q)echo '#include <tests/llvm.h>' > $@
|
/Linux-v5.4/tools/perf/Documentation/ |
D | perf-test.txt | 6 perf-test - Runs sanity tests. 15 This command does assorted sanity tests, initially through linked routines but 16 also will look for a directory with more tests in the form of scripts. 18 To get a list of available tests use 'perf test list', specifying a test name 19 fragment will show all tests that have it. 21 To run just specific tests, inform test name fragments or the numbers obtained 36 Do not fork child for each test, run all tests within single process.
|
/Linux-v5.4/drivers/of/unittest-data/ |
D | testcases.dts | 15 #include "tests-phandle.dtsi" 16 #include "tests-interrupts.dtsi" 17 #include "tests-match.dtsi" 18 #include "tests-platform.dtsi" 19 #include "tests-overlay.dtsi"
|
/Linux-v5.4/Documentation/dev-tools/ |
D | kselftest.rst | 5 The kernel contains a set of "self tests" under the tools/testing/selftests/ 6 directory. These are intended to be small tests to exercise individual code 11 write new tests using the framework on Kselftest wiki: 15 On some systems, hot-plug tests could hang forever waiting for cpu and 17 to run the full range of hot-plug tests. In default mode, hot-plug tests run 26 Running the selftests (hotplug tests are run in limited mode) 29 To build the tests:: 33 To run the tests:: 37 To build and run the tests with a single command, use:: 41 Note that some tests will require root privileges. [all …]
|
/Linux-v5.4/drivers/net/ethernet/sfc/falcon/ |
D | selftest.c | 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() argument 138 tests->interrupt = -1; in ef4_test_interrupts() 144 tests->interrupt = 0; in ef4_test_interrupts() 167 tests->interrupt = 1; in ef4_test_interrupts() 173 struct ef4_self_tests *tests) in ef4_test_eventq_irq() argument 221 tests->eventq_dma[channel->channel] = dma_seen ? 1 : -1; in ef4_test_eventq_irq() [all …]
|
/Linux-v5.4/drivers/net/ethernet/sfc/ |
D | selftest.c | 96 static int efx_test_phy_alive(struct efx_nic *efx, struct efx_self_tests *tests) in efx_test_phy_alive() argument 102 tests->phy_alive = rc ? -1 : 1; in efx_test_phy_alive() 108 static int efx_test_nvram(struct efx_nic *efx, struct efx_self_tests *tests) in efx_test_nvram() argument 117 tests->nvram = rc ? -1 : 1; in efx_test_nvram() 131 struct efx_self_tests *tests) in efx_test_interrupts() argument 138 tests->interrupt = -1; in efx_test_interrupts() 144 tests->interrupt = 0; in efx_test_interrupts() 167 tests->interrupt = 1; in efx_test_interrupts() 173 struct efx_self_tests *tests) in efx_test_eventq_irq() argument 221 tests->eventq_dma[channel->channel] = dma_seen ? 1 : -1; in efx_test_eventq_irq() [all …]
|
/Linux-v5.4/tools/memory-model/scripts/ |
D | README | 10 Run all litmus tests in the litmus-tests directory, checking 16 Run all litmus tests in the https://github.com/paulmckrcu/litmus 23 Run all litmus tests having .litmus.out files from previous 33 Compare output from two different runs of the same litmus tests, 34 with the absolute pathnames of the tests to run provided one 40 Run all litmus tests having no more than the specified number 53 For all new or updated litmus tests having no more than the 64 Run the litmus tests whose absolute pathnames are provided one
|
/Linux-v5.4/tools/testing/vsock/ |
D | README | 3 These tests exercise net/vmw_vsock/ host<->guest sockets for VMware, KVM, and 6 The following tests are available: 11 to running tests: 13 1. Build the kernel and these tests. 14 2. Install the kernel and tests on the host. 15 3. Install the kernel and tests inside the guest.
|
/Linux-v5.4/crypto/async_tx/ |
D | raid6test.c | 144 static int test(int disks, int *tests) in test() argument 176 (*tests)++; in test() 187 int tests = 0; in raid6_test() local 201 err += test(4, &tests); in raid6_test() 203 err += test(5, &tests); in raid6_test() 208 err += test(11, &tests); in raid6_test() 209 err += test(12, &tests); in raid6_test() 217 err += test(24, &tests); in raid6_test() 219 err += test(NDISKS, &tests); in raid6_test() 223 tests, err, err == 1 ? "" : "s"); in raid6_test()
|
/Linux-v5.4/tools/testing/selftests/livepatch/ |
D | README | 5 This is a small set of sanity tests for the kernel livepatching. 9 buffer and parsed for expected messages. (Note: the tests will clear 10 the message buffer between individual tests.) 22 Running the tests 34 Adding tests 40 "test_klp" strings, so tests be sure to include one of those strings for
|
/Linux-v5.4/Documentation/misc-devices/ |
D | pci-endpoint-test.txt | 7 The "pci_endpoint_test" driver can be used to perform the following tests. 9 The PCI driver for the test device performs the following tests 20 should be used to perform the above tests. 34 PCITEST_WRITE: Perform write tests. The size of the buffer should be passed 36 PCITEST_READ: Perform read tests. The size of the buffer should be passed 38 PCITEST_COPY: Perform read tests. The size of the buffer should be passed
|
/Linux-v5.4/kernel/rcu/ |
D | Kconfig.debug | 27 tristate "performance tests for RCU" 35 tests on the RCU infrastructure. The kernel module may be built 38 Say Y here if you want RCU performance tests to be built into 40 Say M if you want the RCU performance tests to build as a module. 44 tristate "torture tests for RCU" 51 This option provides a kernel module that runs torture tests 55 Say Y here if you want RCU torture tests to be built into 57 Say M if you want the RCU torture tests to build as a module.
|
/Linux-v5.4/drivers/gpu/drm/i915/gt/ |
D | selftest_engine.c | 12 static int (* const tests[])(struct intel_gt *) = { in intel_engine_live_selftests() local 17 typeof(*tests) *fn; in intel_engine_live_selftests() 19 for (fn = tests; *fn; fn++) { in intel_engine_live_selftests()
|
/Linux-v5.4/tools/testing/selftests/bpf/ |
D | test_tag.c | 165 static void do_test(uint32_t *tests, int start_insns, int fd_map, in do_test() argument 181 (*tests)++; in do_test() 187 uint32_t tests = 0; in main() local 195 do_test(&tests, 2, -1, bpf_gen_imm_prog); in main() 196 do_test(&tests, 3, fd_map, bpf_gen_map_prog); in main() 199 printf("test_tag: OK (%u tests)\n", tests); in main()
|
/Linux-v5.4/drivers/gpu/drm/i915/gem/selftests/ |
D | i915_gem_object.c | 76 static const struct i915_subtest tests[] = { in i915_gem_object_mock_selftests() local 86 err = i915_subtests(tests, i915); in i915_gem_object_mock_selftests() 94 static const struct i915_subtest tests[] = { in i915_gem_object_live_selftests() local 98 return i915_subtests(tests, i915); in i915_gem_object_live_selftests()
|
/Linux-v5.4/tools/testing/scatterlist/ |
D | main.c | 30 } *test, tests[] = { in main() local 55 for (i = 0, test = tests; test->expected_segments; test++, i++) { in main() 76 assert(i == (sizeof(tests) / sizeof(tests[0])) - 1); in main()
|
/Linux-v5.4/tools/testing/selftests/tc-testing/ |
D | README | 5 tdc is a Python script to load tc unit tests from a separate JSON file and 18 prior to running the tests when using nsPlugin. 21 unit tests. See the config file in this directory for minimum required 22 features. As new tests will be added, config options list will be updated. 32 handled in a future version - the current workaround is to run the tests 63 Running tdc without any arguments will run all tests. Refer to the section 68 TAP (Test Anything Protocol) format when they are done. If tests fail, 76 One run of tests is considered a "test suite" (this will be refined in the 93 tests the return code against one or more acceptable values. The 105 the tests to be run. These values are used in the tc commands that will be [all …]
|
/Linux-v5.4/tools/lib/lockdep/ |
D | run_tests.sh | 10 find tests -name '*.c' | sort | while read -r i; do 22 find tests -name '*.c' | sort | while read -r i; do 35 find tests -name '*.c' | sort | while read -r i; do
|
/Linux-v5.4/tools/testing/selftests/breakpoints/ |
D | breakpoint_test.c | 334 unsigned int tests = 0; in launch_tests() local 337 tests += 3 * COUNT_ISN_BPS; in launch_tests() 338 tests += sizeof(long) / 2 * 3 * COUNT_WPS; in launch_tests() 339 tests += sizeof(long) / 2 * 3 * COUNT_WPS; in launch_tests() 340 tests += 2; in launch_tests() 341 ksft_set_plan(tests); in launch_tests()
|
/Linux-v5.4/tools/perf/tests/attr/ |
D | README | 1 The struct perf_event_attr test (attr tests) support 12 The attr tests consist of following parts: 14 tests/attr.c 25 tests/attr.py 30 tests/attr/ 33 Following tests are defined (with perf commands):
|
/Linux-v5.4/tools/testing/selftests/net/ |
D | socket.c | 26 static struct socket_testcase tests[] = { variable 44 for (i = 0; i < ARRAY_SIZE(tests); i++) { in run_tests() 45 struct socket_testcase *s = &tests[i]; in run_tests()
|