/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | dsl_scan.c | 538 scn->scn_issued_before_pass = scn->scn_phys.scn_examined; in dsl_scan_init() 572 bcopy(&scn->scn_phys, &scn->scn_phys_cached, sizeof (scn->scn_phys)); in dsl_scan_init() 692 bcopy(&scn->scn_phys, &scn->scn_phys_cached, in dsl_scan_sync_state() 731 bzero(&scn->scn_phys, sizeof (scn->scn_phys)); in dsl_scan_setup_sync() 788 bcopy(&scn->scn_phys, &scn->scn_phys_cached, sizeof (scn->scn_phys)); in dsl_scan_setup_sync() 1690 (void) arc_read(scn->scn_zio_root, scn->scn_dp->dp_spa, in dsl_scan_prefetch_thread() 1973 scn->scn_prefetch_bookmark = scn->scn_phys.scn_bookmark; in dsl_scan_visit_rootbp() 2482 scan_funcs[scn->scn_phys.scn_func](scn->scn_dp, &bp, &zb); in dsl_scan_ddt_entry() 2849 if (scn->scn_checkpointing || scn->scn_clearing) { in scan_io_queue_fetch_ext() 3437 if (!scn->scn_async_stalled && !dsl_scan_active(scn)) in dsl_scan_sync() [all …]
|
/illumos-gate/usr/src/cmd/sgs/libelf/common/ |
H A D | flag.c | 40 Elf_Scn * scn; in elf_flagdata() local 46 scn = d->db_scn; in elf_flagdata() 47 elf = scn->s_elf; in elf_flagdata() 49 READLOCKS(elf, scn) in elf_flagdata() 57 READUNLOCKS(elf, scn) in elf_flagdata() 137 if (scn == 0) in elf_flagscn() 140 elf = scn->s_elf; in elf_flagscn() 142 READLOCKS(elf, scn) in elf_flagscn() 148 READLOCKS(elf, scn) in elf_flagscn() 163 if (scn == 0) in elf_flagshdr() [all …]
|
H A D | rawdata.c | 44 if (scn == 0) in elf_rawdata() 46 elf = scn->s_elf; in elf_rawdata() 47 READLOCKS(elf, scn) in elf_rawdata() 49 UPGRADELOCKS(elf, scn) in elf_rawdata() 56 d = scn->s_hdnode; in elf_rawdata() 61 READUNLOCKS(elf, scn) in elf_rawdata() 67 READUNLOCKS(elf, scn) in elf_rawdata() 79 READUNLOCKS(elf, scn) in elf_rawdata() 84 READUNLOCKS(elf, scn) in elf_rawdata() 92 READUNLOCKS(elf, scn) in elf_rawdata() [all …]
|
H A D | getdata.c | 120 elf = scn->s_elf; in _elf_locked_getdata() 123 UPGRADELOCKS(elf, scn) in _elf_locked_getdata() 134 d = scn->s_hdnode; in _elf_locked_getdata() 138 if (scn->s_err != 0) { in _elf_locked_getdata() 148 if (d->db_scn != scn) { in _elf_locked_getdata() 156 elf = scn->s_elf; in _elf_locked_getdata() 219 UPGRADELOCKS(elf, scn) in _elf_locked_getdata() 306 if (scn == 0) in elf_getdata() 309 elf = scn->s_elf; in elf_getdata() 310 READLOCKS(elf, scn); in elf_getdata() [all …]
|
H A D | getshdr.c | 36 getshdr(Elf_Scn * scn, int class) in getshdr() argument 40 if (scn == 0) in getshdr() 42 elf = scn->s_elf; in getshdr() 43 READLOCKS(elf, scn) in getshdr() 45 READUNLOCKS(elf, scn) in getshdr() 50 rc = scn->s_shdr; in getshdr() 51 READUNLOCKS(elf, scn) in getshdr() 56 elf32_getshdr(Elf_Scn * scn) in elf32_getshdr() argument 58 return ((Elf32_Shdr*) getshdr(scn, ELFCLASS32)); in elf32_getshdr() 62 elf64_getshdr(Elf_Scn * scn) in elf64_getshdr() argument [all …]
|
H A D | nextscn.c | 35 elf_nextscn(Elf * elf, Elf_Scn * scn) in elf_nextscn() argument 41 if (scn != 0) { in elf_nextscn() 42 READLOCKS(elf, scn) in elf_nextscn() 43 ret_scn = scn->s_next; in elf_nextscn() 44 READUNLOCKS(elf, scn) in elf_nextscn() 51 if ((scn = elf->ed_hdscn) != 0) in elf_nextscn() 52 ret_scn = scn->s_next; in elf_nextscn()
|
H A D | ndxscn.c | 35 elf_ndxscn(Elf_Scn * scn) in elf_ndxscn() argument 40 if (scn == 0) in elf_ndxscn() 42 elf = scn->s_elf; in elf_ndxscn() 43 READLOCKS(elf, scn) in elf_ndxscn() 44 rc = scn->s_index; in elf_ndxscn() 45 READUNLOCKS(elf, scn) in elf_ndxscn()
|
H A D | gelf.c | 333 if (scn == NULL) in gelf_getshdr() 342 READLOCKS(scn->s_elf, scn); in gelf_getshdr() 353 READUNLOCKS(scn->s_elf, scn); in gelf_getshdr() 362 READLOCKS(scn->s_elf, scn); in gelf_getshdr() 364 READUNLOCKS(scn->s_elf, scn); in gelf_getshdr() 377 if (scn == NULL) in gelf_update_shdr() 386 ELFWLOCK(scn->s_elf); in gelf_update_shdr() 404 ELFUNLOCK(scn->s_elf); in gelf_update_shdr() 412 ELFWLOCK(scn->s_elf); in gelf_update_shdr() 1096 Elf_Scn *scn = NULL; in _gelf_getdynval() local [all …]
|
H A D | checksum.c | 106 Elf_Scn * scn; in elf_checksum() local 133 if ((scn = elf_getscn(elf, shnum)) == 0) in elf_checksum() 135 if ((shdr = getshdr(scn)) == 0) in elf_checksum() 158 while ((data = (*getdata)(scn, data)) != 0) in elf_checksum()
|
H A D | getshstrndx.c | 48 Elf_Scn *scn; in elf_getshdrstrndx() local 57 if ((scn = elf_getscn(elf, 0)) == 0) in elf_getshdrstrndx() 59 if (gelf_getshdr(scn, &shdr0) == 0) in elf_getshdrstrndx()
|
H A D | getshnum.c | 54 Elf_Scn *scn; in elf_getshdrnum() local 67 if ((scn = elf_getscn(elf, 0)) == 0) in elf_getshdrnum() 69 if (gelf_getshdr(scn, &shdr0) == 0) in elf_getshdrnum()
|
/illumos-gate/usr/src/cmd/dis/ |
H A D | dis_target.c | 254 Elf_Scn *scn; in construct_symtab() local 267 for (scn = elf_nextscn(tgt->dt_elf, NULL); scn != NULL; in construct_symtab() 268 scn = elf_nextscn(tgt->dt_elf, scn)) { in construct_symtab() 772 Elf_Scn *scn; in dis_tgt_section_iter() local 775 for (scn = elf_nextscn(tgt->dt_elf, NULL), idx = 1; scn != NULL; in dis_tgt_section_iter() 776 scn = elf_nextscn(tgt->dt_elf, scn), idx++) { in dis_tgt_section_iter() 826 return (scn->ds_data->d_buf); in dis_section_data() 835 return (scn->ds_data->d_size); in dis_section_size() 853 return (scn->ds_name); in dis_section_name() 876 free(scn); in dis_section_free() [all …]
|
H A D | dis_main.c | 400 dis_text_section(dis_tgt_t *tgt, dis_scn_t *scn, void *data) in dis_text_section() argument 405 if (!dis_section_istext(scn)) in dis_text_section() 409 (void) printf("\nsection %s\n", dis_section_name(scn)); in dis_text_section() 411 dis_data(tgt, dhp, dis_section_addr(scn), dis_section_data(scn), in dis_text_section() 412 dis_section_size(scn)); in dis_text_section() 430 dis_named_section(dis_scn_t *scn, int type, void *data) in dis_named_section() argument 435 (void) printf("\nsection %s\n", dis_section_name(scn)); in dis_named_section() 439 dump_data(0, dis_section_data(scn), dis_section_size(scn)); in dis_named_section() 442 dump_data(dis_section_addr(scn), dis_section_data(scn), in dis_named_section() 443 dis_section_size(scn)); in dis_named_section() [all …]
|
/illumos-gate/usr/src/cmd/sgs/libelf/demo/ |
H A D | acom.c | 48 Elf_Scn *scn = NULL; in update_comment() local 59 while ((scn = elf_nextscn(elf, scn)) != NULL) { in update_comment() 65 if (gelf_getshdr(scn, &shdr) == NULL) { in update_comment() 75 if (scn == NULL) { in update_comment() 83 if ((scn = elf_getscn(elf, shstrndx)) == NULL) { in update_comment() 88 if ((data = elf_getdata(scn, NULL)) == NULL) { in update_comment() 94 if ((data = elf_newdata(scn)) == NULL) { in update_comment() 108 if ((scn = elf_newscn(elf)) == NULL) { in update_comment() 113 if (gelf_getshdr(scn, &shdr) == NULL) { in update_comment() 129 (void) gelf_update_shdr(scn, &shdr); in update_comment() [all …]
|
H A D | dcom.c | 87 Elf_Scn *scn = NULL; in delete_comment() local 126 while ((scn = elf_nextscn(elf, scn)) != NULL) { in delete_comment() 134 if (gelf_getshdr(scn, &shdr) == NULL) { in delete_comment() 194 scn = NULL; in delete_comment() 196 while ((scn = elf_nextscn(elf, scn)) != NULL) { in delete_comment() 210 if (gelf_getshdr(scn, &shdr) == NULL) { in delete_comment() 250 if ((data = elf_getdata(scn, 0)) == NULL) { in delete_comment()
|
H A D | pcom.c | 49 Elf_Scn *scn = NULL; in print_comment() local 63 while ((scn = elf_nextscn(elf, scn)) != NULL) { in print_comment() 69 if (gelf_getshdr(scn, &shdr) == NULL) { in print_comment() 83 if ((data = elf_getdata(scn, NULL)) == NULL) { in print_comment()
|
/illumos-gate/usr/src/cmd/mdb/tools/common/ |
H A D | findscn.c | 36 Elf_Scn *scn = NULL; in findelfsecidx() local 43 while ((scn = elf_nextscn(elf, scn)) != NULL) { in findelfsecidx() 46 if (gelf_getshdr(scn, &shdr) == NULL || in findelfsecidx() 52 return (elf_ndxscn(scn)); in findelfsecidx()
|
/illumos-gate/usr/src/cmd/sgs/elfedit/common/ |
H A D | elfedit_machelf.c | 128 Elf_Scn *scn; in elfedit64_init_obj_state() local 179 for (ndx = 1, scn = NULL; in elfedit64_init_obj_state() 180 (scn = elf_nextscn(tstate.os_elf, scn)) != NULL; ndx++) { in elfedit64_init_obj_state() 183 LIBELF(shdr = elf_getshdr(scn), MSG_ORIG(MSG_ELF_GETSHDR)); in elfedit64_init_obj_state() 251 LIBELF(scn = elf_getscn(tstate.os_elf, 0), in elfedit64_init_obj_state() 253 _cache->sec_scn = scn; in elfedit64_init_obj_state() 267 for (ndx = 1, scn = NULL; in elfedit64_init_obj_state() 268 (scn = elf_nextscn(tstate.os_elf, scn)) != NULL; ndx++, _cache++) { in elfedit64_init_obj_state() 270 _cache->sec_scn = scn; in elfedit64_init_obj_state() 271 LIBELF(_cache->sec_shdr = elf_getshdr(scn), in elfedit64_init_obj_state() [all …]
|
/illumos-gate/usr/src/cmd/abi/appcert/static_prof/ |
H A D | static_prof.c | 631 scn = 0; in find_dynamic_sect() 633 while ((scn = elf_nextscn(c->obj->elf, scn)) != 0) { in find_dynamic_sect() 690 Elf_Scn *scn, *scn2; in find_symtabs() local 701 scn = 0; in find_symtabs() 710 while ((scn = elf_nextscn(c->obj->elf, scn)) != 0) { in find_symtabs() 867 if (scn != NULL) { in is_text_section() 1185 Elf_Scn *scn; in print_symtab() local 1214 if (scn == NULL) in print_symtab() 1267 Elf_Scn *scn, *scnfd; in get_symtab() local 1293 scn = 0; in get_symtab() [all …]
|
/illumos-gate/usr/src/cmd/lockstat/ |
H A D | sym.c | 140 Elf_Scn *scn = NULL; in symtab_init() local 155 for (cnt = 1; (scn = elf_nextscn(elf, scn)) != NULL; cnt++) { in symtab_init() 156 Shdr *shdr = elf_getshdr(scn); in symtab_init() 158 symtab = (Sym *)elf_getdata(scn, NULL)->d_buf; in symtab_init() 164 for (cnt = 1; (scn = elf_nextscn(elf, scn)) != NULL; cnt++) { in symtab_init() 166 strtab = (char *)elf_getdata(scn, NULL)->d_buf; in symtab_init()
|
/illumos-gate/usr/src/cmd/sgs/librtld/common/ |
H A D | dldump.c | 155 Elf_Scn *scn; in rt_dldump() local 317 if ((scn = elf_getscn(ielf, shndx)) == NULL) { in rt_dldump() 322 if ((data = elf_getdata(scn, NULL)) == NULL) { in rt_dldump() 360 for (scn = 0; scn = elf_nextscn(ielf, scn); _icache++) { in rt_dldump() 374 _icache->c_scn = scn; in rt_dldump() 592 if ((scn = elf_newscn(oelf)) == NULL) { in rt_dldump() 597 if ((shdr = elf_getshdr(scn)) == NULL) { in rt_dldump() 617 if ((data = elf_newdata(scn)) == NULL) { in rt_dldump() 640 if (elf_ndxscn(scn) >= SHN_LORESERVE) { in rt_dldump() 657 shdr0->sh_link = elf_ndxscn(scn); in rt_dldump() [all …]
|
/illumos-gate/usr/src/cmd/boot/symdef/ |
H A D | symdef.c | 61 Elf_Scn *scn = NULL; in main() local 91 while ((scn = elf_nextscn(elfp, scn)) != NULL) { in main() 92 if ((gelf_getshdr(scn, &shdr) == NULL) || in main() 95 ((symdata = elf_getdata(scn, NULL)) == NULL)) in main()
|
/illumos-gate/usr/src/test/os-tests/tests/cores/secmapper/ |
H A D | secmapper.c | 219 secmap_data_cmp(secmap_t *sm, const char *sname, Elf_Scn *scn, GElf_Shdr *shdr) in secmap_data_cmp() argument 251 if ((src_data = elf_getdata(scn, NULL)) == NULL) { in secmap_data_cmp() 313 Elf_Scn *scn; in main() local 356 for (scn = elf_nextscn(elf, NULL); scn != NULL; in main() 357 scn = elf_nextscn(elf, scn)) { in main() 363 index = elf_ndxscn(scn); in main() 364 if (gelf_getshdr(scn, &shdr) == NULL) { in main() 408 secmap_data_cmp(secmap, sname, scn, &shdr); in main()
|
/illumos-gate/usr/src/cmd/sgs/link_audit/common/ |
H A D | who.c | 155 Elf_Scn *scn; in load_syms() local 172 scn = NULL; in load_syms() 173 while ((scn = elf_nextscn(elf, scn)) != NULL) { in load_syms() 177 shdr = elf_getshdr(scn); in load_syms() 180 data = elf_getdata(scn, 0); in load_syms() 184 scn = elf_getscn(elf, shdr->sh_link); in load_syms() 185 data = elf_getdata(scn, 0); in load_syms()
|
/illumos-gate/usr/src/cmd/sgs/libld/common/ |
H A D | files.c | 117 Elf_Scn *scn; in ifl_setup() local 120 if ((scn = elf_getscn(elf, 0)) == NULL) { in ifl_setup() 125 if ((shdr0 = elf_getshdr(scn)) == NULL) { in ifl_setup() 1807 dp = elf_getdata(scn, NULL); in process_rel_dynamic() 2134 dp = elf_getdata(scn, NULL); in process_dynamic_isgnu() 2575 Elf_Scn *scn; in process_elf() local 2606 if ((shdr = elf_getshdr(scn)) == NULL) { in process_elf() 2655 scn = NULL; in process_elf() 2656 while (scn = elf_nextscn(elf, scn)) { in process_elf() 2665 if ((shdr = elf_getshdr(scn)) == NULL) { in process_elf() [all …]
|