Home
last modified time | relevance | path

Searched refs:prstatus (Results 1 – 14 of 14) sorted by relevance

/openbmc/qemu/target/riscv/
H A Darch_dump.c47 struct riscv64_elf_prstatus prstatus; member
50 #define RISCV64_NOTE_HEADER_SIZE offsetof(struct riscv64_note, prstatus)
77 NT_PRSTATUS, sizeof(note.prstatus)); in riscv_cpu_write_elf64_note()
79 note.prstatus.pr_pid = cpu_to_dump32(s, cpuid); in riscv_cpu_write_elf64_note()
81 note.prstatus.pr_reg.pc = cpu_to_dump64(s, env->pc); in riscv_cpu_write_elf64_note()
84 note.prstatus.pr_reg.regs[i] = cpu_to_dump64(s, env->gpr[i + 1]); in riscv_cpu_write_elf64_note()
116 struct riscv32_elf_prstatus prstatus; member
119 #define RISCV32_NOTE_HEADER_SIZE offsetof(struct riscv32_note, prstatus)
146 NT_PRSTATUS, sizeof(note.prstatus)); in riscv_cpu_write_elf32_note()
148 note.prstatus.pr_pid = cpu_to_dump32(s, cpuid); in riscv_cpu_write_elf32_note()
[all …]
/openbmc/qemu/target/i386/
H A Darch_dump.c137 prstatus->regs.eip = env->eip & 0xffffffff; in x86_fill_elf_prstatus()
140 prstatus->regs.cs = env->segs[R_CS].selector; in x86_fill_elf_prstatus()
141 prstatus->regs.ss = env->segs[R_SS].selector; in x86_fill_elf_prstatus()
142 prstatus->regs.ds = env->segs[R_DS].selector; in x86_fill_elf_prstatus()
143 prstatus->regs.es = env->segs[R_ES].selector; in x86_fill_elf_prstatus()
147 prstatus->pid = id; in x86_fill_elf_prstatus()
153 x86_elf_prstatus prstatus; in x86_write_elf64_note() local
160 x86_fill_elf_prstatus(&prstatus, env, id); in x86_write_elf64_note()
171 memcpy(buf, &prstatus, sizeof(prstatus)); in x86_write_elf64_note()
207 x86_elf_prstatus prstatus; in x86_cpu_write_elf32_note() local
[all …]
/openbmc/linux/arch/ia64/kernel/
H A Dcrash.c43 struct elf_prstatus *prstatus = &per_cpu(elf_prstatus, cpu); in crash_save_this_cpu() local
45 elf_greg_t *dst = (elf_greg_t *)&(prstatus->pr_reg); in crash_save_this_cpu()
46 memset(prstatus, 0, sizeof(*prstatus)); in crash_save_this_cpu()
47 prstatus->common.pr_pid = current->pid; in crash_save_this_cpu()
59 buf = append_elf_note(buf, KEXEC_CORE_NOTE_NAME, NT_PRSTATUS, prstatus, in crash_save_this_cpu()
60 sizeof(*prstatus)); in crash_save_this_cpu()
/openbmc/qemu/target/arm/
H A Darch_dump.c80 struct aarch64_elf_prstatus prstatus; member
86 #define AARCH64_NOTE_HEADER_SIZE offsetof(struct aarch64_note, prstatus)
246 note.prstatus.pr_pid = cpu_to_dump32(s, cpuid); in arm_cpu_write_elf64_note()
247 note.prstatus.pr_fpvalid = cpu_to_dump32(s, 1); in arm_cpu_write_elf64_note()
261 note.prstatus.pr_reg.sp = cpu_to_dump64(s, sp); in arm_cpu_write_elf64_note()
262 note.prstatus.pr_reg.pc = cpu_to_dump64(s, env->pc); in arm_cpu_write_elf64_note()
263 note.prstatus.pr_reg.pstate = cpu_to_dump64(s, pstate); in arm_cpu_write_elf64_note()
316 struct arm_elf_prstatus prstatus; member
321 #define ARM_NOTE_HEADER_SIZE offsetof(struct arm_note, prstatus)
373 note.prstatus.pr_pid = cpu_to_dump32(s, cpuid); in arm_cpu_write_elf32_note()
[all …]
/openbmc/linux/arch/powerpc/platforms/powernv/
H A Dopal-core.c114 memset(prstatus, 0, sizeof(struct elf_prstatus)); in fill_prstatus()
115 elf_core_copy_regs(&(prstatus->pr_reg), regs); in fill_prstatus()
123 prstatus->common.pr_ppid = cpu_to_be32(1); in fill_prstatus()
133 prstatus->common.pr_cursig = cpu_to_be16(sig); in fill_prstatus()
225 struct elf_prstatus prstatus; in opalcore_append_cpu_notes() local
256 &prstatus, sizeof(prstatus)); in opalcore_append_cpu_notes()
279 fill_prstatus(&prstatus, thread_pir, &regs); in opalcore_append_cpu_notes()
283 NT_PRSTATUS, &prstatus, in opalcore_append_cpu_notes()
284 sizeof(prstatus)); in opalcore_append_cpu_notes()
291 NT_PRSTATUS, &prstatus, in opalcore_append_cpu_notes()
[all …]
/openbmc/qemu/target/ppc/
H A Darch_dump.c91 struct PPCElfPrstatus prstatus; member
108 struct PPCElfPrstatus *prstatus; in ppc_write_elf_prstatus() local
115 prstatus = &note->contents.prstatus; in ppc_write_elf_prstatus()
116 memset(prstatus, 0, sizeof(*prstatus)); in ppc_write_elf_prstatus()
117 prstatus->pid = cpu_to_dump32(s, id); in ppc_write_elf_prstatus()
118 reg = &prstatus->pr_reg; in ppc_write_elf_prstatus()
222 {sizeof_field(Note, contents.prstatus), ppc_write_elf_prstatus},
/openbmc/linux/fs/
H A Dbinfmt_elf_fdpic.c1288 prstatus->pr_info.si_signo = prstatus->pr_cursig = signr; in fill_prstatus()
1289 prstatus->pr_sigpend = p->pending.signal.sig[0]; in fill_prstatus()
1290 prstatus->pr_sighold = p->blocked.sig[0]; in fill_prstatus()
1294 prstatus->pr_pid = task_pid_vnr(p); in fill_prstatus()
1295 prstatus->pr_pgrp = task_pgrp_vnr(p); in fill_prstatus()
1296 prstatus->pr_sid = task_session_vnr(p); in fill_prstatus()
1388 fill_prstatus(&t->prstatus.common, p, signr); in elf_dump_thread_status()
1392 sizeof(t->prstatus.pr_reg), &t->prstatus.pr_reg); in elf_dump_thread_status()
1395 &t->prstatus); in elf_dump_thread_status()
1407 t->prstatus.pr_fpvalid = 1; in elf_dump_thread_status()
[all …]
H A Dbinfmt_elf.c1540 prstatus->pr_info.si_signo = prstatus->pr_cursig = signr; in fill_prstatus()
1542 prstatus->pr_sighold = p->blocked.sig[0]; in fill_prstatus()
1546 prstatus->pr_pid = task_pid_vnr(p); in fill_prstatus()
1547 prstatus->pr_pgrp = task_pgrp_vnr(p); in fill_prstatus()
1548 prstatus->pr_sid = task_session_vnr(p); in fill_prstatus()
1732 struct elf_prstatus prstatus; member
1782 sizeof(t->prstatus.pr_reg), &t->prstatus.pr_reg); in fill_thread_core_info()
1785 PRSTATUS_SIZE, &t->prstatus); in fill_thread_core_info()
1816 SET_PR_FPVALID(&t->prstatus); in fill_thread_core_info()
1839 &(t->prstatus)); in fill_thread_core_info()
[all …]
/openbmc/linux/kernel/
H A Dkexec_core.c1200 struct elf_prstatus prstatus; in crash_save_cpu() local
1216 memset(&prstatus, 0, sizeof(prstatus)); in crash_save_cpu()
1217 prstatus.common.pr_pid = current->pid; in crash_save_cpu()
1218 elf_core_copy_regs(&prstatus.pr_reg, regs); in crash_save_cpu()
1220 &prstatus, sizeof(prstatus)); in crash_save_cpu()
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-extended/dlt-daemon/dlt-daemon/
H A D544.patch61 +void get_registers(prstatus_t *prstatus, cdh_registers_t *registers)
63 +/* struct user_regs_struct *ptr_reg = (struct user_regs_struct *)prstatus->pr_reg;
/openbmc/qemu/linux-user/
H A Delfload.c3999 prstatus->pr_info.si_signo = tswap32(prstatus->pr_info.si_signo); in bswap_prstatus()
4000 prstatus->pr_info.si_code = tswap32(prstatus->pr_info.si_code); in bswap_prstatus()
4002 prstatus->pr_cursig = tswap16(prstatus->pr_cursig); in bswap_prstatus()
4003 prstatus->pr_sigpend = tswapal(prstatus->pr_sigpend); in bswap_prstatus()
4004 prstatus->pr_sighold = tswapal(prstatus->pr_sighold); in bswap_prstatus()
4005 prstatus->pr_pid = tswap32(prstatus->pr_pid); in bswap_prstatus()
4006 prstatus->pr_ppid = tswap32(prstatus->pr_ppid); in bswap_prstatus()
4007 prstatus->pr_pgrp = tswap32(prstatus->pr_pgrp); in bswap_prstatus()
4008 prstatus->pr_sid = tswap32(prstatus->pr_sid); in bswap_prstatus()
4011 prstatus->pr_fpvalid = tswap32(prstatus->pr_fpvalid); in bswap_prstatus()
[all …]
/openbmc/qemu/target/s390x/
H A Darch_dump.c71 S390xElfPrstatus prstatus; member
98 regs = &(note->contents.prstatus.regs); in s390x_write_elf64_prstatus()
105 note->contents.prstatus.pid = cpu_to_be32(id); in s390x_write_elf64_prstatus()
206 {sizeof_field(Note, contents.prstatus), NULL, s390x_write_elf64_prstatus, false},
/openbmc/linux/arch/powerpc/kernel/
H A Dfadump.c755 struct elf_prstatus prstatus; in fadump_regs_to_elf_notes() local
757 memset(&prstatus, 0, sizeof(prstatus)); in fadump_regs_to_elf_notes()
762 elf_core_copy_regs(&prstatus.pr_reg, regs); in fadump_regs_to_elf_notes()
764 &prstatus, sizeof(prstatus)); in fadump_regs_to_elf_notes()
/openbmc/linux/fs/proc/
H A Dkcore.c430 struct elf_prstatus prstatus = {}; in read_kcore_iter() local
447 append_kcore_note(notes, &i, CORE_STR, NT_PRSTATUS, &prstatus, in read_kcore_iter()
448 sizeof(prstatus)); in read_kcore_iter()