• Home
  • Raw
  • Download

Lines Matching refs:t

1699 static int fill_thread_core_info(struct elf_thread_core_info *t,  in fill_thread_core_info()  argument
1704 unsigned int regset0_size = regset_size(t->task, &view->regsets[0]); in fill_thread_core_info()
1712 fill_prstatus(&t->prstatus, t->task, signr); in fill_thread_core_info()
1713 (void) view->regsets[0].get(t->task, &view->regsets[0], 0, regset0_size, in fill_thread_core_info()
1714 &t->prstatus.pr_reg, NULL); in fill_thread_core_info()
1716 fill_note(&t->notes[0], "CORE", NT_PRSTATUS, in fill_thread_core_info()
1717 PRSTATUS_SIZE(t->prstatus, regset0_size), &t->prstatus); in fill_thread_core_info()
1718 *total += notesize(&t->notes[0]); in fill_thread_core_info()
1720 do_thread_regset_writeback(t->task, &view->regsets[0]); in fill_thread_core_info()
1729 do_thread_regset_writeback(t->task, regset); in fill_thread_core_info()
1731 (!regset->active || regset->active(t->task, regset) > 0)) { in fill_thread_core_info()
1733 size_t size = regset_size(t->task, regset); in fill_thread_core_info()
1737 ret = regset->get(t->task, regset, in fill_thread_core_info()
1743 fill_note(&t->notes[i], "LINUX", in fill_thread_core_info()
1747 SET_PR_FPVALID(&t->prstatus, in fill_thread_core_info()
1749 fill_note(&t->notes[i], "CORE", in fill_thread_core_info()
1752 *total += notesize(&t->notes[i]); in fill_thread_core_info()
1766 struct elf_thread_core_info *t; in fill_note_info() local
1810 t = kzalloc(offsetof(struct elf_thread_core_info, in fill_note_info()
1813 if (unlikely(!t)) in fill_note_info()
1816 t->task = ct->task; in fill_note_info()
1818 t->next = info->thread; in fill_note_info()
1819 info->thread = t; in fill_note_info()
1825 t->next = info->thread->next; in fill_note_info()
1826 info->thread->next = t; in fill_note_info()
1833 for (t = info->thread; t != NULL; t = t->next) in fill_note_info()
1834 if (!fill_thread_core_info(t, view, siginfo->si_signo, &info->size)) in fill_note_info()
1868 struct elf_thread_core_info *t = info->thread; in write_note_info() local
1873 if (!writenote(&t->notes[0], cprm)) in write_note_info()
1887 if (t->notes[i].data && in write_note_info()
1888 !writenote(&t->notes[i], cprm)) in write_note_info()
1892 t = t->next; in write_note_info()
1893 } while (t); in write_note_info()
1903 struct elf_thread_core_info *t = threads; in free_note_info() local
1904 threads = t->next; in free_note_info()
1905 WARN_ON(t->notes[0].data && t->notes[0].data != &t->prstatus); in free_note_info()
1907 kfree(t->notes[i].data); in free_note_info()
1908 kfree(t); in free_note_info()
1935 static int elf_dump_thread_status(long signr, struct elf_thread_status *t) in elf_dump_thread_status() argument
1938 struct task_struct *p = t->thread; in elf_dump_thread_status()
1939 t->num_notes = 0; in elf_dump_thread_status()
1941 fill_prstatus(&t->prstatus, p, signr); in elf_dump_thread_status()
1942 elf_core_copy_task_regs(p, &t->prstatus.pr_reg); in elf_dump_thread_status()
1944 fill_note(&t->notes[0], "CORE", NT_PRSTATUS, sizeof(t->prstatus), in elf_dump_thread_status()
1945 &(t->prstatus)); in elf_dump_thread_status()
1946 t->num_notes++; in elf_dump_thread_status()
1947 sz += notesize(&t->notes[0]); in elf_dump_thread_status()
1949 if ((t->prstatus.pr_fpvalid = elf_core_copy_task_fpregs(p, NULL, in elf_dump_thread_status()
1950 &t->fpu))) { in elf_dump_thread_status()
1951 fill_note(&t->notes[1], "CORE", NT_PRFPREG, sizeof(t->fpu), in elf_dump_thread_status()
1952 &(t->fpu)); in elf_dump_thread_status()
1953 t->num_notes++; in elf_dump_thread_status()
1954 sz += notesize(&t->notes[1]); in elf_dump_thread_status()
1958 if (elf_core_copy_task_xfpregs(p, &t->xfpu)) { in elf_dump_thread_status()
1959 fill_note(&t->notes[2], "LINUX", ELF_CORE_XFPREG_TYPE, in elf_dump_thread_status()
1960 sizeof(t->xfpu), &t->xfpu); in elf_dump_thread_status()
1961 t->num_notes++; in elf_dump_thread_status()
1962 sz += notesize(&t->notes[2]); in elf_dump_thread_status()