Home
last modified time | relevance | path

Searched full:check (Results 1 – 25 of 10681) sorted by relevance

12345678910>>...428

/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/switch_endian/
Dcheck.S8 * r15: pattern to check registers against.
14 cmpd r9,r3 # check r3
16 addi r9,r15,4 # check r4
19 lis r9,0x00FF # check CR
26 addi r9,r15,32 # check LR
30 addi r9,r15,5 # check r5
33 addi r9,r15,6 # check r6
36 addi r9,r15,7 # check r7
39 addi r9,r15,8 # check r8
42 addi r9,r15,13 # check r13
[all …]
/kernel/linux/linux-6.6/tools/testing/selftests/powerpc/switch_endian/
Dcheck.S8 * r15: pattern to check registers against.
14 cmpd r9,r3 # check r3
16 addi r9,r15,4 # check r4
19 lis r9,0x00FF # check CR
26 addi r9,r15,32 # check LR
30 addi r9,r15,5 # check r5
33 addi r9,r15,6 # check r6
36 addi r9,r15,7 # check r7
39 addi r9,r15,8 # check r8
42 addi r9,r15,13 # check r13
[all …]
/kernel/linux/linux-6.6/arch/powerpc/lib/
Dtest-code-patching.c25 #define check(x) do { \ macro
39 check(instr_is_branch_iform(ppc_inst(0x48000000))); in test_branch_iform()
41 check(instr_is_branch_iform(ppc_inst(0x4bffffff))); in test_branch_iform()
43 check(!instr_is_branch_iform(ppc_inst(0xcbffffff))); in test_branch_iform()
45 check(!instr_is_branch_iform(ppc_inst(0x7bffffff))); in test_branch_iform()
48 check(instr_is_branch_iform(ppc_inst(0x48000001))); in test_branch_iform()
50 check(instr_is_branch_iform(ppc_inst(0x4bfffffd))); in test_branch_iform()
52 check(instr_is_branch_iform(ppc_inst(0x4bff00fd))); in test_branch_iform()
54 check(!instr_is_branch_iform(ppc_inst(0x7bfffffd))); in test_branch_iform()
58 check(instr_is_branch_to_addr(iptr, 0x100)); in test_branch_iform()
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
Dpinning.c18 if (CHECK(!map, "find map", "NULL map")) in get_map_id()
23 CHECK(err, "get map info", "err %d errno %d", err, errno); in get_map_id()
45 /* check that opening fails with invalid pinning value in map def */ in test_pinning()
48 if (CHECK(err != -EINVAL, "invalid open", "err %d errno %d\n", err, errno)) { in test_pinning()
56 if (CHECK(err, "default open", "err %d errno %d\n", err, errno)) { in test_pinning()
62 if (CHECK(err, "default load", "err %d errno %d\n", err, errno)) in test_pinning()
65 /* check that pinmap was pinned */ in test_pinning()
67 if (CHECK(err, "stat pinpath", "err %d errno %d\n", err, errno)) in test_pinning()
70 /* check that nopinmap was *not* pinned */ in test_pinning()
72 if (CHECK(!err || errno != ENOENT, "stat nopinpath", in test_pinning()
[all …]
Dbpf_iter.c34 if (CHECK(skel, "bpf_iter_test_kern3__open_and_load", in test_btf_id_or_null()
48 if (CHECK(IS_ERR(link), "attach_iter", "attach_iter failed\n")) in do_dummy_read()
52 if (CHECK(iter_fd < 0, "create_iter", "create_iter failed\n")) in do_dummy_read()
55 /* not check contents, but ensure read() ends without error */ in do_dummy_read()
58 CHECK(len < 0, "read", "read failed: %s\n", strerror(errno)); in do_dummy_read()
71 if (CHECK(!skel, "bpf_iter_ipv6_route__open_and_load", in test_ipv6_route()
85 if (CHECK(!skel, "bpf_iter_netlink__open_and_load", in test_netlink()
99 if (CHECK(!skel, "bpf_iter_bpf_map__open_and_load", in test_bpf_map()
113 if (CHECK(!skel, "bpf_iter_task__open_and_load", in test_task()
127 if (CHECK(!skel, "bpf_iter_task_stack__open_and_load", in test_task_stack()
[all …]
Dskeleton.c23 if (CHECK(!skel, "skel_open", "failed to open skeleton\n")) in test_skeleton()
26 if (CHECK(skel->kconfig, "skel_kconfig", "kconfig is mmaped()!\n")) in test_skeleton()
34 CHECK(data->in1 != -1, "in1", "got %d != exp %d\n", data->in1, -1); in test_skeleton()
35 CHECK(data->out1 != -1, "out1", "got %d != exp %d\n", data->out1, -1); in test_skeleton()
36 CHECK(data->in2 != -1, "in2", "got %lld != exp %lld\n", data->in2, -1LL); in test_skeleton()
37 CHECK(data->out2 != -1, "out2", "got %lld != exp %lld\n", data->out2, -1LL); in test_skeleton()
39 CHECK(bss->in3 != 0, "in3", "got %d != exp %d\n", bss->in3, 0); in test_skeleton()
40 CHECK(bss->out3 != 0, "out3", "got %d != exp %d\n", bss->out3, 0); in test_skeleton()
41 CHECK(bss->in4 != 0, "in4", "got %lld != exp %lld\n", bss->in4, 0LL); in test_skeleton()
42 CHECK(bss->out4 != 0, "out4", "got %lld != exp %lld\n", bss->out4, 0LL); in test_skeleton()
[all …]
Dhashmap.c51 if (CHECK(IS_ERR(map), "hashmap__new", in test_hashmap_generic()
60 if (CHECK(err != -ENOENT, "hashmap__update", in test_hashmap_generic()
68 if (CHECK(oldk != NULL || oldv != NULL, "check_kv", in test_hashmap_generic()
73 if (CHECK(err, "elem_add", "failed to add k/v %ld = %ld: %d\n", in test_hashmap_generic()
77 if (CHECK(!hashmap__find(map, k, &oldv), "elem_find", in test_hashmap_generic()
80 if (CHECK(oldv != v, "elem_val", in test_hashmap_generic()
85 if (CHECK(hashmap__size(map) != ELEM_CNT, "hashmap__size", in test_hashmap_generic()
88 if (CHECK(hashmap__capacity(map) != exp_cap(hashmap__size(map)), in test_hashmap_generic()
99 if (CHECK(v - k != 1024, "check_kv", in test_hashmap_generic()
103 if (CHECK(found_msk != (1ULL << ELEM_CNT) - 1, "elem_cnt", in test_hashmap_generic()
[all …]
Dcgroup_attach_override.c32 if (CHECK(allow_prog < 0, "prog_load_allow", in test_cgroup_attach_override()
37 if (CHECK(drop_prog < 0, "prog_load_drop", in test_cgroup_attach_override()
42 if (CHECK(foo < 0, "cgroup_join_foo", "cgroup setup failed\n")) in test_cgroup_attach_override()
45 if (CHECK(bpf_prog_attach(drop_prog, foo, BPF_CGROUP_INET_EGRESS, in test_cgroup_attach_override()
51 if (CHECK(!system(PING_CMD), "ping_fail", in test_cgroup_attach_override()
56 if (CHECK(bar < 0, "cgroup_join_bar", "cgroup setup failed\n")) in test_cgroup_attach_override()
59 if (CHECK(!system(PING_CMD), "ping_fail", in test_cgroup_attach_override()
63 if (CHECK(bpf_prog_attach(allow_prog, bar, BPF_CGROUP_INET_EGRESS, in test_cgroup_attach_override()
69 if (CHECK(system(PING_CMD), "ping_ok", "ping failed\n")) in test_cgroup_attach_override()
72 if (CHECK(bpf_prog_detach(bar, BPF_CGROUP_INET_EGRESS), in test_cgroup_attach_override()
[all …]
Dd_path.c39 if (CHECK(pipe(pipefd) < 0, "trigger", "pipe failed\n")) in trigger_fstat_events()
43 if (CHECK(sockfd < 0, "trigger", "socket failed\n")) in trigger_fstat_events()
47 if (CHECK(procfd < 0, "trigger", "open /proc/self/comm failed\n")) in trigger_fstat_events()
50 if (CHECK(devfd < 0, "trigger", "open /dev/urandom failed\n")) in trigger_fstat_events()
53 if (CHECK(localfd < 0, "trigger", "open /tmp/d_path_loadgen.txt failed\n")) in trigger_fstat_events()
58 if (CHECK(indicatorfd < 0, "trigger", "open /tmp/ failed\n")) in trigger_fstat_events()
62 if (CHECK(ret < 0, "trigger", "set_pathname failed for pipe[0]\n")) in trigger_fstat_events()
65 if (CHECK(ret < 0, "trigger", "set_pathname failed for pipe[1]\n")) in trigger_fstat_events()
68 if (CHECK(ret < 0, "trigger", "set_pathname failed for socket\n")) in trigger_fstat_events()
71 if (CHECK(ret < 0, "trigger", "set_pathname failed for proc\n")) in trigger_fstat_events()
[all …]
Dringbuf.c48 CHECK(s->value != 333, "sample1_value", "exp %ld, got %ld\n", in process_sample()
52 CHECK(s->value != 777, "sample2_value", "exp %ld, got %ld\n", in process_sample()
92 if (CHECK(!skel, "skel_open_load", "skeleton open&load failed\n")) in test_ringbuf()
100 if (CHECK(!ringbuf, "ringbuf_create", "failed to create ringbuf\n")) in test_ringbuf()
104 if (CHECK(err, "skel_attach", "skeleton attachment failed: %d\n", err)) in test_ringbuf()
110 CHECK(skel->bss->avail_data != 3 * rec_sz, in test_ringbuf()
113 CHECK(skel->bss->ring_size != 4096, in test_ringbuf()
116 CHECK(skel->bss->cons_pos != 0, in test_ringbuf()
119 CHECK(skel->bss->prod_pos != 3 * rec_sz, in test_ringbuf()
127 if (CHECK(err != -EDONE, "err_done", "done err: %d\n", err)) in test_ringbuf()
[all …]
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/
Dpinning.c18 if (CHECK(!map, "find map", "NULL map")) in get_map_id()
23 CHECK(err, "get map info", "err %d errno %d", err, errno); in get_map_id()
45 /* check that opening fails with invalid pinning value in map def */ in test_pinning()
48 if (CHECK(err != -EINVAL, "invalid open", "err %d errno %d\n", err, errno)) { in test_pinning()
56 if (CHECK(err, "default open", "err %d errno %d\n", err, errno)) { in test_pinning()
62 if (CHECK(err, "default load", "err %d errno %d\n", err, errno)) in test_pinning()
65 /* check that pinmap was pinned */ in test_pinning()
67 if (CHECK(err, "stat pinpath", "err %d errno %d\n", err, errno)) in test_pinning()
70 /* check that nopinmap was *not* pinned */ in test_pinning()
72 if (CHECK(!err || errno != ENOENT, "stat nopinpath", in test_pinning()
[all …]
Dhashmap.c60 if (CHECK(err != -ENOENT, "hashmap__update", in test_hashmap_generic()
68 if (CHECK(oldk != 0 || oldv != 0, "check_kv", in test_hashmap_generic()
73 if (CHECK(err, "elem_add", "failed to add k/v %ld = %ld: %d\n", k, v, err)) in test_hashmap_generic()
76 if (CHECK(!hashmap__find(map, k, &oldv), "elem_find", in test_hashmap_generic()
79 if (CHECK(oldv != v, "elem_val", "found value is wrong: %ld\n", oldv)) in test_hashmap_generic()
83 if (CHECK(hashmap__size(map) != ELEM_CNT, "hashmap__size", in test_hashmap_generic()
86 if (CHECK(hashmap__capacity(map) != exp_cap(hashmap__size(map)), in test_hashmap_generic()
97 if (CHECK(v - k != 1024, "check_kv", in test_hashmap_generic()
101 if (CHECK(found_msk != (1ULL << ELEM_CNT) - 1, "elem_cnt", in test_hashmap_generic()
110 if (CHECK(err != -EEXIST, "hashmap__add", in test_hashmap_generic()
[all …]
Dcgroup_attach_override.c32 if (CHECK(allow_prog < 0, "prog_load_allow", in serial_test_cgroup_attach_override()
37 if (CHECK(drop_prog < 0, "prog_load_drop", in serial_test_cgroup_attach_override()
42 if (CHECK(foo < 0, "cgroup_join_foo", "cgroup setup failed\n")) in serial_test_cgroup_attach_override()
45 if (CHECK(bpf_prog_attach(drop_prog, foo, BPF_CGROUP_INET_EGRESS, in serial_test_cgroup_attach_override()
51 if (CHECK(!system(PING_CMD), "ping_fail", in serial_test_cgroup_attach_override()
56 if (CHECK(bar < 0, "cgroup_join_bar", "cgroup setup failed\n")) in serial_test_cgroup_attach_override()
59 if (CHECK(!system(PING_CMD), "ping_fail", in serial_test_cgroup_attach_override()
63 if (CHECK(bpf_prog_attach(allow_prog, bar, BPF_CGROUP_INET_EGRESS, in serial_test_cgroup_attach_override()
69 if (CHECK(system(PING_CMD), "ping_ok", "ping failed\n")) in serial_test_cgroup_attach_override()
72 if (CHECK(bpf_prog_detach(bar, BPF_CGROUP_INET_EGRESS), in serial_test_cgroup_attach_override()
[all …]
Dskeleton.c30 if (CHECK(!skel, "skel_open", "failed to open skeleton\n")) in test_skeleton()
33 if (CHECK(skel->kconfig, "skel_kconfig", "kconfig is mmaped()!\n")) in test_skeleton()
46 CHECK(data->in1 != -1, "in1", "got %d != exp %d\n", data->in1, -1); in test_skeleton()
47 CHECK(data->out1 != -1, "out1", "got %d != exp %d\n", data->out1, -1); in test_skeleton()
48 CHECK(data->in2 != -1, "in2", "got %lld != exp %lld\n", data->in2, -1LL); in test_skeleton()
49 CHECK(data->out2 != -1, "out2", "got %lld != exp %lld\n", data->out2, -1LL); in test_skeleton()
51 CHECK(bss->in3 != 0, "in3", "got %d != exp %d\n", bss->in3, 0); in test_skeleton()
52 CHECK(bss->out3 != 0, "out3", "got %d != exp %d\n", bss->out3, 0); in test_skeleton()
53 CHECK(bss->in4 != 0, "in4", "got %lld != exp %lld\n", bss->in4, 0LL); in test_skeleton()
54 CHECK(bss->out4 != 0, "out4", "got %lld != exp %lld\n", bss->out4, 0LL); in test_skeleton()
[all …]
/kernel/linux/linux-6.6/tools/testing/selftests/user_events/
Dabi_test.c93 int check; in FIXTURE() local
102 self->check = 0; in FIXTURE_SETUP()
112 ASSERT_EQ(0, self->check); in TEST_F()
113 ASSERT_EQ(0, reg_enable(&self->check, sizeof(int), 0)); in TEST_F()
115 ASSERT_EQ(1, self->check); in TEST_F()
117 ASSERT_EQ(0, self->check); in TEST_F()
121 ASSERT_EQ(1, self->check); in TEST_F()
122 ASSERT_EQ(0, reg_disable(&self->check, 0)); in TEST_F()
123 ASSERT_EQ(0, self->check); in TEST_F()
127 ASSERT_EQ(0, self->check); in TEST_F()
[all …]
/kernel/linux/linux-6.6/tools/testing/selftests/drivers/net/netdevsim/
Dethtool-fec.sh13 check $? "$s" "Configured FEC encodings: None
18 check $?
20 check $? "$s" "Configured FEC encodings: Auto
26 check $?
28 check $? "$s" "Configured FEC encodings: Off
34 check $?
36 check $? "$s" "Configured FEC encodings: BaseR
42 check $?
44 check $? "$s" "Configured FEC encodings: ${o^^}
50 check $?
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/arm64/mte/
Dcheck_mmap_options.c214 "Check anonymous memory with private mapping, sync error mode, mmap memory and tag check off\n"); in main()
216 …"Check file memory with private mapping, sync error mode, mmap/mprotect memory and tag check off\n… in main()
220 "Check anonymous memory with private mapping, no error mode, mmap memory and tag check off\n"); in main()
222 "Check file memory with private mapping, no error mode, mmap/mprotect memory and tag check off\n"); in main()
225 "Check anonymous memory with private mapping, sync error mode, mmap memory and tag check on\n"); in main()
227 …"Check anonymous memory with private mapping, sync error mode, mmap/mprotect memory and tag check in main()
229 "Check anonymous memory with shared mapping, sync error mode, mmap memory and tag check on\n"); in main()
231 …"Check anonymous memory with shared mapping, sync error mode, mmap/mprotect memory and tag check o… in main()
233 "Check anonymous memory with private mapping, async error mode, mmap memory and tag check on\n"); in main()
235 …"Check anonymous memory with private mapping, async error mode, mmap/mprotect memory and tag check in main()
[all …]
/kernel/linux/linux-6.6/tools/testing/selftests/arm64/mte/
Dcheck_mmap_options.c213 "Check anonymous memory with private mapping, sync error mode, mmap memory and tag check off\n"); in main()
215 …"Check file memory with private mapping, sync error mode, mmap/mprotect memory and tag check off\n… in main()
219 "Check anonymous memory with private mapping, no error mode, mmap memory and tag check off\n"); in main()
221 "Check file memory with private mapping, no error mode, mmap/mprotect memory and tag check off\n"); in main()
224 "Check anonymous memory with private mapping, sync error mode, mmap memory and tag check on\n"); in main()
226 …"Check anonymous memory with private mapping, sync error mode, mmap/mprotect memory and tag check in main()
228 "Check anonymous memory with shared mapping, sync error mode, mmap memory and tag check on\n"); in main()
230 …"Check anonymous memory with shared mapping, sync error mode, mmap/mprotect memory and tag check o… in main()
232 "Check anonymous memory with private mapping, async error mode, mmap memory and tag check on\n"); in main()
234 …"Check anonymous memory with private mapping, async error mode, mmap/mprotect memory and tag check in main()
[all …]
/kernel/linux/linux-5.10/arch/powerpc/lib/
Dcode-patching.c239 * Helper to check if a given instruction is a conditional branch
271 /* Check we can represent the target in the instruction format */ in create_branch()
290 /* Check we can represent the target in the instruction format */ in create_cond_branch()
418 #define check(x) \ macro
430 check(instr_is_branch_iform(ppc_inst(0x48000000))); in test_branch_iform()
432 check(instr_is_branch_iform(ppc_inst(0x4bffffff))); in test_branch_iform()
434 check(!instr_is_branch_iform(ppc_inst(0xcbffffff))); in test_branch_iform()
436 check(!instr_is_branch_iform(ppc_inst(0x7bffffff))); in test_branch_iform()
439 check(instr_is_branch_iform(ppc_inst(0x48000001))); in test_branch_iform()
441 check(instr_is_branch_iform(ppc_inst(0x4bfffffd))); in test_branch_iform()
[all …]
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/
Dlinked_list_fail.c47 #define CHECK(test, op, hexpr) \ macro
57 CHECK(kptr, pop_front, &f->head);
58 CHECK(kptr, pop_back, &f->head);
60 CHECK(global, pop_front, &ghead);
61 CHECK(global, pop_back, &ghead);
63 CHECK(map, pop_front, &v->head);
64 CHECK(map, pop_back, &v->head);
66 CHECK(inner_map, pop_front, &iv->head);
67 CHECK(inner_map, pop_back, &iv->head);
69 #undef CHECK
[all …]
Dverifier_sdiv.c11 __description("SDIV32, non-zero imm divisor, check 1")
23 __description("SDIV32, non-zero imm divisor, check 2")
35 __description("SDIV32, non-zero imm divisor, check 3")
47 __description("SDIV32, non-zero imm divisor, check 4")
59 __description("SDIV32, non-zero imm divisor, check 5")
71 __description("SDIV32, non-zero imm divisor, check 6")
83 __description("SDIV32, non-zero imm divisor, check 7")
95 __description("SDIV32, non-zero imm divisor, check 8")
107 __description("SDIV32, non-zero reg divisor, check 1")
120 __description("SDIV32, non-zero reg divisor, check 2")
[all …]
/kernel/linux/linux-5.10/drivers/firmware/efi/
Dcper-x86.c47 #define CHECK_VALID_BITS(check) (((check) & GENMASK_ULL(15, 0))) argument
48 #define CHECK_TRANS_TYPE(check) (((check) & GENMASK_ULL(17, 16)) >> 16) argument
49 #define CHECK_OPERATION(check) (((check) & GENMASK_ULL(21, 18)) >> 18) argument
50 #define CHECK_LEVEL(check) (((check) & GENMASK_ULL(24, 22)) >> 22) argument
57 #define CHECK_BUS_PART_TYPE(check) (((check) & GENMASK_ULL(31, 30)) >> 30) argument
59 #define CHECK_BUS_ADDR_SPACE(check) (((check) & GENMASK_ULL(34, 33)) >> 33) argument
68 #define CHECK_MS_ERR_TYPE(check) (((check) & GENMASK_ULL(18, 16)) >> 16) argument
143 "MSR Registers (Machine Check and other MSRs)",
152 static inline void print_bool(char *str, const char *pfx, u64 check, u64 bit) in print_bool() argument
154 printk("%s%s: %s\n", pfx, str, (check & bit) ? "true" : "false"); in print_bool()
[all …]
/kernel/linux/linux-6.6/drivers/firmware/efi/
Dcper-x86.c48 #define CHECK_VALID_BITS(check) (((check) & GENMASK_ULL(15, 0))) argument
49 #define CHECK_TRANS_TYPE(check) (((check) & GENMASK_ULL(17, 16)) >> 16) argument
50 #define CHECK_OPERATION(check) (((check) & GENMASK_ULL(21, 18)) >> 18) argument
51 #define CHECK_LEVEL(check) (((check) & GENMASK_ULL(24, 22)) >> 22) argument
58 #define CHECK_BUS_PART_TYPE(check) (((check) & GENMASK_ULL(31, 30)) >> 30) argument
60 #define CHECK_BUS_ADDR_SPACE(check) (((check) & GENMASK_ULL(34, 33)) >> 33) argument
69 #define CHECK_MS_ERR_TYPE(check) (((check) & GENMASK_ULL(18, 16)) >> 16) argument
144 "MSR Registers (Machine Check and other MSRs)",
153 static inline void print_bool(char *str, const char *pfx, u64 check, u64 bit) in print_bool() argument
155 printk("%s%s: %s\n", pfx, str, (check & bit) ? "true" : "false"); in print_bool()
[all …]
/kernel/linux/linux-6.6/lib/
Dpercpu_test.c5 #define CHECK(native, pcp, expected) \ macro
36 CHECK(l, long_counter, -1); in percpu_test_init()
40 CHECK(l, long_counter, 0); in percpu_test_init()
47 CHECK(ul, ulong_counter, 1); in percpu_test_init()
51 CHECK(ul, ulong_counter, 0); in percpu_test_init()
55 CHECK(ul, ulong_counter, -1); in percpu_test_init()
62 CHECK(ul, ulong_counter, -1); in percpu_test_init()
63 CHECK(ul, ulong_counter, ULONG_MAX); in percpu_test_init()
67 CHECK(l, long_counter, 0xffffffff); in percpu_test_init()
71 CHECK(l, long_counter, (long)0x100000000LL); in percpu_test_init()
[all …]
/kernel/linux/linux-5.10/lib/
Dpercpu_test.c5 #define CHECK(native, pcp, expected) \ macro
36 CHECK(l, long_counter, -1); in percpu_test_init()
40 CHECK(l, long_counter, 0); in percpu_test_init()
47 CHECK(ul, ulong_counter, 1); in percpu_test_init()
51 CHECK(ul, ulong_counter, 0); in percpu_test_init()
55 CHECK(ul, ulong_counter, -1); in percpu_test_init()
62 CHECK(ul, ulong_counter, -1); in percpu_test_init()
63 CHECK(ul, ulong_counter, ULONG_MAX); in percpu_test_init()
67 CHECK(l, long_counter, 0xffffffff); in percpu_test_init()
71 CHECK(l, long_counter, (long)0x100000000LL); in percpu_test_init()
[all …]

12345678910>>...428