Lines Matching full:notes
1370 struct memelfnote notes[0]; member
1410 fill_note(&t->notes[0], "CORE", NT_PRSTATUS, in fill_thread_core_info()
1412 *total += notesize(&t->notes[0]); in fill_thread_core_info()
1418 * that has no core_note_type or is inactive, we leave t->notes[i] in fill_thread_core_info()
1437 fill_note(&t->notes[i], "LINUX", in fill_thread_core_info()
1442 fill_note(&t->notes[i], "CORE", in fill_thread_core_info()
1445 *total += notesize(&t->notes[i]); in fill_thread_core_info()
1474 * Figure out how many notes we're going to need for each thread. in fill_note_info()
1502 notes[info->thread_notes]), in fill_note_info()
1529 * Fill in the two process-wide notes. in fill_note_info()
1546 * Write all the notes for each thread. When writing the first thread, the
1547 * process-wide notes are interleaved after the first thread-specific note.
1558 if (!writenote(&t->notes[0], file, foffset)) in write_note_info()
1567 if (t->notes[i].data && in write_note_info()
1568 !writenote(&t->notes[i], file, foffset)) in write_note_info()
1585 WARN_ON(t->notes[0].data && t->notes[0].data != &t->prstatus); in free_note_info()
1587 kfree(t->notes[i].data); in free_note_info()
1605 struct memelfnote notes[3]; member
1623 fill_note(&t->notes[0], "CORE", NT_PRSTATUS, sizeof(t->prstatus), in elf_dump_thread_status()
1626 sz += notesize(&t->notes[0]); in elf_dump_thread_status()
1630 fill_note(&t->notes[1], "CORE", NT_PRFPREG, sizeof(t->fpu), in elf_dump_thread_status()
1633 sz += notesize(&t->notes[1]); in elf_dump_thread_status()
1638 fill_note(&t->notes[2], "LINUX", ELF_CORE_XFPREG_TYPE, in elf_dump_thread_status()
1641 sz += notesize(&t->notes[2]); in elf_dump_thread_status()
1648 struct memelfnote *notes; member
1665 /* Allocate space for six ELF notes */ in elf_note_info_init()
1666 info->notes = kmalloc(6 * sizeof(struct memelfnote), GFP_KERNEL); in elf_note_info_init()
1667 if (!info->notes) in elf_note_info_init()
1693 kfree(info->notes); in elf_note_info_init()
1737 * Set up the notes in similar form to SVR4 core dumps made in fill_note_info()
1741 fill_note(info->notes + 0, "CORE", NT_PRSTATUS, in fill_note_info()
1744 fill_note(info->notes + 1, "CORE", NT_PRPSINFO, in fill_note_info()
1749 fill_auxv_note(&info->notes[info->numnote++], current->mm); in fill_note_info()
1755 fill_note(info->notes + info->numnote++, in fill_note_info()
1759 fill_note(info->notes + info->numnote++, in fill_note_info()
1773 sz += notesize(info->notes + i); in get_note_info_size()
1787 if (!writenote(info->notes + i, file, foffset)) in write_note_info()
1790 /* write out the thread status notes section */ in write_note_info()
1796 if (!writenote(&tmp->notes[i], file, foffset)) in write_note_info()
1813 kfree(info->notes); in free_note_info()
1925 /* for notes section */ in elf_core_dump()
1935 * notes. This also sets up the file header. in elf_core_dump()
1950 /* Write notes phdr entry */ in elf_core_dump()
2016 /* write out the notes section */ in elf_core_dump()