Home
last modified time | relevance | path

Searched refs:regs (Results 1 – 25 of 797) sorted by relevance

12345678910>>...32

/external/linux-kselftest/tools/testing/selftests/x86/
Dptrace_syscall.c201 struct user_regs_struct regs; in test_ptrace_syscall_restart() local
208 if (ptrace(PTRACE_GETREGS, chld, 0, &regs) != 0) in test_ptrace_syscall_restart()
211 if (regs.user_syscall_nr != SYS_gettid || in test_ptrace_syscall_restart()
212 regs.user_arg0 != 10 || regs.user_arg1 != 11 || in test_ptrace_syscall_restart()
213 regs.user_arg2 != 12 || regs.user_arg3 != 13 || in test_ptrace_syscall_restart()
214 regs.user_arg4 != 14 || regs.user_arg5 != 15) { in test_ptrace_syscall_restart()
215regs.user_syscall_nr, (unsigned long)regs.user_arg0, (unsigned long)regs.user_arg1, (unsigned long… in test_ptrace_syscall_restart()
222 (unsigned long)regs.user_ip); in test_ptrace_syscall_restart()
230 regs.user_ax = regs.user_syscall_nr; in test_ptrace_syscall_restart()
231 regs.user_ip -= 2; in test_ptrace_syscall_restart()
[all …]
/external/linux-kselftest/tools/testing/selftests/powerpc/ptrace/
Dptrace-syscall.c56 struct pt_regs regs; in test_ptrace_syscall_restart() local
96 if (ptrace(PTRACE_GETREGS, chld, 0, &regs) != 0) in test_ptrace_syscall_restart()
103 if (regs.user_syscall_nr != SYS_gettid || in test_ptrace_syscall_restart()
104 regs.user_arg0 != 10 || regs.user_arg1 != 11 || in test_ptrace_syscall_restart()
105 regs.user_arg2 != 12 || regs.user_arg3 != 13 || in test_ptrace_syscall_restart()
106 regs.user_arg4 != 14 || regs.user_arg5 != 15) { in test_ptrace_syscall_restart()
108 (unsigned long)regs.user_syscall_nr, in test_ptrace_syscall_restart()
109 (unsigned long)regs.user_arg0, in test_ptrace_syscall_restart()
110 (unsigned long)regs.user_arg1, in test_ptrace_syscall_restart()
111 (unsigned long)regs.user_arg2, in test_ptrace_syscall_restart()
[all …]
Dptrace.h101 int ptrace_read_regs(pid_t child, unsigned long type, unsigned long regs[], in ptrace_read_regs() argument
109 iov.iov_base = regs; in ptrace_read_regs()
121 long ptrace_write_regs(pid_t child, unsigned long type, unsigned long regs[], in ptrace_write_regs() argument
129 iov.iov_base = regs; in ptrace_write_regs()
323 struct fpr_regs *regs; in show_fpr() local
326 regs = (struct fpr_regs *) malloc(sizeof(struct fpr_regs)); in show_fpr()
327 ret = ptrace(PTRACE_GETFPREGS, child, NULL, regs); in show_fpr()
335 fpr[i] = regs->fpr[i]; in show_fpr()
342 struct fpr_regs *regs; in write_fpr() local
345 regs = (struct fpr_regs *) malloc(sizeof(struct fpr_regs)); in write_fpr()
[all …]
Dptrace-tm-tar.c18 unsigned long regs[3]; in tm_tar() local
73 regs[0] = mfspr(SPRN_TAR); in tm_tar()
74 regs[1] = mfspr(SPRN_PPR); in tm_tar()
75 regs[2] = mfspr(SPRN_DSCR); in tm_tar()
79 user_read, regs[0], regs[1], regs[2]); in tm_tar()
81 ret = validate_tar_registers(regs, TAR_4, PPR_4, DSCR_4); in tm_tar()
92 unsigned long regs[3]; in trace_tm_tar() local
95 FAIL_IF(show_tar_registers(child, regs)); in trace_tm_tar()
97 ptrace_read_running, regs[0], regs[1], regs[2]); in trace_tm_tar()
99 FAIL_IF(validate_tar_registers(regs, TAR_2, PPR_2, DSCR_2)); in trace_tm_tar()
[all …]
Dptrace-tm-spd-tar.c24 unsigned long regs[3]; in tm_spd_tar() local
84 regs[0] = mfspr(SPRN_TAR); in tm_spd_tar()
85 regs[1] = mfspr(SPRN_PPR); in tm_spd_tar()
86 regs[2] = mfspr(SPRN_DSCR); in tm_spd_tar()
90 user_read, regs[0], regs[1], regs[2]); in tm_spd_tar()
92 ret = validate_tar_registers(regs, TAR_4, PPR_4, DSCR_4); in tm_spd_tar()
103 unsigned long regs[3]; in trace_tm_spd_tar() local
106 FAIL_IF(show_tar_registers(child, regs)); in trace_tm_spd_tar()
108 ptrace_read_running, regs[0], regs[1], regs[2]); in trace_tm_spd_tar()
110 FAIL_IF(validate_tar_registers(regs, TAR_3, PPR_3, DSCR_3)); in trace_tm_spd_tar()
[all …]
Dptrace-pkey.c188 unsigned long regs[3]; in parent() local
195 ret = ptrace_read_regs(pid, NT_PPC_PKEY, regs, 3); in parent()
199 info->amr1 = info->amr2 = info->amr3 = regs[0]; in parent()
200 info->expected_iamr = info->new_iamr = regs[1]; in parent()
201 info->expected_uamor = info->new_uamor = regs[2]; in parent()
212 ret = ptrace_read_regs(pid, NT_PPC_PKEY, regs, 3); in parent()
216 ptrace_read_running, regs[0], regs[1], regs[2]); in parent()
218 PARENT_FAIL_IF(regs[0] != info->amr1, &info->child_sync); in parent()
219 PARENT_FAIL_IF(regs[1] != info->expected_iamr, &info->child_sync); in parent()
220 PARENT_FAIL_IF(regs[2] != info->expected_uamor, &info->child_sync); in parent()
[all …]
/external/cpuinfo/tools/
Dcpuid-dump.c8 static void print_cpuid(struct cpuid_regs regs, uint32_t eax) { in print_cpuid() argument
10 eax, regs.eax, regs.ebx, regs.ecx, regs.edx); in print_cpuid()
13 static void print_cpuidex(struct cpuid_regs regs, uint32_t eax, uint32_t ecx) { in print_cpuidex() argument
15 eax, regs.eax, regs.ebx, regs.ecx, regs.edx, ecx); in print_cpuidex()
18 static void print_cpuid_vendor(struct cpuid_regs regs, uint32_t eax) { in print_cpuid_vendor() argument
19 if (regs.ebx | regs.ecx | regs.edx) { in print_cpuid_vendor()
21 memcpy(&vendor_id[0], &regs.ebx, sizeof(regs.ebx)); in print_cpuid_vendor()
22 memcpy(&vendor_id[4], &regs.edx, sizeof(regs.edx)); in print_cpuid_vendor()
23 memcpy(&vendor_id[8], &regs.ecx, sizeof(regs.ecx)); in print_cpuid_vendor()
25 eax, regs.eax, regs.ebx, regs.ecx, regs.edx, vendor_id); in print_cpuid_vendor()
[all …]
/external/mesa3d/src/panfrost/bifrost/
Dbi_pack.c106 bi_assign_fau_idx_single(bi_registers *regs, in bi_assign_fau_idx_single() argument
126 if (assigned && regs->fau_idx != C) in bi_assign_fau_idx_single()
129 regs->fau_idx = C; in bi_assign_fau_idx_single()
148 if (assigned && regs->fau_idx != f) in bi_assign_fau_idx_single()
151 regs->fau_idx = f; in bi_assign_fau_idx_single()
162 if (assigned && regs->fau_idx != f) in bi_assign_fau_idx_single()
165 regs->fau_idx = f; in bi_assign_fau_idx_single()
177 if (assigned && regs->fau_idx != (8 | rt)) in bi_assign_fau_idx_single()
180 regs->fau_idx = 8 | rt; in bi_assign_fau_idx_single()
195 bi_assign_fau_idx_single(&bundle->regs, clause, bundle->fma, false, true); in bi_assign_fau_idx()
[all …]
/external/mesa3d/src/util/
Dregister_allocate.c90 struct ra_reg *regs; member
105 BITSET_WORD *regs; member
163 struct ra_regs *regs; member
216 struct ra_regs *regs; in ra_alloc_reg_set() local
218 regs = rzalloc(mem_ctx, struct ra_regs); in ra_alloc_reg_set()
219 regs->count = count; in ra_alloc_reg_set()
220 regs->regs = rzalloc_array(regs, struct ra_reg, count); in ra_alloc_reg_set()
223 regs->regs[i].conflicts = rzalloc_array(regs->regs, BITSET_WORD, in ra_alloc_reg_set()
225 BITSET_SET(regs->regs[i].conflicts, i); in ra_alloc_reg_set()
227 util_dynarray_init(&regs->regs[i].conflict_list, in ra_alloc_reg_set()
[all …]
/external/ethtool/
Dmarvell.c134 static const char *regs[] = { in dump_gmac_fifo() local
151 for (i = 0; i < sizeof(regs)/sizeof(regs[0]); ++i) in dump_gmac_fifo()
152 printf("%-32s 0x%08X\n", regs[i], r[i]); in dump_gmac_fifo()
263 struct ethtool_regs *regs) in skge_dump_regs() argument
265 const u32 *r = (const u32 *) regs->data; in skge_dump_regs()
266 int dual = !(regs->data[0x11a] & 1); in skge_dump_regs()
268 dump_pci(regs->data + 0x380); in skge_dump_regs()
270 dump_control(regs->data); in skge_dump_regs()
283 dump_mac(regs->data); in skge_dump_regs()
284 dump_gmac("GMAC 1", regs->data + 0x2800); in skge_dump_regs()
[all …]
/external/crosvm/devices/src/register_space/
Dregister_space.rs10 regs: BTreeMap<RegisterRange, Box<dyn RegisterInterface>>, field
17 regs: BTreeMap::new(), in new()
31 let insert_result = self.regs.insert(range, Box::new(reg)).is_none(); in add_register()
36 pub fn add_register_array<T: RegisterValue>(&mut self, regs: &[Register<T>]) { in add_register_array()
37 for r in regs { in add_register_array()
74 for (range, r) in self.regs.iter().rev() { in first_before()
102 let regs = RegisterSpace::new(); in regs_no_reg() localVariable
105 regs.read(0, &mut data); in regs_no_reg()
108 regs.write(0, &[0, 0, 0, 0]); in regs_no_reg()
109 regs.read(0, &mut data); in regs_no_reg()
[all …]
/external/linux-kselftest/tools/testing/selftests/kvm/x86_64/
Dsync_regs_test.c84 struct kvm_regs regs; in main() local
146 vcpu_regs_get(vm, VCPU_ID, &regs); in main()
147 compare_regs(&regs, &run->s.regs.regs); in main()
150 compare_sregs(&sregs, &run->s.regs.sregs); in main()
153 compare_vcpu_events(&events, &run->s.regs.events); in main()
156 run->s.regs.regs.rbx = 0xBAD1DEA; in main()
157 run->s.regs.sregs.apic_base = 1 << 11; in main()
167 TEST_ASSERT(run->s.regs.regs.rbx == 0xBAD1DEA + 1, in main()
169 run->s.regs.regs.rbx); in main()
170 TEST_ASSERT(run->s.regs.sregs.apic_base == 1 << 11, in main()
[all …]
/external/google-breakpad/src/client/linux/dump_writer_common/
Dthread_info.cc63 return regs.eip; in GetInstructionPointer()
78 out->gs = regs.xgs; in FillCPUContext()
79 out->fs = regs.xfs; in FillCPUContext()
80 out->es = regs.xes; in FillCPUContext()
81 out->ds = regs.xds; in FillCPUContext()
83 out->edi = regs.edi; in FillCPUContext()
84 out->esi = regs.esi; in FillCPUContext()
85 out->ebx = regs.ebx; in FillCPUContext()
86 out->edx = regs.edx; in FillCPUContext()
87 out->ecx = regs.ecx; in FillCPUContext()
[all …]
Ducontext_reader.cc53 const greg_t* regs = uc->uc_mcontext.gregs; in FillCPUContext() local
58 out->gs = regs[REG_GS]; in FillCPUContext()
59 out->fs = regs[REG_FS]; in FillCPUContext()
60 out->es = regs[REG_ES]; in FillCPUContext()
61 out->ds = regs[REG_DS]; in FillCPUContext()
63 out->edi = regs[REG_EDI]; in FillCPUContext()
64 out->esi = regs[REG_ESI]; in FillCPUContext()
65 out->ebx = regs[REG_EBX]; in FillCPUContext()
66 out->edx = regs[REG_EDX]; in FillCPUContext()
67 out->ecx = regs[REG_ECX]; in FillCPUContext()
[all …]
/external/strace/linux/avr32/
Duserent.h1 { uoff(regs.sr), "sr" },
2 { uoff(regs.pc), "pc" },
3 { uoff(regs.lr), "lr" },
4 { uoff(regs.sp), "sp" },
5 { uoff(regs.r12), "r12" },
6 { uoff(regs.r11), "r11" },
7 { uoff(regs.r10), "r10" },
8 { uoff(regs.r9), "r9" },
9 { uoff(regs.r8), "r8" },
10 { uoff(regs.r7), "r7" },
[all …]
/external/cpuinfo/src/x86/
Dmockcpuid.c20 void CPUINFO_ABI cpuinfo_mock_get_cpuid(uint32_t eax, uint32_t regs[4]) { in cpuinfo_mock_get_cpuid()
30 regs[0] = cpuinfo_mock_cpuid_data[i].eax; in cpuinfo_mock_get_cpuid()
31 regs[1] = cpuinfo_mock_cpuid_data[i].ebx; in cpuinfo_mock_get_cpuid()
32 regs[2] = cpuinfo_mock_cpuid_data[i].ecx; in cpuinfo_mock_get_cpuid()
33 regs[3] = cpuinfo_mock_cpuid_data[i].edx; in cpuinfo_mock_get_cpuid()
42 regs[0] = cpuinfo_mock_cpuid_data[i].eax; in cpuinfo_mock_get_cpuid()
43 regs[1] = cpuinfo_mock_cpuid_data[i].ebx; in cpuinfo_mock_get_cpuid()
44 regs[2] = cpuinfo_mock_cpuid_data[i].ecx; in cpuinfo_mock_get_cpuid()
45 regs[3] = cpuinfo_mock_cpuid_data[i].edx; in cpuinfo_mock_get_cpuid()
51 regs[0] = regs[1] = regs[2] = regs[3] = 0; in cpuinfo_mock_get_cpuid()
[all …]
Dcpuid.h28 struct cpuid_regs regs; in cpuid()
30 __cpuid(eax, regs.eax, regs.ebx, regs.ecx, regs.edx); in cpuid()
34 regs.eax = regs_array[0]; in cpuid()
35 regs.ebx = regs_array[1]; in cpuid()
36 regs.ecx = regs_array[2]; in cpuid()
37 regs.edx = regs_array[3]; in cpuid()
39 return regs; in cpuid()
54 struct cpuid_regs regs; in cpuidex()
56 __cpuid_count(eax, ecx, regs.eax, regs.ebx, regs.ecx, regs.edx); in cpuidex()
60 regs.eax = regs_array[0]; in cpuidex()
[all …]
/external/perfetto/src/profiling/perf/
Dregs_parsing.cc111 uint64_t regs[kMaxSize] = {}; member
133 memcpy(&arm64_user_regs.regs[0], &raw_regs.regs[0], in ToLibUnwindstackRegs()
135 arm64_user_regs.sp = raw_regs.regs[PERF_REG_ARM64_SP]; in ToLibUnwindstackRegs()
136 arm64_user_regs.pc = raw_regs.regs[PERF_REG_ARM64_PC]; in ToLibUnwindstackRegs()
152 arm_user_regs.regs[i] = static_cast<uint32_t>(raw_regs.regs[i]); in ToLibUnwindstackRegs()
162 x86_64_user_regs.rax = raw_regs.regs[PERF_REG_X86_AX]; in ToLibUnwindstackRegs()
163 x86_64_user_regs.rbx = raw_regs.regs[PERF_REG_X86_BX]; in ToLibUnwindstackRegs()
164 x86_64_user_regs.rcx = raw_regs.regs[PERF_REG_X86_CX]; in ToLibUnwindstackRegs()
165 x86_64_user_regs.rdx = raw_regs.regs[PERF_REG_X86_DX]; in ToLibUnwindstackRegs()
166 x86_64_user_regs.r8 = raw_regs.regs[PERF_REG_X86_R8]; in ToLibUnwindstackRegs()
[all …]
/external/strace/linux/arm/
Duserent.h1 { uoff(regs.ARM_r0), "r0" },
2 { uoff(regs.ARM_r1), "r1" },
3 { uoff(regs.ARM_r2), "r2" },
4 { uoff(regs.ARM_r3), "r3" },
5 { uoff(regs.ARM_r4), "r4" },
6 { uoff(regs.ARM_r5), "r5" },
7 { uoff(regs.ARM_r6), "r6" },
8 { uoff(regs.ARM_r7), "r7" },
9 { uoff(regs.ARM_r8), "r8" },
10 { uoff(regs.ARM_r9), "r9" },
[all …]
/external/mesa3d/prebuilt-intermediates/bifrost/
Dbi_generated_pack.h33 pan_pack_fma_rshift_and_i32(bi_clause *clause, bi_instruction *ins, bi_registers *regs) in pan_pack_fma_rshift_and_i32() argument
35 unsigned src0 = bi_get_src(ins, regs, 0); in pan_pack_fma_rshift_and_i32()
37 unsigned src1 = bi_get_src(ins, regs, 1); in pan_pack_fma_rshift_and_i32()
39 unsigned src2 = bi_get_src(ins, regs, 2); in pan_pack_fma_rshift_and_i32()
61 pan_pack_add_iadd_u32(bi_clause *clause, bi_instruction *ins, bi_registers *regs) in pan_pack_add_iadd_u32() argument
63 unsigned src0 = bi_get_src(ins, regs, 0); in pan_pack_add_iadd_u32()
64 unsigned src1 = bi_get_src(ins, regs, 1); in pan_pack_add_iadd_u32()
120 pan_pack_add_ld_var_flat(bi_clause *clause, bi_instruction *ins, bi_registers *regs) in pan_pack_add_ld_var_flat() argument
122 unsigned src0 = bi_get_src(ins, regs, 0); in pan_pack_add_ld_var_flat()
159 pan_pack_add_store_i24(bi_clause *clause, bi_instruction *ins, bi_registers *regs) in pan_pack_add_store_i24() argument
[all …]
/external/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Linux/
Dptrace.cpp35 user_regs_struct regs; in main() local
36 res = ptrace(PTRACE_GETREGS, pid, NULL, &regs); in main()
38 if (regs.rip) in main()
39 printf("%zx\n", regs.rip); in main()
49 struct pt_regs regs; in main() local
50 res = ptrace((enum __ptrace_request)PTRACE_GETREGS, pid, NULL, &regs); in main()
53 if (regs.nip) in main()
54 printf("%lx\n", regs.nip); in main()
56 if (regs.cp0_epc) in main()
57 printf("%lx\n", regs.cp0_epc); in main()
[all …]
/external/compiler-rt/test/sanitizer_common/TestCases/Linux/
Dptrace.cc33 user_regs_struct regs; in main() local
34 res = ptrace(PTRACE_GETREGS, pid, NULL, &regs); in main()
36 if (regs.rip) in main()
37 printf("%zx\n", regs.rip); in main()
47 struct pt_regs regs; in main() local
48 res = ptrace((enum __ptrace_request)PTRACE_GETREGS, pid, NULL, &regs); in main()
51 if (regs.nip) in main()
52 printf("%lx\n", regs.nip); in main()
54 if (regs.cp0_epc) in main()
55 printf("%lx\n", regs.cp0_epc); in main()
[all …]
/external/mesa3d/src/gallium/drivers/freedreno/a6xx/
Dfd6_pack.h54 const struct fd_reg_pair regs[] = { __VA_ARGS__ }; \
56 if (i < ARRAY_SIZE(regs) && (i == 0 || regs[i].reg > 0)) { \
57 __assert_eq(regs[0].reg + i, regs[i].reg); \
58 if (regs[i].bo) { \
60 .bo = regs[i].bo, \
61 .offset = regs[i].bo_offset, \
62 .or = regs[i].value, \
63 .shift = regs[i].bo_shift, \
64 .orhi = regs[i].value >> 32 \
70 *p++ = regs[i].value; \
[all …]
/external/strace/linux/x86_64/
Darch_kvm.c5 const struct kvm_regs *const regs) in arch_print_kvm_regs() argument
7 PRINT_FIELD_X("{", *regs, rax); in arch_print_kvm_regs()
11 PRINT_FIELD_X(", ", *regs, rbx); in arch_print_kvm_regs()
12 PRINT_FIELD_X(", ", *regs, rcx); in arch_print_kvm_regs()
13 PRINT_FIELD_X(", ", *regs, rdx); in arch_print_kvm_regs()
14 PRINT_FIELD_X(", ", *regs, rsi); in arch_print_kvm_regs()
15 PRINT_FIELD_X(", ", *regs, rdi); in arch_print_kvm_regs()
17 PRINT_FIELD_X(", ", *regs, rsp); in arch_print_kvm_regs()
18 PRINT_FIELD_X(", ", *regs, rbp); in arch_print_kvm_regs()
22 PRINT_FIELD_X(", ", *regs, r8); in arch_print_kvm_regs()
[all …]
/external/mesa3d/src/freedreno/vulkan/
Dtu_cs.h343 #define __ONE_REG(i, regs) \ argument
345 if (i < ARRAY_SIZE(regs) && regs[i].reg > 0) { \
346 __assert_eq(regs[0].reg + i, regs[i].reg); \
347 if (regs[i].bo) { \
348 uint64_t v = regs[i].bo->iova + regs[i].bo_offset; \
349 v >>= regs[i].bo_shift; \
350 v |= regs[i].value; \
355 *p++ = regs[i].value; \
356 if (regs[i].is_address) \
357 *p++ = regs[i].value >> 32; \
[all …]

12345678910>>...32