Home
last modified time | relevance | path

Searched refs:shdr (Results 1 – 25 of 49) sorted by relevance

12

/linux/tools/perf/util/
A Dgenelf.c159 Elf_Shdr *shdr; in jit_add_eh_frame_info() local
185 if (!shdr) { in jit_add_eh_frame_info()
219 if (!shdr) { in jit_add_eh_frame_info()
224 shdr->sh_name = 90; in jit_add_eh_frame_info()
250 Elf_Shdr *shdr; in jit_write_elf() local
307 if (!shdr) { in jit_write_elf()
312 shdr->sh_name = 1; in jit_write_elf()
353 if (!shdr) { in jit_write_elf()
389 if (!shdr) { in jit_write_elf()
432 if (!shdr) { in jit_write_elf()
[all …]
A Dgenelf_debug.c488 Elf_Shdr *shdr; in jit_add_debug_info() local
521 shdr = elf_getshdr(scn); in jit_add_debug_info()
522 if (!shdr) { in jit_add_debug_info()
530 shdr->sh_flags = 0; in jit_add_debug_info()
531 shdr->sh_entsize = 0; in jit_add_debug_info()
556 if (!shdr) { in jit_add_debug_info()
564 shdr->sh_flags = 0; in jit_add_debug_info()
565 shdr->sh_entsize = 0; in jit_add_debug_info()
590 if (!shdr) { in jit_add_debug_info()
598 shdr->sh_flags = 0; in jit_add_debug_info()
[all …]
A Dsymbol-elf.c194 GElf_Shdr shdr; in elf_addr_to_index() local
201 (addr < (shdr.sh_addr + shdr.sh_size))) in elf_addr_to_index()
465 GElf_Shdr shdr; in elf_read_build_id() local
730 GElf_Shdr shdr; in filename__read_debuglink() local
983 sym->st_value -= shdr->sh_addr - shdr->sh_offset; in dso__process_kernel_symbol()
1090 GElf_Shdr shdr; in dso__load_sym_internal() local
1147 nr_syms = shdr.sh_size / shdr.sh_entsize; in dso__load_sym_internal()
1269 sym.st_value -= shdr.sh_addr - shdr.sh_offset; in dso__load_sym_internal()
2226 GElf_Shdr shdr; in populate_sdt_note() local
2326 sdt_adjust_refctr(tmp, shdr.sh_addr, shdr.sh_offset); in populate_sdt_note()
[all …]
/linux/arch/mips/boot/tools/
A Drelocs.c276 if (fread(&shdr, sizeof(shdr), 1, fp) != 1) in read_shdrs()
279 sec->shdr.sh_name = elf_word_to_cpu(shdr.sh_name); in read_shdrs()
280 sec->shdr.sh_type = elf_word_to_cpu(shdr.sh_type); in read_shdrs()
281 sec->shdr.sh_flags = elf_xword_to_cpu(shdr.sh_flags); in read_shdrs()
282 sec->shdr.sh_addr = elf_addr_to_cpu(shdr.sh_addr); in read_shdrs()
283 sec->shdr.sh_offset = elf_off_to_cpu(shdr.sh_offset); in read_shdrs()
284 sec->shdr.sh_size = elf_xword_to_cpu(shdr.sh_size); in read_shdrs()
285 sec->shdr.sh_link = elf_word_to_cpu(shdr.sh_link); in read_shdrs()
286 sec->shdr.sh_info = elf_word_to_cpu(shdr.sh_info); in read_shdrs()
422 if (fread(&shdr, sizeof(shdr), 1, fp) != 1) in remove_relocs()
[all …]
/linux/drivers/media/platform/qcom/venus/
A Dhfi_cmds.c159 pkt->shdr.hdr.size = sizeof(*pkt); in pkt_session_init()
170 pkt->shdr.hdr.size = sizeof(*pkt); in pkt_session_cmd()
171 pkt->shdr.hdr.pkt_type = pkt_type; in pkt_session_cmd()
236 pkt->shdr.hdr.size = in pkt_session_unset_buffers()
244 pkt->shdr.hdr.size = in pkt_session_unset_buffers()
261 pkt->shdr.hdr.size = sizeof(*pkt); in pkt_session_etb_decoder()
285 pkt->shdr.hdr.size = sizeof(*pkt); in pkt_session_etb_encoder()
310 pkt->shdr.hdr.size = sizeof(*pkt); in pkt_session_ftb()
337 pkt->shdr.hdr.size = sizeof(*pkt); in pkt_session_parse_seq_header()
352 pkt->shdr.hdr.size = sizeof(*pkt); in pkt_session_get_seq_hdr()
[all …]
A Dhfi_msgs.h49 struct hfi_session_hdr_pkt shdr; member
81 struct hfi_session_hdr_pkt shdr; member
88 struct hfi_session_hdr_pkt shdr; member
93 struct hfi_session_hdr_pkt shdr; member
100 struct hfi_session_hdr_pkt shdr; member
121 struct hfi_session_hdr_pkt shdr; member
126 struct hfi_session_hdr_pkt shdr; member
131 struct hfi_session_hdr_pkt shdr; member
136 struct hfi_session_hdr_pkt shdr; member
141 struct hfi_session_hdr_pkt shdr; member
[all …]
A Dhfi_cmds.h94 struct hfi_session_hdr_pkt shdr; member
100 struct hfi_session_hdr_pkt shdr; member
104 struct hfi_session_hdr_pkt shdr; member
108 struct hfi_session_hdr_pkt shdr; member
114 struct hfi_session_hdr_pkt shdr; member
124 struct hfi_session_hdr_pkt shdr; member
130 struct hfi_session_hdr_pkt shdr; member
134 struct hfi_session_hdr_pkt shdr; member
138 struct hfi_session_hdr_pkt shdr; member
142 struct hfi_session_hdr_pkt shdr; member
[all …]
A Dhfi_msgs.c155 pkt->shdr.session_id, pkt->event_data1, in event_sys_error()
168 pkt->event_data1, pkt->shdr.session_id); in event_session_error()
184 pkt->shdr.session_id); in event_session_error()
342 req_bytes = pkt->shdr.hdr.size - sizeof(*pkt); in session_get_prop_profile_level()
363 req_bytes = pkt->shdr.hdr.size - sizeof(*pkt); in session_get_prop_buf_req()
437 rem_bytes = pkt->shdr.hdr.size - sizeof(*pkt) + sizeof(u32); in hfi_session_init_done()
774 inst = to_instance(core, pkt->shdr.session_id); in hfi_process_msg_packet()
778 pkt->shdr.session_id, in hfi_process_msg_packet()
787 pkt->shdr.session_id); in hfi_process_msg_packet()
/linux/arch/x86/tools/
A Drelocs.c421 if (fread(&shdr, sizeof(shdr), 1, fp) != 1) in read_ehdr()
438 Elf_Shdr shdr; in read_shdrs() local
451 if (fread(&shdr, sizeof(shdr), 1, fp) != 1) in read_shdrs()
454 sec->shdr.sh_name = elf_word_to_cpu(shdr.sh_name); in read_shdrs()
455 sec->shdr.sh_type = elf_word_to_cpu(shdr.sh_type); in read_shdrs()
456 sec->shdr.sh_flags = elf_xword_to_cpu(shdr.sh_flags); in read_shdrs()
457 sec->shdr.sh_addr = elf_addr_to_cpu(shdr.sh_addr); in read_shdrs()
458 sec->shdr.sh_offset = elf_off_to_cpu(shdr.sh_offset); in read_shdrs()
459 sec->shdr.sh_size = elf_xword_to_cpu(shdr.sh_size); in read_shdrs()
460 sec->shdr.sh_link = elf_word_to_cpu(shdr.sh_link); in read_shdrs()
[all …]
/linux/arch/mips/vdso/
A Dgenvdso.h11 ELF(Shdr) *shdr; in FUNC()
20 shstrtab = vdso + FUNC(swap_uint)(shdr->sh_offset); in FUNC()
23 shdr = shdrs + (i * sh_entsize); in FUNC()
24 name = shstrtab + swap_uint32(shdr->sh_name); in FUNC()
31 switch (swap_uint32(shdr->sh_type)) { in FUNC()
51 shdr->sh_entsize = shdr->sh_size; in FUNC()
62 ELF(Shdr) *shdr; in FUNC()
74 shdr = shdrs + (i * sh_entsize); in FUNC()
76 if (swap_uint32(shdr->sh_type) == SHT_SYMTAB) in FUNC()
97 st_entsize = FUNC(swap_uint)(shdr->sh_entsize); in FUNC()
[all …]
/linux/arch/riscv/kernel/
A Dmodule-sections.c23 got = (struct got_entry *)got_sec->shdr->sh_addr; in module_emit_got_entry()
102 mod->arch.plt.shdr = sechdrs + i; in module_frob_arch_sections()
104 mod->arch.got.shdr = sechdrs + i; in module_frob_arch_sections()
106 mod->arch.got_plt.shdr = sechdrs + i; in module_frob_arch_sections()
109 if (!mod->arch.plt.shdr) { in module_frob_arch_sections()
113 if (!mod->arch.got.shdr) { in module_frob_arch_sections()
117 if (!mod->arch.got_plt.shdr) { in module_frob_arch_sections()
138 mod->arch.plt.shdr->sh_type = SHT_NOBITS; in module_frob_arch_sections()
145 mod->arch.got.shdr->sh_type = SHT_NOBITS; in module_frob_arch_sections()
146 mod->arch.got.shdr->sh_flags = SHF_ALLOC; in module_frob_arch_sections()
[all …]
/linux/fs/cifs/
A Dsmb2misc.c35 if (shdr->Command == SMB2_OPLOCK_BREAK) in check_smb2_hdr()
43 le32_to_cpu(shdr->ProtocolId)); in check_smb2_hdr()
168 mid = le64_to_cpu(shdr->MessageId); in smb2_check_message()
171 && (shdr->Status != 0)) { in smb2_check_message()
189 if (check_smb2_hdr(shdr, mid)) in smb2_check_message()
212 && (shdr->Status == 0) in smb2_check_message()
224 if (shdr->Command == SMB2_NEGOTIATE) in smb2_check_message()
304 if (shdr->Status && shdr->Status != STATUS_MORE_PROCESSING_REQUIRED && in smb2_get_data_area_len()
314 switch (shdr->Command) { in smb2_get_data_area_len()
391 return (char *)shdr + *off; in smb2_get_data_area_len()
[all …]
A Dsmb2transport.c613 struct smb2_hdr *shdr; in smb2_sign_rqst() local
644 struct smb2_hdr *shdr = in smb2_verify_signature() local
662 shdr->Command); in smb2_verify_signature()
679 shdr->Command, shdr->MessageId); in smb2_verify_signature()
691 struct smb2_hdr *shdr) in smb2_seq_num_into_buf() argument
735 le64_to_cpu(shdr->SessionId), in smb2_mid_entry_alloc()
753 shdr->Command != SMB2_NEGOTIATE) in smb2_get_mid_entry()
764 if (shdr->Command != SMB2_LOGOFF) in smb2_get_mid_entry()
810 struct smb2_hdr *shdr = in smb2_setup_request() local
836 struct smb2_hdr *shdr = in smb2_setup_async_request() local
[all …]
/linux/tools/lib/bpf/
A Dlinker.c480 Elf64_Shdr *shdr = sec->shdr; in is_ignored_sec() local
632 sec->shdr = shdr; in linker_load_obj_file()
790 n = sec->shdr->sh_size / sec->shdr->sh_entsize; in linker_sanity_check_elf_symtab()
887 n = sec->shdr->sh_size / sec->shdr->sh_entsize; in linker_sanity_check_elf_relos()
1008 dst_sec->shdr = shdr; in init_sec()
1017 shdr->sh_type = src_sec->shdr->sh_type; in init_sec()
1018 shdr->sh_flags = src_sec->shdr->sh_flags; in init_sec()
1026 shdr->sh_addralign = src_sec->shdr->sh_addralign; in init_sec()
1027 shdr->sh_entsize = src_sec->shdr->sh_entsize; in init_sec()
1058 if (dst->shdr->sh_type != src->shdr->sh_type) { in secs_match()
[all …]
/linux/drivers/remoteproc/
A Dremoteproc_elf_loader.c250 const void *shdr, *name_table_shdr; local
310 return shdr;
328 const void *shdr; local
336 shdr = find_table(dev, fw);
337 if (!shdr)
342 tablesz = elf_shdr_get_sh_size(class, shdr);
375 const void *shdr; local
380 shdr = find_table(&rproc->dev, fw);
381 if (!shdr)
384 sh_addr = elf_shdr_get_sh_addr(class, shdr);
[all …]
A Dremoteproc_coredump.c346 void *shdr; in rproc_coredump_using_sections() local
413 memset(shdr, 0, elf_size_of_shdr(class)); in rproc_coredump_using_sections()
414 shdr += elf_size_of_shdr(class); in rproc_coredump_using_sections()
422 memset(shdr, 0, elf_size_of_shdr(class)); in rproc_coredump_using_sections()
426 elf_shdr_set_sh_entsize(class, shdr, 0); in rproc_coredump_using_sections()
427 elf_shdr_set_sh_flags(class, shdr, 0); in rproc_coredump_using_sections()
430 shdr += elf_size_of_shdr(class); in rproc_coredump_using_sections()
433 memset(shdr, 0, elf_size_of_shdr(class)); in rproc_coredump_using_sections()
438 elf_shdr_set_sh_entsize(class, shdr, 0); in rproc_coredump_using_sections()
440 elf_shdr_set_sh_name(class, shdr, in rproc_coredump_using_sections()
[all …]
A Dremoteproc_elf_helpers.h79 ELF_GEN_FIELD_GET_SET(shdr, sh_type, u32) in ELF_GEN_FIELD_GET_SET()
80 ELF_GEN_FIELD_GET_SET(shdr, sh_flags, u32) in ELF_GEN_FIELD_GET_SET()
81 ELF_GEN_FIELD_GET_SET(shdr, sh_entsize, u16) in ELF_GEN_FIELD_GET_SET()
82 ELF_GEN_FIELD_GET_SET(shdr, sh_size, u64) in ELF_GEN_FIELD_GET_SET()
83 ELF_GEN_FIELD_GET_SET(shdr, sh_offset, u64) in ELF_GEN_FIELD_GET_SET()
84 ELF_GEN_FIELD_GET_SET(shdr, sh_name, u32) in ELF_GEN_FIELD_GET_SET()
85 ELF_GEN_FIELD_GET_SET(shdr, sh_addr, u64) in ELF_GEN_FIELD_GET_SET()
96 ELF_STRUCT_SIZE(shdr)
103 void *shdr; local
107 shdr = ehdr + elf_size_of_hdr(class) + shstrndx * elf_size_of_shdr(class);
[all …]
A Dpru_rproc.c650 struct elf32_shdr *shdr, *name_table_shdr; in pru_rproc_find_interrupt_map() local
661 name_table_shdr = shdr + shstrndx; in pru_rproc_find_interrupt_map()
665 for (i = 0; i < shnum; i++, shdr++) { in pru_rproc_find_interrupt_map()
666 u32 size = shdr->sh_size; in pru_rproc_find_interrupt_map()
667 u32 offset = shdr->sh_offset; in pru_rproc_find_interrupt_map()
668 u32 name = shdr->sh_name; in pru_rproc_find_interrupt_map()
685 return shdr; in pru_rproc_find_interrupt_map()
708 const void *shdr; in pru_rproc_parse_fw() local
722 if (IS_ERR(shdr)) in pru_rproc_parse_fw()
723 return PTR_ERR(shdr); in pru_rproc_parse_fw()
[all …]
/linux/arch/arm64/kvm/hyp/nvhe/
A Dgen-hyprel.c205 #define for_each_rela(shdr, var) \ argument
207 var < elf_ptr(Elf64_Rela, elf64toh(shdr->sh_offset) + elf64toh(shdr->sh_size)); var++)
216 static inline const char *section_name(Elf64_Shdr *shdr) in section_name() argument
218 return elf.sh_string + elf32toh(shdr->sh_name); in section_name()
222 static inline const char *section_begin(Elf64_Shdr *shdr) in section_begin() argument
224 return elf_ptr(char, elf64toh(shdr->sh_offset)); in section_begin()
428 Elf64_Shdr *shdr; in emit_all_relocs() local
430 for_each_section(shdr) { in emit_all_relocs()
431 switch (elf32toh(shdr->sh_type)) { in emit_all_relocs()
434 section_name(shdr)); in emit_all_relocs()
[all …]
/linux/arch/powerpc/boot/
A Dhack-coff.c35 struct external_scnhdr shdr; in main() local
57 if (read(fd, &shdr, sizeof(shdr)) != sizeof(shdr)) in main()
59 if (strcmp(shdr.s_name, ".text") == 0) { in main()
62 } else if (strcmp(shdr.s_name, ".data") == 0) { in main()
64 } else if (strcmp(shdr.s_name, ".bss") == 0) { in main()
/linux/net/core/
A Dselftests.c60 struct netsfhdr *shdr; in net_test_get_skb() local
124 iplen = sizeof(*ihdr) + sizeof(*shdr) + attr->size; in net_test_get_skb()
141 shdr = skb_put(skb, sizeof(*shdr)); in net_test_get_skb()
142 shdr->version = 0; in net_test_get_skb()
143 shdr->magic = cpu_to_be64(NET_TEST_PKT_MAGIC); in net_test_get_skb()
145 shdr->id = net_test_next_id++; in net_test_get_skb()
178 struct netsfhdr *shdr; in net_test_loopback_validate() local
216 shdr = (struct netsfhdr *)((u8 *)thdr + sizeof(*thdr)); in net_test_loopback_validate()
225 shdr = (struct netsfhdr *)((u8 *)uhdr + sizeof(*uhdr)); in net_test_loopback_validate()
228 if (shdr->magic != cpu_to_be64(NET_TEST_PKT_MAGIC)) in net_test_loopback_validate()
[all …]
/linux/arch/riscv/include/asm/
A Dmodule.h15 Elf_Shdr *shdr; member
38 struct got_entry *got = (struct got_entry *)(sec->shdr->sh_addr); in get_got_entry()
91 struct got_entry *got_plt = (struct got_entry *)sec->shdr->sh_addr; in get_got_plt_idx()
104 struct plt_entry *plt = (struct plt_entry *)sec_plt->shdr->sh_addr; in get_plt_entry()
/linux/scripts/
A Dsorttable.h200 Elf_Shdr *s, *shdr = (Elf_Shdr *)((char *)ehdr + _r(&ehdr->e_shoff)); in do_sort() local
228 shstrndx = r(&shdr[0].sh_link); in do_sort()
229 secstrings = (const char *)ehdr + _r(&shdr[shstrndx].sh_offset); in do_sort()
233 shnum = _r(&shdr[0].sh_size); in do_sort()
235 for (i = 0, s = shdr; s < shdr + shnum; i++, s++) { in do_sort()
349 sort_needed_sec = &shdr[get_secindex(r2(&sym->st_shndx), in do_sort()
/linux/drivers/bluetooth/
A Dbtmtkuart.c432 struct mtk_stp_hdr *shdr; in mtk_stp_split() local
448 shdr = (struct mtk_stp_hdr *)&bdev->stp_pad[2]; in mtk_stp_split()
449 bdev->stp_dlen = be16_to_cpu(shdr->dlen) & 0x0fff; in mtk_stp_split()
452 if (shdr->prefix != 0x80 || bdev->stp_dlen > 2048) { in mtk_stp_split()
454 shdr->prefix, bdev->stp_dlen); in mtk_stp_split()
867 struct mtk_stp_hdr *shdr; in btmtkuart_send_frame() local
874 if (unlikely(skb_headroom(skb) < sizeof(*shdr)) || in btmtkuart_send_frame()
876 err = pskb_expand_head(skb, sizeof(*shdr), MTK_STP_TLR_SIZE, in btmtkuart_send_frame()
884 shdr = skb_push(skb, sizeof(*shdr)); in btmtkuart_send_frame()
885 shdr->prefix = 0x80; in btmtkuart_send_frame()
[all …]
/linux/drivers/cpufreq/
A Dpmac64-cpufreq.c384 const struct smu_sdbp_header *shdr; in g5_neo2_cpufreq_init() local
387 shdr = smu_get_sdb_partition(SMU_SDB_FVT_ID, NULL); in g5_neo2_cpufreq_init()
388 if (!shdr) in g5_neo2_cpufreq_init()
390 g5_fvt_table = (struct smu_sdbp_fvt *)&shdr[1]; in g5_neo2_cpufreq_init()
391 ssize = (shdr->len * sizeof(u32)) - sizeof(*shdr); in g5_neo2_cpufreq_init()

Completed in 66 milliseconds

12