Lines Matching full:notes
1731 struct memelfnote notes[]; member
1784 fill_note(&t->notes[0], "CORE", NT_PRSTATUS, in fill_thread_core_info()
1786 *total += notesize(&t->notes[0]); in fill_thread_core_info()
1792 * that has no core_note_type or is inactive, we leave t->notes[i] in fill_thread_core_info()
1815 fill_note(&t->notes[i], is_fpreg ? "CORE" : "LINUX", in fill_thread_core_info()
1818 *total += notesize(&t->notes[i]); in fill_thread_core_info()
1847 * Figure out how many notes we're going to need for each thread. in fill_note_info()
1875 notes[info->thread_notes]), in fill_note_info()
1902 * Fill in the two process-wide notes. in fill_note_info()
1925 * Write all the notes for each thread. When writing the first thread, the
1926 * process-wide notes are interleaved after the first thread-specific note.
1937 if (!writenote(&t->notes[0], cprm)) in write_note_info()
1951 if (t->notes[i].data && in write_note_info()
1952 !writenote(&t->notes[i], cprm)) in write_note_info()
1969 WARN_ON(t->notes[0].data && t->notes[0].data != &t->prstatus); in free_note_info()
1971 kfree(t->notes[i].data); in free_note_info()
1987 struct memelfnote notes[3]; member
2005 fill_note(&t->notes[0], "CORE", NT_PRSTATUS, sizeof(t->prstatus), in elf_dump_thread_status()
2008 sz += notesize(&t->notes[0]); in elf_dump_thread_status()
2012 fill_note(&t->notes[1], "CORE", NT_PRFPREG, sizeof(t->fpu), in elf_dump_thread_status()
2015 sz += notesize(&t->notes[1]); in elf_dump_thread_status()
2021 struct memelfnote *notes; member
2037 /* Allocate space for ELF notes */ in elf_note_info_init()
2038 info->notes = kmalloc_array(8, sizeof(struct memelfnote), GFP_KERNEL); in elf_note_info_init()
2039 if (!info->notes) in elf_note_info_init()
2088 * Set up the notes in similar form to SVR4 core dumps made in fill_note_info()
2092 fill_note(info->notes + 0, "CORE", NT_PRSTATUS, in fill_note_info()
2095 fill_note(info->notes + 1, "CORE", NT_PRPSINFO, in fill_note_info()
2098 fill_siginfo_note(info->notes + 2, &info->csigdata, cprm->siginfo); in fill_note_info()
2099 fill_auxv_note(info->notes + 3, current->mm); in fill_note_info()
2102 if (fill_files_note(info->notes + info->numnote, cprm) == 0) { in fill_note_info()
2103 info->notes_files = info->notes + info->numnote; in fill_note_info()
2111 fill_note(info->notes + info->numnote++, in fill_note_info()
2122 sz += notesize(info->notes + i); in get_note_info_size()
2136 if (!writenote(info->notes + i, cprm)) in write_note_info()
2139 /* write out the thread status notes section */ in write_note_info()
2142 if (!writenote(&ets->notes[i], cprm)) in write_note_info()
2163 kfree(info->notes); in free_note_info()
2210 /* for notes section */ in elf_core_dump()
2220 * notes. This also sets up the file header. in elf_core_dump()
2230 /* Write notes phdr entry */ in elf_core_dump()
2293 /* write out the notes section */ in elf_core_dump()