/linux-master/tools/testing/selftests/net/ |
H A D | reuseport_dualstack.c | 10 * This test creates these mixed AF_INET/AF_INET6 sockets and asserts the 128 static void test(int *rcv_fds, int count, int proto) function 166 test(rcv_fds, 10, SOCK_DGRAM); 173 test(rcv_fds, 10, SOCK_DGRAM); 183 test(rcv_fds, 32, SOCK_DGRAM); 190 test(rcv_fds, 32, SOCK_DGRAM); 197 test(rcv_fds, 10, SOCK_STREAM); 204 test(rcv_fds, 10, SOCK_STREAM);
|
H A D | devlink_port_split.py | 13 # The test is skipped in case the attribute is not available. 119 if not test(stderr != "", "%s is unsplittable" % port.name): 137 test(stderr == "", "Unsplit port %s" % port) 169 def test(cond, msg): function 219 test(exists_and_lanes(new_split_group, lanes/k, dev), 227 Determine if test should be skipped by checking: 234 skip_reason = "{} not found in devlink output, test skipped".format(target_property) 239 skip_reason = 'devlink output is empty, test skipped' 247 parser = argparse.ArgumentParser(description='A test for port splitting.') 249 help='The devlink handle of the device under test [all...] |
/linux-master/crypto/async_tx/ |
H A D | raid6test.c | 3 * asynchronous raid6 recovery self test 6 * based on drivers/md/raid6test/test.c: 152 static int test(int disks, int *tests) function 209 err += test(4, &tests); 211 err += test(5, &tests); 216 err += test(11, &tests); 217 err += test(12, &tests); 225 err += test(24, &tests); 227 err += test(NDISKS, &tests);
|
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | test_tc_dtime.c | 81 __u32 test = 0; variable 85 if (test < __NR_TESTS) 86 dtimes[test][idx]++; 93 if (test < __NR_TESTS) 94 errs[test][idx]++; 111 return test == TCP_IP6_CLEAR_DTIME; 116 return test < TCP_IP4_RT_FWD; 121 switch (test) { 139 __u16 dst_ns_port = __bpf_htons(50000 + test);
|
/linux-master/drivers/iio/test/ |
H A D | iio-test-rescale.c | 14 #include <kunit/test.h> 646 static void iio_rescale_test_scale(struct kunit *test) argument 648 struct rescale_tc_data *t = (struct rescale_tc_data *)test->param_value; 649 char *buff = kunit_kmalloc(test, PAGE_SIZE, GFP_KERNEL); 665 KUNIT_EXPECT_EQ(test, (int)strlen(buff), ret); 668 KUNIT_EXPECT_GE_MSG(test, rel_ppm, 0, "failed to compute ppm\n"); 670 KUNIT_EXPECT_EQ_MSG(test, rel_ppm, 0, 676 static void iio_rescale_test_offset(struct kunit *test) argument 678 struct rescale_tc_data *t = (struct rescale_tc_data *)test->param_value; 679 char *buff_off = kunit_kmalloc(test, PAGE_SIZ [all...] |
/linux-master/tools/perf/tests/ |
H A D | stat.c | 50 static int test__synthesize_stat_config(struct test_suite *test __maybe_unused, 81 static int test__synthesize_stat(struct test_suite *test __maybe_unused, int subtest __maybe_unused) 108 static int test__synthesize_stat_round(struct test_suite *test __maybe_unused, int subtest __maybe_unused)
|
H A D | demangle-ocaml-test.c | 10 static int test__demangle_ocaml(struct test_suite *test __maybe_unused, int subtest __maybe_unused)
|
H A D | genelf.c | 17 #define TEMPL "/tmp/perf-test-XXXXXX" 19 static int test__jit_write_elf(struct test_suite *test __maybe_unused,
|
H A D | sdt.c | 16 /* To test SDT event, we need libelf support to scan elf binary */ 79 static int test__sdt_event(struct test_suite *test __maybe_unused, int subtests __maybe_unused) 82 char __tempdir[] = "./test-buildid-XXXXXX"; 117 static int test__sdt_event(struct test_suite *test __maybe_unused, int subtests __maybe_unused) 119 pr_debug("Skip SDT event test because SDT support is not compiled\n");
|
H A D | pe-file-parsing.c | 72 static int test__pe_file_parsing(struct test_suite *test __maybe_unused, 93 static int test__pe_file_parsing(struct test_suite *test __maybe_unused,
|
/linux-master/tools/testing/selftests/openat2/ |
H A D | resolve_test.c | 21 * Construct a test directory with the following structure: 446 struct basic_test *test = &tests[i]; local 455 if (!(test->how.flags & O_CREAT)) 456 test->how.flags |= O_PATH; 458 if (test->dir) 459 dfd = openat(rootfd, test->dir, O_PATH | O_DIRECTORY); 462 E_assert(dfd, "failed to openat root '%s': %m", test->dir); 466 fd = sys_openat2(dfd, test->path, &test->how); 467 if (test [all...] |
/linux-master/drivers/net/wireless/mediatek/mt76/mt7915/ |
H A D | testmode.c | 59 if (phy->mt76->test.state != MT76_TM_STATE_OFF) 60 tx_power = phy->mt76->test.tx_power; 141 .testmode_en = !(phy->mt76->test.state == MT76_TM_STATE_OFF), 258 struct mt76_testmode_data *td = &mphy->test; 339 u32 *b = phy->test.reg_backup; 361 if (phy->mt76->test.state == MT76_TM_STATE_OFF) { 372 phy->test.reg_backup = b; 437 struct mt76_testmode_data *td = &phy->mt76->test; 451 phy->test.spe_idx = td->tx_spe_idx; 453 phy->test [all...] |
/linux-master/tools/testing/selftests/ |
H A D | kselftest_module.h | 9 * Test framework for writing test modules to be loaded by kselftest. 10 * See Documentation/dev-tools/kselftest.rst for an example test module. 56 MODULE_INFO(test, "Y");
|
H A D | kselftest_deps.sh | 20 echo "- Parses all test/sub-test Makefile to find library dependencies." 21 echo "- Runs compile test on a trivial C file with LDLIBS specified" 22 echo " in the test Makefiles to identify missing library dependencies." 26 echo "- Prints pass/fail dependency check for each tests/sub-test." 29 echo "- Optional: test name can be specified to check dependencies for it." 76 # Generate tmp source fire for compile test 99 # Single test case 102 test=$2/Makefile 104 l1_test $test [all...] |
/linux-master/fs/afs/ |
H A D | addr_prefs.c | 462 struct afs_addr_preference test; local 470 test.family = AF_INET; 471 test.subnet_mask = 32; 472 test.prio = 0; 476 test.ipv4_addr = sin->sin_addr; 478 cmp = afs_cmp_address_pref(&test, &preflist->prefs[j]); 492 test.family = AF_INET6; 493 test.subnet_mask = 128; 494 test.prio = 0; 498 test [all...] |
/linux-master/tools/testing/selftests/nolibc/ |
H A D | nolibc-test.c | 45 #include "nolibc-test-linkage.h" 51 /* will be used to test initialization of environ */ 54 /* will be used to test initialization of argv */ 57 /* will be used to test initialization of argc */ 60 /* will be used by some test cases as readable file, please don't write it */ 67 struct test { struct 68 const char *name; /* test name */ 604 /* declare tests based on line numbers. There must be exactly one test per line. */ 606 case __LINE__: llen += printf("%d %s", test, #name); 623 int test; local 881 int test; local 988 int test; local 1125 int test; local 1286 is_setting_valid(char *test) argument 1322 char *test; local [all...] |
/linux-master/tools/testing/selftests/x86/ |
H A D | test_FISTTP.c | 21 int test(void) function 131 err |= test();
|
/linux-master/tools/testing/selftests/powerpc/mm/ |
H A D | stack_expansion_signal.c | 6 * Based on test code by Tom Lane. 101 int test(void) function 117 return test_harness(test, "stack_expansion_signal");
|
H A D | bad_accesses.c | 67 static int test(void) function 143 return test_harness(test, "bad_accesses");
|
H A D | large_vm_gpr_corruption.c | 16 // The test works by creating mappings above 512TB, to trigger the large address space 104 static int test(void) function 157 return test_harness(test, "large_vm_gpr_corruption");
|
/linux-master/drivers/vhost/ |
H A D | test.c | 5 * test virtio server in host kernel. 18 #include "test.h" 166 static long vhost_test_run(struct vhost_test *n, int test) argument 172 if (test < 0 || test > 1) 191 priv = test ? n : NULL; 318 int test; local 323 if (copy_from_user(&test, argp, sizeof test)) 325 return vhost_test_run(n, test); [all...] |
/linux-master/tools/testing/selftests/tc-testing/plugin-lib/ |
H A D | nsPlugin.py | 28 def prepare_test(self, test): 29 if 'skip' in test and test['skip'] == 'yes': 32 if 'nsPlugin' not in test['plugins']: 56 def pre_case(self, test, test_skip): 63 self.prepare_test(test)
|
/linux-master/drivers/gpu/drm/xe/ |
H A D | xe_dma_buf.c | 8 #include <kunit/test.h> 262 XE_TEST_DECLARE(struct dma_buf_test_params *test = 273 !XE_TEST_ONLY(test && test->force_different_devices)) { 294 if (test) 295 attach_ops = test->attach_ops;
|
/linux-master/drivers/net/wireless/mediatek/mt76/ |
H A D | testmode.c | 33 struct mt76_testmode_data *td = &phy->test; 95 struct mt76_testmode_data *td = &phy->test; 106 struct mt76_testmode_data *td = &phy->test; 180 struct mt76_testmode_data *td = &phy->test; 272 struct mt76_testmode_data *td = &phy->test; 284 struct mt76_testmode_data *td = &phy->test; 314 struct mt76_testmode_data *td = &phy->test; 332 enum mt76_testmode_state prev_state = phy->test.state; 356 memset(&phy->test.rx_stats, 0, sizeof(phy->test [all...] |
/linux-master/drivers/net/ethernet/intel/ixgbevf/ |
H A D | ethtool.c | 69 "Register test (offline)", 70 "Link test (on/offline)" 562 /* ethtool register test data */ 588 /* default VF register test */ 622 "pattern test reg %04X failed: got 0x%08X expected 0x%08X\n", 647 pr_err("set/check reg %04X test failed: got 0x%08X expected 0x%08X\n", 659 const struct ixgbevf_reg_test *test; local 664 "Adapter removed - register test blocked\n"); 668 test = reg_test_vf; 670 /* Perform the register test, loopin [all...] |