Lines Matching refs:notes
1730 struct memelfnote notes[];
1783 fill_note(&t->notes[0], "CORE", NT_PRSTATUS,
1785 *total += notesize(&t->notes[0]);
1791 * that has no core_note_type or is inactive, we leave t->notes[i]
1814 fill_note(&t->notes[i], is_fpreg ? "CORE" : "LINUX",
1817 *total += notesize(&t->notes[i]);
1846 * Figure out how many notes we're going to need for each thread.
1874 notes[info->thread_notes]),
1901 * Fill in the two process-wide notes.
1924 * Write all the notes for each thread. When writing the first thread, the
1925 * process-wide notes are interleaved after the first thread-specific note.
1936 if (!writenote(&t->notes[0], cprm))
1950 if (t->notes[i].data &&
1951 !writenote(&t->notes[i], cprm))
1968 WARN_ON(t->notes[0].data && t->notes[0].data != &t->prstatus);
1970 kfree(t->notes[i].data);
1986 struct memelfnote notes[3];
2004 fill_note(&t->notes[0], "CORE", NT_PRSTATUS, sizeof(t->prstatus),
2007 sz += notesize(&t->notes[0]);
2011 fill_note(&t->notes[1], "CORE", NT_PRFPREG, sizeof(t->fpu),
2014 sz += notesize(&t->notes[1]);
2020 struct memelfnote *notes;
2036 /* Allocate space for ELF notes */
2037 info->notes = kmalloc_array(8, sizeof(struct memelfnote), GFP_KERNEL);
2038 if (!info->notes)
2087 * Set up the notes in similar form to SVR4 core dumps made
2091 fill_note(info->notes + 0, "CORE", NT_PRSTATUS,
2094 fill_note(info->notes + 1, "CORE", NT_PRPSINFO,
2097 fill_siginfo_note(info->notes + 2, &info->csigdata, cprm->siginfo);
2098 fill_auxv_note(info->notes + 3, current->mm);
2101 if (fill_files_note(info->notes + info->numnote, cprm) == 0) {
2102 info->notes_files = info->notes + info->numnote;
2110 fill_note(info->notes + info->numnote++,
2121 sz += notesize(info->notes + i);
2135 if (!writenote(info->notes + i, cprm))
2138 /* write out the thread status notes section */
2141 if (!writenote(&ets->notes[i], cprm))
2162 kfree(info->notes);
2209 /* for notes section */
2219 * notes. This also sets up the file header.
2229 /* Write notes phdr entry */
2292 /* write out the notes section */