Lines Matching full:notes

1698 	struct memelfnote notes[];  member
1748 fill_note(&t->notes[0], "CORE", NT_PRSTATUS, in fill_thread_core_info()
1750 *total += notesize(&t->notes[0]); in fill_thread_core_info()
1756 * that has no core_note_type or is inactive, we leave t->notes[i] in fill_thread_core_info()
1779 fill_note(&t->notes[i], is_fpreg ? "CORE" : "LINUX", in fill_thread_core_info()
1782 *total += notesize(&t->notes[i]); in fill_thread_core_info()
1811 * Figure out how many notes we're going to need for each thread. in fill_note_info()
1839 notes[info->thread_notes]), in fill_note_info()
1866 * Fill in the two process-wide notes. in fill_note_info()
1889 * Write all the notes for each thread. When writing the first thread, the
1890 * process-wide notes are interleaved after the first thread-specific note.
1901 if (!writenote(&t->notes[0], cprm)) in write_note_info()
1915 if (t->notes[i].data && in write_note_info()
1916 !writenote(&t->notes[i], cprm)) in write_note_info()
1933 WARN_ON(t->notes[0].data && t->notes[0].data != &t->prstatus); in free_note_info()
1935 kfree(t->notes[i].data); in free_note_info()
1951 struct memelfnote notes[3]; member
1969 fill_note(&t->notes[0], "CORE", NT_PRSTATUS, sizeof(t->prstatus), in elf_dump_thread_status()
1972 sz += notesize(&t->notes[0]); in elf_dump_thread_status()
1976 fill_note(&t->notes[1], "CORE", NT_PRFPREG, sizeof(t->fpu), in elf_dump_thread_status()
1979 sz += notesize(&t->notes[1]); in elf_dump_thread_status()
1985 struct memelfnote *notes; member
2001 /* Allocate space for ELF notes */ in elf_note_info_init()
2002 info->notes = kmalloc_array(8, sizeof(struct memelfnote), GFP_KERNEL); in elf_note_info_init()
2003 if (!info->notes) in elf_note_info_init()
2052 * Set up the notes in similar form to SVR4 core dumps made in fill_note_info()
2056 fill_note(info->notes + 0, "CORE", NT_PRSTATUS, in fill_note_info()
2059 fill_note(info->notes + 1, "CORE", NT_PRPSINFO, in fill_note_info()
2062 fill_siginfo_note(info->notes + 2, &info->csigdata, siginfo); in fill_note_info()
2063 fill_auxv_note(info->notes + 3, current->mm); in fill_note_info()
2066 if (fill_files_note(info->notes + info->numnote) == 0) { in fill_note_info()
2067 info->notes_files = info->notes + info->numnote; in fill_note_info()
2075 fill_note(info->notes + info->numnote++, in fill_note_info()
2086 sz += notesize(info->notes + i); in get_note_info_size()
2100 if (!writenote(info->notes + i, cprm)) in write_note_info()
2103 /* write out the thread status notes section */ in write_note_info()
2106 if (!writenote(&ets->notes[i], cprm)) in write_note_info()
2127 kfree(info->notes); in free_note_info()
2179 /* for notes section */ in elf_core_dump()
2189 * notes. This also sets up the file header. in elf_core_dump()
2199 /* Write notes phdr entry */ in elf_core_dump()
2263 /* write out the notes section */ in elf_core_dump()