/linux-master/fs/unicode/ |
H A D | utf8-selftest.c | 27 pr_err("test %s:%d Failed: %s%s", \ 34 #define test(cond) _test(cond, __func__, __LINE__, "") macro 119 /* Cherokee letters are interesting test-cases because they fold 184 test((utf8len(um, UTF8_NFDI, nfdi_test_data[i].str) == nlen)); 185 test((utf8nlen(um, UTF8_NFDI, nfdi_test_data[i].str, len) == 198 test((j == nlen)); 213 test((utf8len(um, UTF8_NFDICF, nfdicf_test_data[i].str) == 215 test((utf8nlen(um, UTF8_NFDICF, nfdicf_test_data[i].str, len) == 229 test((j == nlen)); 261 test(utf8version_is_supporte [all...] |
/linux-master/arch/x86/events/ |
H A D | probe.c | 43 if (msr[bit].test && !msr[bit].test(bit, data))
|
H A D | probe.h | 9 bool (*test)(int idx, void *data); member in struct:perf_msr
|
/linux-master/lib/kunit/ |
H A D | string-stream.h | 32 struct string_stream *kunit_alloc_string_stream(struct kunit *test, gfp_t gfp); 33 void kunit_free_string_stream(struct kunit *test, struct string_stream *stream);
|
H A D | attributes.c | 3 * KUnit API to save and access test attributes 9 #include <kunit/test.h> 13 * PRINT_ALWAYS - attribute is printed for every test case and suite if set 14 * PRINT_SUITE - attribute is printed for every suite if set but not for test cases 24 * struct kunit_attr - represents a test attribute and holds flexible 27 * @name: name of test attribute, eg. speed 28 * @get_attr: function to return attribute value given a test 216 struct kunit_case *test = is_test ? test_or_suite : NULL; local 218 if (test) 219 return ((void *) test 227 struct kunit_case *test = is_test ? test_or_suite : NULL; local 241 struct kunit_case *test = is_test ? test_or_suite : NULL; local 292 struct kunit_case *test = is_test ? test_or_suite : NULL; local [all...] |
/linux-master/drivers/gpu/drm/xe/tests/ |
H A D | xe_pci.c | 10 #include <kunit/test-bug.h> 11 #include <kunit/test.h> 12 #include <kunit/test-bug.h> 62 kunit_skip(current->kunit_test, "test runs only on hardware\n"); 114 struct kunit *test = kunit_get_current_test(); local 115 struct xe_pci_fake_data *data = test->priv; 128 struct kunit *test = kunit_get_current_test(); local 129 struct xe_pci_fake_data *data = test->priv; 162 kunit_activate_static_stub(test, read_gmdid, fake_read_gmdid);
|
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | tailcall_poke.c | 16 int BPF_PROG(test, int a)
|
/linux-master/scripts/kconfig/tests/choice_randomize/ |
H A D | __init__.py | 11 def test(conf): function
|
/linux-master/net/mptcp/ |
H A D | crypto_test.c | 2 #include <kunit/test.h> 12 /* we can't reuse RFC 4231 test vectors, as we have constraint on the 33 static void mptcp_crypto_test_basic(struct kunit *test) argument 56 KUNIT_EXPECT_STREQ(test, &hmac_hex[0], tests[i].result);
|
/linux-master/drivers/net/wireless/intel/iwlwifi/tests/ |
H A D | devinfo.c | 7 #include <kunit/test.h> 21 static void devinfo_table_order(struct kunit *test) argument 37 KUNIT_FAIL(test,
|
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | cls_redirect.c | 205 static int test_str(void *buf, size_t len, const struct test_cfg *test, argument 215 if (test->type == UDP) 219 if (test->conn == UNKNOWN_CONN) 223 if (test->hops == ONE_HOP) 227 if (test->result == FORWARD) 231 if (test->flags == SYN) 233 else if (test->flags == ACK) 276 static size_t build_input(const struct test_cfg *test, void *const buf, argument 293 encap_init(&encap, test->hops == ONE_HOP ? 1 : 0, proto); 296 if (test 400 struct test_cfg *test = &tests[i]; local [all...] |
H A D | ctx_rewrite.c | 17 /* The code in this file serves the sole purpose of executing test cases 18 * specified in the test_cases array. Each test case specifies a program 23 * For each test case, up to three programs are created: 29 * specified in the test case. 757 static void run_one_testcase(struct btf *btf, struct test_case *test) argument 762 if (!test__start_subtest(test->name)) 765 switch (test->field_sz) { 779 PRINT_FAIL("Unexpected field size: %d, want 8,4,2 or 1\n", test->field_sz); 783 pinfo.prog_type = test->prog_type; 784 pinfo.expected_attach_type = test [all...] |
H A D | sk_assign.c | 304 struct test_sk_cfg *test = &tests[i]; local 309 if (!test__start_subtest(test->name)) 311 prepare_addr(test->addr, test->family, BIND_PORT, false); 312 addr = (const struct sockaddr *)test->addr; 313 server = start_server(addr, test->len, test->type); 324 prepare_addr(test->addr, test->family, CONNECT_PORT, 325 test [all...] |
/linux-master/tools/testing/selftests/net/ |
H A D | udpgso.c | 392 static void run_one(struct testcase *test, int fdt, int fdr, argument 400 test->tlen, test->gso_len, 401 test->tfail ? "(fail)" : ""); 403 val = test->gso_len; 409 sent = send_one(fdt, test->tlen, test->gso_len, addr, alen); 410 if (sent && test->tfail) 412 if (!sent && !test->tfail) 417 if (test 446 struct testcase *tests, *test; local [all...] |
/linux-master/crypto/ |
H A D | testmgr.c | 57 MODULE_PARM_DESC(fuzz_iterations, "number of fuzz test iterations"); 142 int (*test)(const struct alg_test_desc *desc, const char *driver, member in struct:alg_test_desc 255 * crypto test vector. 259 * scales to fit any test vector 276 * struct testvec_config - configuration for testing a crypto test vector 279 * crypto test vector can be tested. 281 * @name: name of this config, logged for debugging purposes if a test fails 314 * The following are the lists of testvec_configs to test for each algorithm 316 * CONFIG_CRYPTO_MANAGER_DISABLE_TESTS is unset. They aim to provide good test 317 * coverage, while keeping the test tim 3794 drbg_cavs_test(const struct drbg_testvec *test, int pr, const char *driver, u32 type, u32 mask) argument [all...] |
/linux-master/drivers/net/wireless/mediatek/mt76/mt7615/ |
H A D | testmode.c | 70 if (mphy->test.state != MT76_TM_STATE_OFF) 71 tx_power = mphy->test.tx_power; 101 u32 *b = phy->test.reg_backup; 106 if (phy->mt76->test.state == MT76_TM_STATE_OFF) { 124 phy->test.reg_backup = b; 141 mt7615_mcu_set_sku_en(phy, phy->mt76->test.state == MT76_TM_STATE_OFF); 175 struct mt76_testmode_data *td = &phy->mt76->test; 229 struct sk_buff *skb = phy->mt76->test.tx_skb; 245 struct mt76_testmode_data *td = &phy->mt76->test; 246 bool en = phy->mt76->test [all...] |
/linux-master/tools/testing/selftests/resctrl/ |
H A D | mbm_test.c | 3 * Memory Bandwidth Monitoring (MBM) test 89 static int mbm_setup(const struct resctrl_test *test, argument 101 ret = write_schemata(p->ctrlgrp, "100", uparams->cpu, test->resource); 113 static int mbm_run_test(const struct resctrl_test *test, const struct user_params *uparams) argument 127 ret = resctrl_val(test, uparams, uparams->benchmark_cmd, ¶m); 141 static bool mbm_feature_check(const struct resctrl_test *test) argument
|
/linux-master/net/bpf/ |
H A D | test_run.c | 99 * repetition of the test run. 442 void __user *data_out = u64_to_user_ptr(kattr->test.data_out); 449 if (kattr->test.data_size_out && 450 copy_size > kattr->test.data_size_out) { 451 copy_size = kattr->test.data_size_out; 491 if (copy_to_user(&uattr->test.data_size_out, &size, sizeof(size))) 493 if (copy_to_user(&uattr->test.retval, &retval, sizeof(retval))) 495 if (copy_to_user(&uattr->test.duration, &duration, sizeof(duration))) 641 void __user *data_in = u64_to_user_ptr(kattr->test.data_in); 672 if (kattr->test [all...] |
/linux-master/lib/ |
H A D | overflow_kunit.c | 10 #include <kunit/test.h> 22 kunit_skip(test, reason); \ 260 KUNIT_EXPECT_EQ_MSG(test, _of, of, \ 263 KUNIT_EXPECT_EQ_MSG(test, _r, r, \ 268 KUNIT_EXPECT_EQ_MSG(test, _a_orig, _a_bump, \ 270 KUNIT_EXPECT_EQ_MSG(test, _b_orig, _b_bump, \ 274 KUNIT_EXPECT_TRUE_MSG(test, _r == r, \ 281 KUNIT_EXPECT_EQ_MSG(test, _a_orig, _a_bump, \ 283 KUNIT_EXPECT_EQ_MSG(test, _b_orig, _b_bump, \ 311 KUNIT_EXPECT_TRUE_MSG(test, _ 418 shift_sane_test(struct kunit *test) argument 467 shift_overflow_test(struct kunit *test) argument 521 shift_truncate_test(struct kunit *test) argument 559 shift_nonsense_test(struct kunit *test) argument 669 overflow_allocation_test(struct kunit *test) argument 707 overflow_size_helpers_test(struct kunit *test) argument 797 overflows_type_test(struct kunit *test) argument 1009 same_type_test(struct kunit *test) argument 1084 castable_to_type_test(struct kunit *test) argument 1181 DEFINE_FLEX_test(struct kunit *test) argument [all...] |
/linux-master/net/wireless/tests/ |
H A D | chan.c | 8 #include <kunit/test.h> 31 /* we test both ways around, so c2 should always be the compat one */ 129 /* similar to previous test but one has lower BW */ 193 static void test_chandef_compat(struct kunit *test) argument 195 const struct chandef_compat_case *params = test->param_value; 203 KUNIT_EXPECT_EQ(test, cfg80211_chandef_valid(&c1), true); 204 KUNIT_EXPECT_EQ(test, cfg80211_chandef_valid(¶ms->c2), true); 209 KUNIT_EXPECT_PTR_EQ(test, ret, expect); 215 KUNIT_EXPECT_PTR_EQ(test, ret, expect);
|
/linux-master/tools/testing/selftests/kvm/aarch64/ |
H A D | page_fault_test.c | 5 * This test tries different combinations of guest accesses (e.g., write, 21 /* Guest virtual addresses that point to the test page and its PTE. */ 53 /* Skip the test if any prepare function returns false */ 253 static bool guest_prepare(struct test_desc *test) argument 259 prepare_fn = test->guest_prepare[i]; 267 static void guest_test_check(struct test_desc *test) argument 273 check_fn = test->guest_test_check[i]; 279 static void guest_code(struct test_desc *test) argument 281 if (!guest_prepare(test)) 284 GUEST_SYNC(test 367 struct test_desc *test = p->test_desc; local 388 free_uffd(struct test_desc *test, struct uffd_desc *pt_uffd, struct uffd_desc *data_uffd) argument 541 setup_abort_handlers(struct kvm_vm *vm, struct kvm_vcpu *vcpu, struct test_desc *test) argument 622 setup_default_handlers(struct test_desc *test) argument 631 check_event_counts(struct test_desc *test) argument 640 struct test_desc *test = p->test_desc; local 657 vcpu_run_loop(struct kvm_vm *vm, struct kvm_vcpu *vcpu, struct test_desc *test) argument 701 struct test_desc *test = p->test_desc; local [all...] |
/linux-master/net/sunrpc/auth_gss/ |
H A D | gss_krb5_test.c | 5 * KUnit test of SunRPC's GSS Kerberos mechanism. Subsystem 9 #include <kunit/test.h> 43 static void kdf_case(struct kunit *test) argument 45 const struct gss_krb5_test_param *param = test->param_value; 53 kunit_skip(test, "Encryption type is not available"); 55 derivedkey.data = kunit_kzalloc(test, param->expected_result->len, 57 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, derivedkey.data); 63 KUNIT_ASSERT_EQ(test, err, 0); 66 KUNIT_EXPECT_EQ_MSG(test, 72 static void checksum_case(struct kunit *test) argument 303 rfc3961_nfold_case(struct kunit *test) argument 527 rfc3962_encrypt_case(struct kunit *test) argument 1114 rfc6803_encrypt_case(struct kunit *test) argument 1609 rfc8009_encrypt_case(struct kunit *test) argument 1784 encrypt_selftest_case(struct kunit *test) argument [all...] |
/linux-master/sound/soc/ |
H A D | soc-utils-test.c | 5 #include <kunit/test.h> 118 static void test_tdm_params_to_bclk_one(struct kunit *test, argument 141 KUNIT_ASSERT_EQ(test, expected_bclk, (unsigned int)got_bclk); 144 static void test_tdm_params_to_bclk(struct kunit *test) argument 149 test_tdm_params_to_bclk_one(test, 162 test_tdm_params_to_bclk_one(test, 173 static void test_snd_soc_params_to_bclk_one(struct kunit *test, argument 193 KUNIT_ASSERT_EQ(test, expected_bclk, (unsigned int)got_bclk); 196 static void test_snd_soc_params_to_bclk(struct kunit *test) argument 202 * snd_soc_params_to_bclk() is all the test case [all...] |
/linux-master/tools/testing/selftests/bpf/ |
H A D | test_progs.c | 228 static void print_test_result(const struct prog_test_def *test, const struct test_state *test_state) argument 233 fprintf(env.stdout, "#%-*d %s:", TEST_NUM_WIDTH, test->test_num, test->test_name); 284 static void dump_test_log(const struct prog_test_def *test, argument 314 jsonw_string_field(w, "name", test->test_name); 315 jsonw_uint_field(w, "number", test->test_num); 336 print_subtest_name(test->test_num, i + 1, 337 test->test_name, subtest_state->name, 356 print_test_result(test, test_state); 362 * it after each test/su 407 struct prog_test_def *test = env.test; local 432 struct prog_test_def *test = env.test; local 537 bpf_find_map(const char *test, struct bpf_object *obj, const char *name) argument 1114 struct prog_test_def *test = &prog_test_defs[test_num]; local 1234 struct prog_test_def *test; local 1371 struct prog_test_def *test = &prog_test_defs[i]; local 1454 struct prog_test_def *test = &prog_test_defs[i]; local 1582 struct prog_test_def *test = &prog_test_defs[test_to_run]; local 1713 struct prog_test_def *test = &prog_test_defs[i]; local 1773 struct prog_test_def *test = &prog_test_defs[i]; local [all...] |
/linux-master/tools/perf/tests/ |
H A D | demangle-java-test.c | 10 static int test__demangle_java(struct test_suite *test __maybe_unused, int subtest __maybe_unused)
|