/linux-master/tools/testing/selftests/kvm/x86_64/ |
H A D | pmu_event_filter_test.c | 374 * test code herein has been verified to work on Zen1, Zen2, and Zen3. 444 * the test. Only that they are zero or non-zero. 528 * These are the test cases for the masked events tests. 530 * For each test, the guest enables 3 PMU counters (loads, stores, 532 * provided. The test then verifies that the counters agree with which 606 static int append_test_events(const struct masked_events_test *test, argument 612 evts = use_intel_pmu() ? test->intel_events : test->amd_events; 635 const struct masked_events_test *test = &test_cases[i]; local 637 /* Do any test cas [all...] |
/linux-master/tools/testing/selftests/mm/ |
H A D | uffd-unit-tests.c | 14 /* The unit test doesn't need a large or random size, make it 32MB for now */ 70 /* Arguments to be passed over to each uffd unit test */ 124 * return 1 even if some test failed as long as uffd supported, because in 187 uffd_setup_environment(uffd_test_args_t *args, uffd_test_case_t *test, argument 192 uffd_test_case_ops = test->test_case_ops; 203 /* Initialize test arguments */ 206 return uffd_test_ctx_init(test->uffd_feature_required, errmsg); 209 static bool uffd_feature_supported(uffd_test_case_t *test) argument 216 return (features & test->uffd_feature_required) == 217 test 269 struct pin_longterm_test test = { local 1484 uffd_test_case_t *test; local [all...] |
/linux-master/lib/ |
H A D | crc32test.c | 550 /* 100 test cases */ 554 u32 length; /* random 11 bit length of test */ 558 } const test[] __initconst = 678 bytes += test[i].length; 680 crc ^= __crc32c_le(test[i].crc, test_buf + 681 test[i].start, test[i].length); 689 if (test[i].crc32c_le != __crc32c_le(test[i].crc, test_buf + 690 test[ [all...] |
H A D | atomic64_test.c | 33 * @test should be a macro accepting parameters (bit, op, ...) 36 #define FAMILY_TEST(test, bit, op, args...) \ 38 test(bit, op, ##args); \ 39 test(bit, op##_acquire, ##args); \ 40 test(bit, op##_release, ##args); \ 41 test(bit, op##_relaxed, ##args); \
|
H A D | stackinit_kunit.c | 14 #include <kunit/test.h> 30 /* Location and size tracking to validate fill and test are colocated. */ 43 /* Whether the test is expected to fail. */ 67 * On m68k, if the leaf function test variable is longer than 8 bytes, 69 * test m68k char arrays, but leave it at 16 for other architectures. 150 * @name: unique string name for the test 154 * @xfail: is this test expected to fail? 158 static noinline void test_ ## name (struct kunit *test) \ 164 /* Notice when a new test is larger than expected. */ \ 169 /* Clear entire check buffer for 0xFF overlap test [all...] |
/linux-master/kernel/trace/ |
H A D | trace_events_filter_test.h | 3 #define TRACE_SYSTEM test
|
/linux-master/net/bridge/ |
H A D | br_mrp_switchdev.c | 106 struct switchdev_obj_ring_test_mrp test = { local 119 return br_mrp_switchdev_port_obj(br, &test.obj, interval != 0); 199 struct switchdev_obj_in_test_mrp test = { local 211 return br_mrp_switchdev_port_obj(br, &test.obj, interval != 0);
|
/linux-master/drivers/net/ethernet/xscale/ |
H A D | ixp46x_ts.h | 30 u32 test; /* 0x10 Time Sync Test Register */ member in struct:ixp46x_ts_regs
|
/linux-master/drivers/net/wireless/mediatek/mt76/mt7915/ |
H A D | testmode.h | 46 u8 test[72]; member in union:mt7915_tm_cmd::__anon1974
|
/linux-master/tools/perf/tests/ |
H A D | evsel-tp-sched.c | 35 static int test__perf_evsel__tp_sched_test(struct test_suite *test __maybe_unused,
|
H A D | openat-syscall.c | 17 static int test__openat_syscall_event(struct test_suite *test __maybe_unused,
|
H A D | parse-no-sample-id-all.c | 60 * test__parse_no_sample_id_all - test parsing with no sample_id_all bit set. 66 * more than one selected event, so this test processes three events: 2 69 * Return: %0 on success, %-1 if the test fails. 71 static int test__parse_no_sample_id_all(struct test_suite *test __maybe_unused,
|
H A D | bitmap.c | 44 static int test__bitmap_print(struct test_suite *test __maybe_unused, int subtest __maybe_unused)
|
/linux-master/tools/perf/arch/x86/tests/ |
H A D | amd-ibs-via-core-pmu.c | 40 int test__amd_ibs_via_core_pmu(struct test_suite *test __maybe_unused,
|
/linux-master/arch/alpha/lib/ |
H A D | strrchr.S | 22 zapnot a1, 1, a1 # e0 : zero extend our test character 24 sll a1, 8, t5 # e0 : replicate our test character 39 andnot t1, t4, t1 # .. e1 : clear garbage from null test 40 andnot t3, t4, t3 # e0 : clear garbage from char test
|
/linux-master/drivers/net/ethernet/sfc/siena/ |
H A D | ethtool_common.h | 19 struct ethtool_test *test, u64 *data);
|
/linux-master/arch/s390/lib/ |
H A D | test_unwind.c | 6 #include <kunit/test.h> 494 static void test_unwind_flags(struct kunit *test) argument 499 current_test = test; 500 params = (const struct test_params *)test->param_value; 503 KUNIT_EXPECT_EQ(test, 0, test_unwind_task(&u)); 505 KUNIT_EXPECT_EQ(test, 0, test_unwind_irq(&u)); 507 KUNIT_EXPECT_EQ(test, 0, unwindme_func1(&u));
|
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | fib_lookup.c | 213 const struct fib_lookup_test *test, 222 params->tbid = test->tbid; 223 params->mark = test->mark; 225 if (inet_pton(AF_INET6, test->daddr, params->ipv6_dst) == 1) { 227 if (!(test->lookup_flags & BPF_FIB_LOOKUP_SRC)) { 236 ret = inet_pton(AF_INET, test->daddr, ¶ms->ipv4_dst); 241 if (!(test->lookup_flags & BPF_FIB_LOOKUP_SRC)) { 303 /* The test does not use the skb->data, so 304 * use pkt_v6 for both v6 and v4 test. 212 set_lookup_params(struct bpf_fib_lookup *params, const struct fib_lookup_test *test, int ifindex) argument
|
H A D | linked_list.c | 17 #define TEST(test, off) \ 18 { #test "_missing_lock_push_front", \ 20 { #test "_missing_lock_push_back", \ 22 { #test "_missing_lock_pop_front", \ 24 { #test "_missing_lock_pop_back", \ 31 #define TEST(test, op) \ 32 { #test "_kptr_incorrect_lock_" #op, \ 35 { #test "_global_incorrect_lock_" #op, \ 38 { #test "_map_incorrect_lock_" #op, \ 41 { #test "_inner_map_incorrect_lock [all...] |
H A D | core_reloc.c | 391 typedef int (*setup_test_fn)(struct core_reloc_test_case *test); 392 typedef int (*trigger_test_fn)(const struct core_reloc_test_case *test); 423 static int setup_type_id_case_local(struct core_reloc_test_case *test) argument 425 struct core_reloc_type_id_output *exp = (void *)test->output; 426 struct btf *local_btf = btf__parse(test->bpf_obj_file, NULL); 427 struct btf *targ_btf = btf__parse(test->btf_src_file, NULL); 495 static int setup_type_id_case_success(struct core_reloc_test_case *test) { argument 496 struct core_reloc_type_id_output *exp = (void *)test->output; 500 err = setup_type_id_case_local(test); 504 targ_btf = btf__parse(test 518 setup_type_id_case_failure(struct core_reloc_test_case *test) argument 538 __trigger_module_test_read(const struct core_reloc_test_case *test) argument [all...] |
/linux-master/tools/testing/selftests/bpf/ |
H A D | test_sockmap.c | 96 {"test", required_argument, NULL, 't' }, 520 /* Special case test for skb ingress + ktls */ 756 * socket is not a valid test. So in this case lets not 757 * enable kTLS but still run the test. 953 static int run_options(struct sockmap_options *options, int cg_fd, int test) argument 957 /* If base test skip BPF setup */ 958 if (test == BASE || test == BASE_SENDPAGE) 1014 fprintf(stderr, "ERROR: test socket failed: %d\n", err); 1229 int skb_fd = (test 1309 test_to_str(int test) argument 1376 __test_exec(int cgrp, int test, struct sockmap_options *opt) argument 1859 struct _test test[] = { variable in typeref:struct:_test 1987 int test = SELFTESTS; local [all...] |
/linux-master/arch/m68k/fpsp040/ |
H A D | skeleton.S | 105 cmpib #VER_40,(%sp) |test version number 108 btstb #E1,E_BYTE(%a6) |test for E1 set 110 btstb #snan_bit,2(%sp) |test for snan 117 btstb #ovfl_bit,2(%sp) |test for ovfl 124 btstb #unfl_bit,2(%sp) |test for unfl 145 bclrb #E3,E_BYTE(%a6) |clear and test E3 flag 154 bsrl b1238_fix |test for bug1238 case 182 bclrb #E3,E_BYTE(%a6) |clear and test E3 flag 208 bclrb #E3,E_BYTE(%a6) |clear and test E3 flag
|
H A D | gen_except.S | 58 cmpib #IDLE_SIZE-4,1(%a7) |test for idle frame 60 cmpib #UNIMP_40_SIZE-4,1(%a7) |test for orig unimp frame 62 cmpib #UNIMP_41_SIZE-4,1(%a7) |test for rev unimp frame 102 cmpib #UNIMP_40_SIZE-4,1(%a7) |test for orig unimp frame 107 cmpib #UNIMP_41_SIZE-4,1(%a7) |test for rev unimp frame 143 btstb #5,CMDREG1B(%a6) |test for fmove out 155 bfffo %d0{#24:#8},%d1 |test for first set bit 179 tstb UFLG_TMP(%a6) |test flag for unsup/unimp state 225 tstb UFLG_TMP(%a6) |test flag for unsupp/unimp state 257 tstb UFLG_TMP(%a6) |test fla [all...] |
/linux-master/arch/parisc/kernel/ |
H A D | perf.c | 294 uint32_t test; local 312 /* Get the interface type and test type */ 314 test = (image_type & 0xffff); 329 (test >= MAX_CUDA_IMAGES)) || 331 (test >= MAX_ONYX_IMAGES))) 336 return perf_config(cuda_images[test]); 338 return perf_config(onyx_images[test]);
|
/linux-master/samples/bpf/ |
H A D | map_perf_test_user.c | 104 /* Populate the lru_hash_map for LRU_HASH_LOOKUP perf test. 120 static void do_test_lru(enum test_type test, int cpu) argument 129 if (test == INNER_LRU_HASH_PREALLOC && cpu) { 171 if (test == LRU_HASH_PREALLOC) { 174 } else if (test == NOCOMMON_LRU_HASH_PREALLOC) { 177 } else if (test == INNER_LRU_HASH_PREALLOC) { 180 } else if (test == LRU_HASH_LOOKUP) { 411 /* Only change the max_entries for the enabled test(s) */
|