/linux/tools/perf/util/ |
H A D | genelf.c | 159 Elf_Scn *scn; in jit_add_eh_frame_info() local 166 scn = elf_newscn(e); in jit_add_eh_frame_info() 167 if (!scn) { in jit_add_eh_frame_info() 172 d = elf_newdata(scn); in jit_add_eh_frame_info() 185 shdr = elf_getshdr(scn); in jit_add_eh_frame_info() 200 scn = elf_newscn(e); in jit_add_eh_frame_info() 201 if (!scn) { in jit_add_eh_frame_info() 206 d = elf_newdata(scn); in jit_add_eh_frame_info() 219 shdr = elf_getshdr(scn); in jit_add_eh_frame_info() 249 Elf_Scn *scn; in jit_write_elf() local [all...] |
H A D | genelf_debug.c | 498 Elf_Scn *scn; in jit_add_debug_info() local 513 scn = elf_newscn(e); in jit_add_debug_info() 514 if (!scn) { in jit_add_debug_info() 519 d = elf_newdata(scn); in jit_add_debug_info() 532 shdr = elf_getshdr(scn); in jit_add_debug_info() 547 scn = elf_newscn(e); in jit_add_debug_info() 548 if (!scn) { in jit_add_debug_info() 553 d = elf_newdata(scn); in jit_add_debug_info() 566 shdr = elf_getshdr(scn); in jit_add_debug_info() 581 scn = elf_newscn(e); in jit_add_debug_info() [all …]
|
H A D | debuginfo.c | 147 Elf_Scn *scn; in debuginfo__get_text_offset() local 165 scn = elf_getscn(elf, shndx); in debuginfo__get_text_offset() 166 if (!scn) in debuginfo__get_text_offset() 168 shdr = gelf_getshdr(scn, &mem); in debuginfo__get_text_offset()
|
H A D | symbol-elf.c | 539 static void get_rela_dyn_info(Elf *elf, GElf_Ehdr *ehdr, struct rela_dyn_info *di, Elf_Scn *scn) in get_rela_dyn_info() argument 544 di->plt_got_data = elf_getdata(scn, NULL); in get_rela_dyn_info() 546 scn = elf_section_by_name(elf, ehdr, &rela_dyn_shdr, ".rela.dyn", NULL); in get_rela_dyn_info() 547 if (!scn || !rela_dyn_shdr.sh_link || !rela_dyn_shdr.sh_entsize) in get_rela_dyn_info() 551 di->rela_dyn_data = elf_getdata(scn, NULL); in get_rela_dyn_info() 553 scn = elf_getscn(elf, rela_dyn_shdr.sh_link); in get_rela_dyn_info() 554 if (!scn || !gelf_getshdr(scn, &shdr) || !shdr.sh_link) in get_rela_dyn_info() 557 di->dynsym_data = elf_getdata(scn, NULL); in get_rela_dyn_info() 640 Elf_Scn *scn; in dso__synthesize_plt_got_symbols() local 2862 Elf_Scn *scn = NULL; construct_sdt_notes_list() local [all...] |
/linux/tools/objtool/ |
H A D | orc_dump.c | 22 Elf_Scn *scn; in orc_dump() local 63 scn = elf_getscn(elf, i); in orc_dump() 64 if (!scn) { in orc_dump() 69 if (!gelf_getshdr(scn, &sh)) { in orc_dump() 80 data = elf_getdata(scn, NULL); in orc_dump() 123 scn = elf_getscn(elf, sym.st_shndx); in orc_dump() 124 if (!scn) { in orc_dump() 129 if (!gelf_getshdr(scn, &sh)) { in orc_dump()
|
/linux/tools/lib/bpf/ |
H A D | elf.c | 63 static Elf_Scn *elf_find_next_scn_by_type(Elf *elf, int sh_type, Elf_Scn *scn) in elf_find_next_scn_by_type() argument 65 while ((scn = elf_nextscn(elf, scn)) != NULL) { in elf_find_next_scn_by_type() 68 if (!gelf_getshdr(scn, &sh)) in elf_find_next_scn_by_type() 71 return scn; in elf_find_next_scn_by_type() 101 Elf_Scn *scn = NULL; in elf_sym_iter_new() local 112 scn = elf_find_next_scn_by_type(elf, sh_type, NULL); in elf_sym_iter_new() 113 if (!scn) { in elf_sym_iter_new() 119 if (!gelf_getshdr(scn, &sh)) in elf_sym_iter_new() 123 iter->syms = elf_getdata(scn, 0); in elf_sym_iter_new() 137 scn = elf_find_next_scn_by_type(elf, SHT_GNU_versym, NULL); in elf_sym_iter_new() [all …]
|
H A D | linker.c | 42 Elf_Scn *scn; member 111 Elf_Scn *scn; member 342 sec->scn = elf_newscn(linker->elf); in init_output_elf() 343 if (!sec->scn) { in init_output_elf() 348 sec->shdr = elf64_getshdr(sec->scn); in init_output_elf() 352 sec->data = elf_newdata(sec->scn); in init_output_elf() 362 sec->sec_idx = elf_ndxscn(sec->scn); in init_output_elf() 381 sec->scn = elf_newscn(linker->elf); in init_output_elf() 382 if (!sec->scn) { in init_output_elf() 387 sec->shdr = elf64_getshdr(sec->scn); in init_output_elf() [all …]
|
H A D | libbpf.c | 745 static Elf64_Shdr *elf_sec_hdr(const struct bpf_object *obj, Elf_Scn *scn); 746 static const char *elf_sec_name(const struct bpf_object *obj, Elf_Scn *scn); 747 static Elf_Data *elf_sec_data(const struct bpf_object *obj, Elf_Scn *scn); 1679 Elf_Scn *scn; in find_elf_sec_sz() local 1684 scn = elf_sec_by_name(obj, name); in find_elf_sec_sz() 1685 data = elf_sec_data(obj, scn); in find_elf_sec_sz() 2983 Elf_Scn *scn; in bpf_object__init_user_btf_maps() local 2988 scn = elf_sec_by_idx(obj, obj->efile.btf_maps_shndx); in bpf_object__init_user_btf_maps() 2989 data = elf_sec_data(obj, scn); in bpf_object__init_user_btf_maps() 2990 if (!scn || !data) { in bpf_object__init_user_btf_maps() [all …]
|
H A D | btf.c | 1102 Elf_Scn *scn = NULL; in btf_find_elf_sections() local 1124 while ((scn = elf_nextscn(elf, scn)) != NULL) { in btf_find_elf_sections() 1130 if (gelf_getshdr(scn, &sh) != &sh) { in btf_find_elf_sections() 1151 data = elf_getdata(scn, 0); in btf_find_elf_sections()
|
/linux/drivers/soc/fsl/dpio/ |
H A D | qbman-portal.h | 374 static inline u8 qbman_result_SCN_state(const struct dpaa2_dq *scn) in qbman_result_SCN_state() argument 376 return scn->scn.state; in qbman_result_SCN_state() 384 static inline u32 qbman_result_SCN_rid(const struct dpaa2_dq *scn) in qbman_result_SCN_rid() argument 386 return le32_to_cpu(scn->scn.rid_tok) & SCN_RID_MASK; in qbman_result_SCN_rid() 392 static inline u64 qbman_result_SCN_ctx(const struct dpaa2_dq *scn) in qbman_result_SCN_ctx() argument 394 return le64_to_cpu(scn->scn.ctx); in qbman_result_SCN_ctx()
|
/linux/include/soc/fsl/ |
H A D | dpaa2-global.h | 34 struct scn { struct 41 } scn; member 189 return !!(cscn->scn.state & DPAA2_CSCN_STATE_CG); in dpaa2_cscn_state_congested()
|
/linux/drivers/scsi/ |
H A D | pmcraid.h | 679 struct pmcraid_state_msg scn; /* controller state change msg */ member
|
H A D | pmcraid.c | 740 if (pinstance->scn.ioa_state != PMC_DEVICE_EVENT_RESET_START && in pmcraid_timeout_handler() 741 pinstance->scn.ioa_state != PMC_DEVICE_EVENT_SHUTDOWN_START) in pmcraid_timeout_handler() 1494 pinstance->scn.ioa_state = evt; in pmcraid_notify_ioastate() 1496 &pinstance->scn.msg, in pmcraid_notify_ioastate()
|