Searched refs:nhdr (Results 1 – 5 of 5) sorted by relevance
| /tools/testing/selftests/powerpc/ptrace/ |
| A D | core-pkey.c | 159 static Elf64_Nhdr *next_note(Elf64_Nhdr *nhdr) in next_note() argument 161 return (void *) nhdr + sizeof(*nhdr) + in next_note() 162 __ALIGN_KERNEL(nhdr->n_namesz, 4) + in next_note() 163 __ALIGN_KERNEL(nhdr->n_descsz, 4); in next_note() 171 Elf64_Nhdr *nhdr; in check_core_file() local 203 for (nhdr = p + phdr->p_offset; in check_core_file() 205 nhdr = next_note(nhdr)) in check_core_file() 206 if (nhdr->n_type == NT_PPC_PKEY) in check_core_file() 210 FAIL_IF(nhdr->n_descsz == 0); in check_core_file() 212 p = nhdr; in check_core_file() [all …]
|
| /tools/perf/util/ |
| A D | symbol-minimal.c | 42 } *nhdr; in read_build_id() local 50 nhdr = ptr; in read_build_id() 52 nhdr->n_namesz = bswap_32(nhdr->n_namesz); in read_build_id() 53 nhdr->n_descsz = bswap_32(nhdr->n_descsz); in read_build_id() 54 nhdr->n_type = bswap_32(nhdr->n_type); in read_build_id() 57 namesz = NOTE_ALIGN(nhdr->n_namesz); in read_build_id() 58 descsz = NOTE_ALIGN(nhdr->n_descsz); in read_build_id() 60 ptr += sizeof(*nhdr); in read_build_id() 63 if (nhdr->n_type == NT_GNU_BUILD_ID && in read_build_id() 64 nhdr->n_namesz == sizeof("GNU")) { in read_build_id()
|
| A D | symbol-elf.c | 849 GElf_Nhdr *nhdr = ptr; in elf_read_build_id() local 854 ptr += sizeof(*nhdr); in elf_read_build_id() 981 GElf_Nhdr nhdr; in sysfs__read_build_id() local 984 if (read(fd, &nhdr, sizeof(nhdr)) != sizeof(nhdr)) in sysfs__read_build_id() 987 namesz = NOTE_ALIGN(nhdr.n_namesz); in sysfs__read_build_id() 988 descsz = NOTE_ALIGN(nhdr.n_descsz); in sysfs__read_build_id() 989 if (nhdr.n_type == NT_GNU_BUILD_ID && in sysfs__read_build_id() 1009 __func__, filename, nhdr.n_namesz, nhdr.n_descsz); in sysfs__read_build_id() 2883 GElf_Nhdr nhdr; in construct_sdt_notes_list() local 2917 if (nhdr.n_type != SDT_NOTE_TYPE) in construct_sdt_notes_list() [all …]
|
| /tools/testing/selftests/bpf/ |
| A D | trace_helpers.c | 410 Elf32_Nhdr *nhdr = (Elf32_Nhdr *)(note_start + note_offs); in parse_build_id_buf() local 412 if (nhdr->n_type == 3 && nhdr->n_namesz == sizeof("GNU") && in parse_build_id_buf() 413 !strcmp((char *)(nhdr + 1), "GNU") && nhdr->n_descsz > 0 && in parse_build_id_buf() 414 nhdr->n_descsz <= BPF_BUILD_ID_SIZE) { in parse_build_id_buf() 416 ALIGN(sizeof("GNU"), 4) + sizeof(Elf32_Nhdr), nhdr->n_descsz); in parse_build_id_buf() 417 memset(build_id + nhdr->n_descsz, 0, BPF_BUILD_ID_SIZE - nhdr->n_descsz); in parse_build_id_buf() 418 return (int) nhdr->n_descsz; in parse_build_id_buf() 422 ALIGN(nhdr->n_namesz, 4) + ALIGN(nhdr->n_descsz, 4); in parse_build_id_buf()
|
| /tools/lib/bpf/ |
| A D | usdt.c | 573 static int parse_usdt_note(Elf *elf, const char *path, GElf_Nhdr *nhdr, 590 GElf_Nhdr nhdr; in collect_usdt_targets() local 623 while ((off = gelf_getnote(data, off, &nhdr, &name_off, &desc_off)) > 0) { in collect_usdt_targets() 629 err = parse_usdt_note(elf, path, &nhdr, data->d_buf, name_off, desc_off, ¬e); in collect_usdt_targets() 1135 static int parse_usdt_note(Elf *elf, const char *path, GElf_Nhdr *nhdr, in parse_usdt_note() argument 1144 if (strncmp(data + name_off, USDT_NOTE_NAME, nhdr->n_namesz) != 0) in parse_usdt_note() 1146 if (nhdr->n_type != USDT_NOTE_TYPE) in parse_usdt_note() 1150 len = nhdr->n_descsz; in parse_usdt_note()
|
Completed in 17 milliseconds