Home
last modified time | relevance | path

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

/Linux-v5.10/arch/ia64/kernel/
Dcrash.c42 struct elf_prstatus *prstatus = &per_cpu(elf_prstatus, cpu); in crash_save_this_cpu() local
44 elf_greg_t *dst = (elf_greg_t *)&(prstatus->pr_reg); in crash_save_this_cpu()
45 memset(prstatus, 0, sizeof(*prstatus)); in crash_save_this_cpu()
46 prstatus->pr_pid = current->pid; in crash_save_this_cpu()
58 buf = append_elf_note(buf, KEXEC_CORE_NOTE_NAME, NT_PRSTATUS, prstatus, in crash_save_this_cpu()
59 sizeof(*prstatus)); in crash_save_this_cpu()
/Linux-v5.10/fs/
Dbinfmt_elf.c1498 static void fill_prstatus(struct elf_prstatus *prstatus, in fill_prstatus() argument
1501 prstatus->pr_info.si_signo = prstatus->pr_cursig = signr; in fill_prstatus()
1502 prstatus->pr_sigpend = p->pending.signal.sig[0]; in fill_prstatus()
1503 prstatus->pr_sighold = p->blocked.sig[0]; in fill_prstatus()
1505 prstatus->pr_ppid = task_pid_vnr(rcu_dereference(p->real_parent)); in fill_prstatus()
1507 prstatus->pr_pid = task_pid_vnr(p); in fill_prstatus()
1508 prstatus->pr_pgrp = task_pgrp_vnr(p); in fill_prstatus()
1509 prstatus->pr_sid = task_session_vnr(p); in fill_prstatus()
1518 prstatus->pr_utime = ns_to_kernel_old_timeval(cputime.utime); in fill_prstatus()
1519 prstatus->pr_stime = ns_to_kernel_old_timeval(cputime.stime); in fill_prstatus()
[all …]
Dbinfmt_elf_fdpic.c1304 static void fill_prstatus(struct elf_prstatus_fdpic *prstatus, in fill_prstatus() argument
1307 prstatus->pr_info.si_signo = prstatus->pr_cursig = signr; in fill_prstatus()
1308 prstatus->pr_sigpend = p->pending.signal.sig[0]; in fill_prstatus()
1309 prstatus->pr_sighold = p->blocked.sig[0]; in fill_prstatus()
1311 prstatus->pr_ppid = task_pid_vnr(rcu_dereference(p->real_parent)); in fill_prstatus()
1313 prstatus->pr_pid = task_pid_vnr(p); in fill_prstatus()
1314 prstatus->pr_pgrp = task_pgrp_vnr(p); in fill_prstatus()
1315 prstatus->pr_sid = task_session_vnr(p); in fill_prstatus()
1324 prstatus->pr_utime = ns_to_kernel_old_timeval(cputime.utime); in fill_prstatus()
1325 prstatus->pr_stime = ns_to_kernel_old_timeval(cputime.stime); in fill_prstatus()
[all …]
/Linux-v5.10/arch/powerpc/platforms/powernv/
Dopal-core.c111 static void fill_prstatus(struct elf_prstatus *prstatus, int pir, in fill_prstatus() argument
114 memset(prstatus, 0, sizeof(struct elf_prstatus)); in fill_prstatus()
115 elf_core_copy_kernel_regs(&(prstatus->pr_reg), regs); in fill_prstatus()
122 prstatus->pr_pid = cpu_to_be32(100 + pir); in fill_prstatus()
123 prstatus->pr_ppid = cpu_to_be32(1); in fill_prstatus()
133 prstatus->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()
[all …]
/Linux-v5.10/kernel/
Dkexec_core.c1063 struct elf_prstatus prstatus; in crash_save_cpu() local
1079 memset(&prstatus, 0, sizeof(prstatus)); in crash_save_cpu()
1080 prstatus.pr_pid = current->pid; in crash_save_cpu()
1081 elf_core_copy_kernel_regs(&prstatus.pr_reg, regs); in crash_save_cpu()
1083 &prstatus, sizeof(prstatus)); in crash_save_cpu()
/Linux-v5.10/arch/powerpc/kernel/
Dfadump.c742 struct elf_prstatus prstatus; in fadump_regs_to_elf_notes() local
744 memset(&prstatus, 0, sizeof(prstatus)); in fadump_regs_to_elf_notes()
749 elf_core_copy_kernel_regs(&prstatus.pr_reg, regs); in fadump_regs_to_elf_notes()
751 &prstatus, sizeof(prstatus)); in fadump_regs_to_elf_notes()
/Linux-v5.10/fs/proc/
Dkcore.c416 struct elf_prstatus prstatus = {}; in read_kcore() local
433 append_kcore_note(notes, &i, CORE_STR, NT_PRSTATUS, &prstatus, in read_kcore()
434 sizeof(prstatus)); in read_kcore()