Lines Matching +full:0 +full:x12345678

98  *	TEST_ARG_REG(7, 0x12345678) // Set r7=0x12345678
113 * .byte 0
121 * .short 0
122 * .word 0x1234567
127 * .short 50f-0f @ offset of 'test_before'
128 * .short 2f-0f @ offset of 'test_after2' (if relevent)
129 * .short 99f-0f @ offset of 'test_done'
131 * 0:
151 * to the start of the test case code, (local label '0').
157 * indicates that R7 should be loaded with the value 0x12345678.
230 #define FUNC_ARG1 0x12345678
231 #define FUNC_ARG2 0xabcdef
315 return 0; in pre_handler()
327 .addr = 0,
338 if (ret < 0) { in test_kprobe()
346 the_kprobe.flags = 0; /* Clear disable flag to allow reuse */ in test_kprobe()
366 return 0; in test_kprobe()
375 return 0; in kretprobe_handler()
388 if (ret < 0) { in test_kretprobe()
396 the_kretprobe.kp.flags = 0; /* Clear disable flag to allow reuse */ in test_kretprobe()
411 return 0; in test_kretprobe()
420 if (ret < 0) in run_api_tests()
425 if (ret < 0) in run_api_tests()
428 return 0; in run_api_tests()
500 return 0; in benchmark_pre_handler()
509 for (i = n; i > 0; --i) in benchmark()
526 if (ret < 0) { in kprobe_benchmark()
547 {&benchmark_nop, 0, "nop"}, in run_benchmarks()
553 {&benchmark_pushpop1, 0, "stmdb sp!, {r3-r11,lr}"}, in run_benchmarks()
555 {&benchmark_pushpop2, 0, "stmdb sp!, {r0-r8,lr}"}, in run_benchmarks()
557 {&benchmark_pushpop3, 0, "stmdb sp!, {r4,lr}"}, in run_benchmarks()
559 {&benchmark_pushpop4, 0, "stmdb sp!, {r0,lr}"}, in run_benchmarks()
562 {&benchmark_pushpop_thumb, 0, "push.n {r0-r7,lr}"}, in run_benchmarks()
565 {0} in run_benchmarks()
571 if (ret < 0) in run_benchmarks()
577 return 0; in run_benchmarks()
607 return 0; in table_iter()
655 return 0; in table_test_fn()
662 .parent_mask = 0, in table_test()
663 .parent_value = 0 in table_test()
705 #define COVERAGE_ANY_REG (1<<0)
725 unsigned regs = 0; in coverage_start_registers()
727 for (i = 0; i < 20; i += 4) { in coverage_start_registers()
728 int r = (h->type_regs.bits >> (DECODE_TYPE_BITS + i)) & 0xf; in coverage_start_registers()
761 return 0; in coverage_start_fn()
769 coverage.num_entries = 0; in coverage_start()
770 coverage.nesting = 0; in coverage_start()
779 for (i = 0; i < 20; i += 4) { in coverage_add_registers()
780 enum decode_reg_type reg_type = (regs >> i) & 0xf; in coverage_add_registers()
781 int reg = (insn >> i) & 0xf; in coverage_add_registers()
847 unsigned nesting = 0; in coverage_add()
940 "cmp r0, #0 \n\t" in __kprobes_test_case_end_32()
957 "cmp r0, #0 \n\t" in __kprobes_test_case_end_16()
1018 static int probe_should_run; /* 0 = no, 1 = yes, -1 = unknown */
1028 cpsr = (scenario & 0xf) << 28; /* N,Z,C,V flags */ in test_context_cpsr()
1029 cpsr |= (scenario & 0xf) << 16; /* GE flags */ in test_context_cpsr()
1030 cpsr |= (scenario & 0x1) << 27; /* Toggle Q flag */ in test_context_cpsr()
1036 probe_should_run = test_check_cc(cc, cpsr) != 0; in test_context_cpsr()
1043 int cc = (current_instruction >> kprobe_test_cc_position) & 0xf; in test_context_cpsr()
1044 probe_should_run = test_check_cc(cc, cpsr) != 0; in test_context_cpsr()
1054 unsigned mask = x / 7 + 2; /* ITSTATE<4:0>, bits reversed */ in test_context_cpsr()
1056 if (mask > 0x1f) { in test_context_cpsr()
1059 mask = 0x4; in test_context_cpsr()
1060 if ((scenario & 0xf) == 0xf) in test_context_cpsr()
1065 cpsr |= (mask & 0x1) << 12; /* ITSTATE<4> */ in test_context_cpsr()
1066 cpsr |= (mask & 0x2) << 10; /* ITSTATE<3> */ in test_context_cpsr()
1067 cpsr |= (mask & 0x4) << 8; /* ITSTATE<2> */ in test_context_cpsr()
1068 cpsr |= (mask & 0x8) << 23; /* ITSTATE<1> */ in test_context_cpsr()
1069 cpsr |= (mask & 0x10) << 21; /* ITSTATE<0> */ in test_context_cpsr()
1071 probe_should_run = test_check_cc((cpsr >> 12) & 0xf, cpsr) != 0; in test_context_cpsr()
1076 case 16: /* Clear NZCV flags and 'it eq' state (false as Z=0) */ in test_context_cpsr()
1077 cpsr = 0x00000800; in test_context_cpsr()
1078 probe_should_run = 0; in test_context_cpsr()
1081 cpsr = 0xf0007800; in test_context_cpsr()
1082 probe_should_run = 0; in test_context_cpsr()
1084 case 18: /* Clear NZCV flags and 'it ls' state (true as C=0) */ in test_context_cpsr()
1085 cpsr = 0x00009800; in test_context_cpsr()
1088 cpsr = 0xf0002800; in test_context_cpsr()
1109 for (i = 0; i < TEST_MEMORY_SIZE / sizeof(current_stack[0]); ++i) in setup_test_context()
1119 for (i = 0; i < 13; ++i) in setup_test_context()
1127 for (; args[0].type != ARG_TYPE_END; ++args) in setup_test_context()
1128 switch (args[0].type) { in setup_test_context()
1170 probe->kprobe.flags = 0; /* Clear disable flag to allow reuse */ in unregister_test_probe()
1183 if (ret >= 0) { in register_test_probe()
1194 return 0; in test_before_pre_handler()
1210 return 0; in test_case_pre_handler()
1219 return 0; /* Already run for this test instance */ in test_after_pre_handler()
1225 for (args = current_args; args[0].type != ARG_TYPE_END; ++args) in test_after_pre_handler()
1226 if (args[0].type == ARG_TYPE_REG_MASKED) { in test_after_pre_handler()
1238 return 0; in test_after_pre_handler()
1282 for (i = 0; i < size / sizeof(u32); i += 4) in print_memory()
1291 if (offset > 0) in expected_memory_size()
1341 current_branch_target = 0; in kprobes_test_case_start()
1353 current_instruction = __mem_to_opcode_thumb16(p[0]); in kprobes_test_case_start()
1362 if (current_title[0] == '.') in kprobes_test_case_start()
1365 verbose("%s\t@ %0*x\n", current_title, in kprobes_test_case_start()
1389 if (register_test_probe(&test_case_probe) < 0) in kprobes_test_case_start()
1396 if (register_test_probe(&test_case_probe) >= 0) in kprobes_test_case_start()
1402 if (register_test_probe(&test_before_probe) < 0) { in kprobes_test_case_start()
1406 if (register_test_probe(&test_after_probe) < 0) { in kprobes_test_case_start()
1413 if (register_test_probe(&test_after2_probe) < 0) { in kprobes_test_case_start()
1420 test_case_run_count = 0; in kprobes_test_case_start()
1433 size_t mem_size = 0; in check_test_results()
1434 u32 *mem = 0; in check_test_results()
1472 if (test_case_run_count < 0) { in kprobes_test_case_end()
1497 if ((test_case_run_count & 1) == 0) { in kprobes_test_case_end()
1504 if (register_test_probe(&test_case_probe) < 0) { in kprobes_test_case_end()
1515 } else if (probe_should_run == 0) { in kprobes_test_case_end()
1543 return 0; in kprobes_test_case_end()
1568 return 0; in run_test_cases()
1574 int ret = 0; in run_all_tests()
1644 if (ret == 0) in run_all_tests()
1646 if (ret == 0) in run_all_tests()