/openbmc/linux/lib/ |
H A D | buildid.c | 19 Elf32_Word note_size) in parse_build_id_buf() argument 26 while (note_off + sizeof(Elf32_Nhdr) < note_size && in parse_build_id_buf() 36 new_off > note_size) in parse_build_id_buf() 61 Elf32_Word note_size) in parse_build_id() argument 64 if (note_start < page_addr || note_start + note_size < note_start) in parse_build_id() 68 if (note_start + note_size > page_addr + PAGE_SIZE) in parse_build_id() 71 return parse_build_id_buf(build_id, size, note_start, note_size); in parse_build_id()
|
/openbmc/qemu/target/i386/ |
H A D | arch_dump.c | 50 int descsz, note_size, name_size = 5; in x86_64_write_elf64_note() local 84 note_size = ELF_NOTE_SIZE(sizeof(Elf64_Nhdr), name_size, descsz); in x86_64_write_elf64_note() 85 note = g_malloc0(note_size); in x86_64_write_elf64_note() 97 ret = f(note, note_size, s); in x86_64_write_elf64_note() 156 int descsz, note_size, name_size = 5; in x86_write_elf64_note() local 162 note_size = ELF_NOTE_SIZE(sizeof(Elf64_Nhdr), name_size, descsz); in x86_write_elf64_note() 163 note = g_malloc0(note_size); in x86_write_elf64_note() 173 ret = f(note, note_size, s); in x86_write_elf64_note() 210 int descsz, note_size, name_size = 5; in x86_cpu_write_elf32_note() local 216 note_size = ELF_NOTE_SIZE(sizeof(Elf32_Nhdr), name_size, descsz); in x86_cpu_write_elf32_note() [all …]
|
/openbmc/qemu/target/riscv/ |
H A D | arch_dump.c | 192 size_t note_size; in cpu_get_note_size() local 195 note_size = RISCV64_PRSTATUS_NOTE_SIZE; in cpu_get_note_size() 197 note_size = RISCV32_PRSTATUS_NOTE_SIZE; in cpu_get_note_size() 200 return note_size * nr_cpus; in cpu_get_note_size()
|
/openbmc/qemu/target/arm/ |
H A D | arch_dump.c | 448 size_t note_size; in cpu_get_note_size() local 451 note_size = AARCH64_PRSTATUS_NOTE_SIZE; in cpu_get_note_size() 452 note_size += AARCH64_PRFPREG_NOTE_SIZE; in cpu_get_note_size() 455 note_size += AARCH64_SVE_NOTE_SIZE(&cpu->env); in cpu_get_note_size() 459 note_size = ARM_PRSTATUS_NOTE_SIZE; in cpu_get_note_size() 461 note_size += ARM_VFP_NOTE_SIZE; in cpu_get_note_size() 465 return note_size * nr_cpus; in cpu_get_note_size()
|
/openbmc/openbmc/poky/meta/recipes-core/glibc/ldconfig-native-2.12.1/ |
H A D | 32and64bit.patch | 115 + Elf32_Addr) note_size = 3 * sizeof (Elf32_Word)) 119 + if (size - 32 < note_size || note_size == 0) 124 + size -= note_size; 125 + abi_note = (void *) abi_note + note_size; 274 - ElfW(Addr) note_size = 3 * sizeof (ElfW(Word)) 276 + Elf64_Addr note_size = 3 * sizeof (Elf64_Word)
|
H A D | endian-ness_handling.patch | 118 - Elf32_Addr) note_size = 3 * sizeof (Elf32_Word)) 122 + Elf32_Addr note_size = 3 * sizeof (Elf32_Word) 126 if (size - 32 < note_size || note_size == 0) 265 Elf64_Addr note_size = 3 * sizeof (Elf64_Word) 271 if (size - 32 < note_size || note_size == 0)
|
/openbmc/qemu/target/s390x/ |
H A D | arch_dump.c | 232 int note_size, prev_size = 0, content_size; in s390x_write_elf64_notes() local 243 note_size = sizeof(Note) - sizeof(notep->contents) + content_size; in s390x_write_elf64_notes() 245 if (prev_size < note_size) { in s390x_write_elf64_notes() 247 notep = g_malloc(note_size); in s390x_write_elf64_notes() 248 prev_size = note_size; in s390x_write_elf64_notes() 251 memset(notep, 0, note_size); in s390x_write_elf64_notes() 260 ret = f(notep, note_size, s); in s390x_write_elf64_notes()
|
/openbmc/qemu/target/loongarch/ |
H A D | arch_dump.c | 156 size_t note_size = 0; in cpu_get_note_size() local 159 note_size = LOONGARCH_PRSTATUS_NOTE_SIZE + LOONGARCH_PRFPREG_NOTE_SIZE; in cpu_get_note_size() 162 return note_size * nr_cpus; in cpu_get_note_size()
|
/openbmc/qemu/dump/ |
H A D | dump.c | 272 phdr->p_filesz = cpu_to_dump64(s, s->note_size); in prepare_elf64_phdr_note() 273 phdr->p_memsz = cpu_to_dump64(s, s->note_size); in prepare_elf64_phdr_note() 328 phdr->p_filesz = cpu_to_dump32(s, s->note_size); in prepare_elf32_phdr_note() 329 phdr->p_memsz = cpu_to_dump32(s, s->note_size); in prepare_elf32_phdr_note() 902 if (s->note_buf_offset + size > s->note_size) { in buf_write_note() 984 sub_hdr_size = sizeof(struct KdumpSubHeader32) + s->note_size; in create_header32() 1030 offset_vmcoreinfo = offset_note + s->note_size - s->guest_note_size + in create_header32() 1037 kh->note_size = cpu_to_dump32(s, s->note_size); in create_header32() 1046 s->note_buf = g_malloc0(s->note_size); in create_header32() 1055 s->note_size) < 0) { in create_header32() [all …]
|
/openbmc/qemu/include/sysemu/ |
H A D | dump.h | 112 uint32_t note_size; /* header_version 4 and later */ member 131 uint64_t note_size; /* header_version 4 and later */ member 178 ssize_t note_size; member
|
/openbmc/qemu/target/ppc/ |
H A D | arch_dump.c | 283 int note_size; in ppc_write_all_elf_notes() local 293 note_size = in ppc_write_all_elf_notes() 295 ret = f(&arg.note, note_size, s); in ppc_write_all_elf_notes()
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | trace_helpers.c | 245 parse_build_id_buf(const void *note_start, Elf32_Word note_size, char *build_id) in parse_build_id_buf() argument 249 while (note_offs + sizeof(Elf32_Nhdr) < note_size) { in parse_build_id_buf()
|
/openbmc/qemu/include/hw/ |
H A D | elf_ops.h.inc | 276 elf_word note_size, 303 if (elf_note_entry_offset > note_size) {
|
/openbmc/qemu/linux-user/ |
H A D | elfload.c | 4361 size_t note_size; in elf_core_dump() local 4399 note_size = offset - note_offset; in elf_core_dump() 4435 fill_elf_note_phdr(hptr, note_size, note_offset); in elf_core_dump()
|