Home
last modified time | relevance | path

Searched refs:scn (Results 1 – 25 of 75) sorted by relevance

123

/titanic_41/usr/src/uts/common/fs/zfs/
H A Ddsl_scan.c75 #define DSL_SCAN_IS_SCRUB_RESILVER(scn) \ argument
76 ((scn)->scn_phys.scn_func == POOL_SCAN_SCRUB || \
77 (scn)->scn_phys.scn_func == POOL_SCAN_RESILVER)
92 dsl_scan_t *scn; in dsl_scan_init() local
96 scn = dp->dp_scan = kmem_zalloc(sizeof (dsl_scan_t), KM_SLEEP); in dsl_scan_init()
97 scn->scn_dp = dp; in dsl_scan_init()
104 ASSERT(!scn->scn_async_destroying); in dsl_scan_init()
105 scn->scn_async_destroying = spa_feature_is_active(dp->dp_spa, in dsl_scan_init()
115 scn->scn_restart_txg = txg; in dsl_scan_init()
118 scn->scn_restart_txg); in dsl_scan_init()
[all …]
/titanic_41/usr/src/cmd/sgs/libelf/common/
H A Dflag.c42 Elf_Scn * scn; in elf_flagdata() local
48 scn = d->db_scn; in elf_flagdata()
49 elf = scn->s_elf; in elf_flagdata()
51 READLOCKS(elf, scn) in elf_flagdata()
59 READUNLOCKS(elf, scn) in elf_flagdata()
134 elf_flagscn(Elf_Scn * scn, Elf_Cmd cmd, unsigned flags) in elf_flagscn() argument
139 if (scn == 0) in elf_flagscn()
142 elf = scn->s_elf; in elf_flagscn()
144 READLOCKS(elf, scn) in elf_flagscn()
145 rc = scn->s_uflags |= flags; in elf_flagscn()
[all …]
H A Drawdata.c39 elf_rawdata(Elf_Scn * scn, Elf_Data * data) in elf_rawdata() argument
46 if (scn == 0) in elf_rawdata()
48 elf = scn->s_elf; in elf_rawdata()
49 READLOCKS(elf, scn) in elf_rawdata()
50 if ((scn->s_myflags & SF_READY) == 0) { in elf_rawdata()
51 UPGRADELOCKS(elf, scn) in elf_rawdata()
52 if ((scn->s_myflags & SF_READY) == 0) in elf_rawdata()
53 (void) _elf_cookscn(scn); in elf_rawdata()
54 DOWNGRADELOCKS(elf, scn) in elf_rawdata()
58 d = scn->s_hdnode; in elf_rawdata()
[all …]
H A Dgetdata.c113 _elf_locked_getdata(Elf_Scn * scn, Elf_Data * data) in _elf_locked_getdata() argument
120 assert(!elf_threaded || RW_LOCK_HELD(&(scn->s_elf->ed_rwlock))); in _elf_locked_getdata()
121 assert(!elf_threaded || MUTEX_HELD(&(scn->s_mutex))); in _elf_locked_getdata()
122 elf = scn->s_elf; in _elf_locked_getdata()
124 if ((scn->s_myflags & SF_READY) == 0) { in _elf_locked_getdata()
125 UPGRADELOCKS(elf, scn) in _elf_locked_getdata()
130 if ((scn->s_myflags & SF_READY) == 0) in _elf_locked_getdata()
131 (void) _elf_cookscn(scn); in _elf_locked_getdata()
132 DOWNGRADELOCKS(elf, scn) in _elf_locked_getdata()
136 d = scn->s_hdnode; in _elf_locked_getdata()
[all …]
H A Dgetshdr.c38 getshdr(Elf_Scn * scn, int class) in getshdr() argument
42 if (scn == 0) in getshdr()
44 elf = scn->s_elf; in getshdr()
45 READLOCKS(elf, scn) in getshdr()
47 READUNLOCKS(elf, scn) in getshdr()
52 rc = scn->s_shdr; in getshdr()
53 READUNLOCKS(elf, scn) in getshdr()
58 elf32_getshdr(Elf_Scn * scn) in elf32_getshdr() argument
60 return ((Elf32_Shdr*) getshdr(scn, ELFCLASS32)); in elf32_getshdr()
64 elf64_getshdr(Elf_Scn * scn) in elf64_getshdr() argument
[all …]
H A Dnextscn.c37 elf_nextscn(Elf * elf, Elf_Scn * scn) in elf_nextscn() argument
43 if (scn != 0) { in elf_nextscn()
44 READLOCKS(elf, scn) in elf_nextscn()
45 ret_scn = scn->s_next; in elf_nextscn()
46 READUNLOCKS(elf, scn) in elf_nextscn()
53 if ((scn = elf->ed_hdscn) != 0) in elf_nextscn()
54 ret_scn = scn->s_next; in elf_nextscn()
H A Dndxscn.c37 elf_ndxscn(Elf_Scn * scn) in elf_ndxscn() argument
42 if (scn == 0) in elf_ndxscn()
44 elf = scn->s_elf; in elf_ndxscn()
45 READLOCKS(elf, scn) in elf_ndxscn()
46 rc = scn->s_index; in elf_ndxscn()
47 READUNLOCKS(elf, scn) in elf_ndxscn()
H A Dgelf.c331 gelf_getshdr(Elf_Scn *scn, GElf_Shdr *dst) in gelf_getshdr() argument
333 if (scn == NULL) in gelf_getshdr()
336 if (scn->s_elf->ed_class == ELFCLASS32) { in gelf_getshdr()
337 Elf32_Shdr *s = elf32_getshdr(scn); in gelf_getshdr()
342 READLOCKS(scn->s_elf, scn); in gelf_getshdr()
353 READUNLOCKS(scn->s_elf, scn); in gelf_getshdr()
356 } else if (scn->s_elf->ed_class == ELFCLASS64) { in gelf_getshdr()
357 Elf64_Shdr *s = elf64_getshdr(scn); in gelf_getshdr()
362 READLOCKS(scn->s_elf, scn); in gelf_getshdr()
364 READUNLOCKS(scn->s_elf, scn); in gelf_getshdr()
[all …]
H A Dchecksum.c106 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 Dgetshstrndx.c48 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()
/titanic_41/usr/src/cmd/dis/
H A Ddis_target.c133 tgt_scn_init(dis_tgt_t *tgt, dis_scn_t *scn, void *data) in tgt_scn_init() argument
139 tgt->dt_shnmap[*index].dm_name = scn->ds_name; in tgt_scn_init()
140 tgt->dt_shnmap[*index].dm_start = scn->ds_shdr.sh_addr; in tgt_scn_init()
141 tgt->dt_shnmap[*index].dm_length = scn->ds_shdr.sh_size; in tgt_scn_init()
147 if (scn->ds_shdr.sh_type == SHT_DYNSYM && tgt->dt_symidx == 0) in tgt_scn_init()
149 else if (scn->ds_shdr.sh_type == SHT_SYMTAB) in tgt_scn_init()
239 Elf_Scn *scn; in construct_symtab() local
252 for (scn = elf_nextscn(tgt->dt_elf, NULL); scn != NULL; in construct_symtab()
253 scn = elf_nextscn(tgt->dt_elf, scn)) { in construct_symtab()
254 if (gelf_getshdr(scn, &shdr) == NULL) in construct_symtab()
[all …]
H A Ddis_main.c398 dis_text_section(dis_tgt_t *tgt, dis_scn_t *scn, void *data) in dis_text_section() argument
403 if (!dis_section_istext(scn)) in dis_text_section()
407 (void) printf("\nsection %s\n", dis_section_name(scn)); in dis_text_section()
409 dis_data(tgt, dhp, dis_section_addr(scn), dis_section_data(scn), in dis_text_section()
410 dis_section_size(scn)); in dis_text_section()
428 dis_named_section(dis_scn_t *scn, int type, void *data) in dis_named_section() argument
433 (void) printf("\nsection %s\n", dis_section_name(scn)); in dis_named_section()
437 dump_data(0, dis_section_data(scn), dis_section_size(scn)); in dis_named_section()
440 dump_data(dis_section_addr(scn), dis_section_data(scn), in dis_named_section()
441 dis_section_size(scn)); in dis_named_section()
[all …]
/titanic_41/usr/src/cmd/sgs/libelf/demo/
H A Dacom.c48 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 Ddcom.c87 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 Dpcom.c49 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()
/titanic_41/usr/src/cmd/mdb/tools/common/
H A Dfindscn.c38 Elf_Scn *scn = NULL; in findelfsecidx() local
45 while ((scn = elf_nextscn(elf, scn)) != NULL) { in findelfsecidx()
48 if (gelf_getshdr(scn, &shdr) == NULL || in findelfsecidx()
54 return (elf_ndxscn(scn)); in findelfsecidx()
/titanic_41/usr/src/cmd/sgs/elfedit/common/
H A Delfedit_machelf.c127 Elf_Scn *scn; in elfedit64_init_obj_state() local
168 LIBELF((scn = elf_getscn(tstate.os_elf, tstate.os_shstrndx)), in elfedit64_init_obj_state()
170 LIBELF((data = elf_getdata(scn, NULL)), MSG_ORIG(MSG_ELF_GETDATA)) in elfedit64_init_obj_state()
178 for (ndx = 1, scn = NULL; scn = elf_nextscn(tstate.os_elf, scn); in elfedit64_init_obj_state()
182 LIBELF(shdr = elf_getshdr(scn), MSG_ORIG(MSG_ELF_GETSHDR)); in elfedit64_init_obj_state()
249 LIBELF(scn = elf_getscn(tstate.os_elf, 0), in elfedit64_init_obj_state()
251 _cache->sec_scn = scn; in elfedit64_init_obj_state()
252 LIBELF(_cache->sec_shdr = elf_getshdr(scn), MSG_ORIG(MSG_ELF_GETSHDR)); in elfedit64_init_obj_state()
265 for (ndx = 1, scn = NULL; scn = elf_nextscn(tstate.os_elf, scn); in elfedit64_init_obj_state()
268 _cache->sec_scn = scn; in elfedit64_init_obj_state()
[all …]
/titanic_41/usr/src/tools/ctf/cvt/
H A Dutil.c66 Elf_Scn *scn = NULL; in findelfsecidx() local
73 while ((scn = elf_nextscn(elf, scn)) != NULL) { in findelfsecidx()
76 if (gelf_getshdr(scn, &shdr) == NULL) { in findelfsecidx()
79 elf_ndxscn(scn)); in findelfsecidx()
86 elf_ndxscn(scn)); in findelfsecidx()
90 return (elf_ndxscn(scn)); in findelfsecidx()
/titanic_41/usr/src/cmd/abi/appcert/static_prof/
H A Dstatic_prof.c612 Elf_Scn *scn; /* temp section header pointer */ in find_dynamic_sect() local
631 scn = 0; in find_dynamic_sect()
633 while ((scn = elf_nextscn(c->obj->elf, scn)) != 0) { in find_dynamic_sect()
636 scurrent = elf64_getshdr(scn); in find_dynamic_sect()
638 scurrent = elf32_getshdr(scn); in find_dynamic_sect()
644 if ((ddata = elf_getdata(scn, ddata)) == 0 || in find_dynamic_sect()
654 scn = elf_getscn(c->obj->elf, index); in find_dynamic_sect()
657 scurrent = elf64_getshdr(scn); in find_dynamic_sect()
659 scurrent = elf32_getshdr(scn); in find_dynamic_sect()
662 c->obj->ddata = elf_getdata(scn, (c->obj->ddata)); in find_dynamic_sect()
[all …]
/titanic_41/usr/src/cmd/lockstat/
H A Dsym.c142 Elf_Scn *scn = NULL; in symtab_init() local
157 for (cnt = 1; (scn = elf_nextscn(elf, scn)) != NULL; cnt++) { in symtab_init()
158 Shdr *shdr = elf_getshdr(scn); in symtab_init()
160 symtab = (Sym *)elf_getdata(scn, NULL)->d_buf; in symtab_init()
166 for (cnt = 1; (scn = elf_nextscn(elf, scn)) != NULL; cnt++) { in symtab_init()
168 strtab = (char *)elf_getdata(scn, NULL)->d_buf; in symtab_init()
/titanic_41/usr/src/cmd/boot/symdef/
H A Dsymdef.c63 Elf_Scn *scn = NULL; in main() local
93 while ((scn = elf_nextscn(elfp, scn)) != NULL) { in main()
94 if ((gelf_getshdr(scn, &shdr) == NULL) || in main()
97 ((symdata = elf_getdata(scn, NULL)) == NULL)) in main()
/titanic_41/usr/src/cmd/sgs/librtld/common/
H A Ddldump.c155 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()
362 if ((_icache->c_shdr = shdr = elf_getshdr(scn)) == NULL) { in rt_dldump()
368 if ((_icache->c_data = elf_getdata(scn, NULL)) == NULL) { 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()
[all …]
/titanic_41/usr/src/cmd/sgs/prof/common/
H A Drdelf.c161 Elf_Scn *scn; in is_function() local
201 scn = elf_getscn(elf, sym->st_shndx); in is_function()
202 (void) gelf_getshdr(scn, &shdr); in is_function()
213 Elf_Scn *scn = NULL, *sym_pri = NULL, *sym_aux = NULL; in fetch_symtab() local
230 while ((symtab_found == 0) && ((scn = elf_nextscn(elf, scn)) != NULL)) { in fetch_symtab()
234 if (gelf_getshdr(scn, &shdr) == NULL) in fetch_symtab()
241 sym_pri = scn; in fetch_symtab()
253 sym_pri = scn; in fetch_symtab()
259 sym_aux = scn; in fetch_symtab()
/titanic_41/usr/src/cmd/mdb/tools/findfp/common/
H A Dfindsym.c42 Elf_Scn *scn; in findelfsym() local
48 if ((scn = elf_getscn(elf, symtabidx)) == NULL || in findelfsym()
49 gelf_getshdr(scn, &shdr) == NULL || in findelfsym()
50 (symtab = elf_getdata(scn, NULL)) == NULL) in findelfsym()
/titanic_41/usr/src/cmd/sgs/libld/common/
H A Dfiles.c116 Elf_Scn *scn; in ifl_setup() local
119 if ((scn = elf_getscn(elf, 0)) == NULL) { in ifl_setup()
124 if ((shdr0 = elf_getshdr(scn)) == NULL) { in ifl_setup()
163 process_section(const char *name, Ifl_desc *ifl, Shdr *shdr, Elf_Scn *scn, in process_section() argument
182 if ((isp->is_indata = elf_getdata(scn, NULL)) == NULL) { in process_section()
1280 process_input(const char *name, Ifl_desc *ifl, Shdr *shdr, Elf_Scn *scn, in process_input() argument
1283 return (process_section(name, ifl, shdr, scn, ndx, in process_input()
1295 process_reloc(const char *name, Ifl_desc *ifl, Shdr *shdr, Elf_Scn *scn, in process_reloc() argument
1299 shdr, scn, ndx, ld_targ.t_id.id_null, ofl) == S_ERROR) in process_reloc()
1320 process_strtab(const char *name, Ifl_desc *ifl, Shdr *shdr, Elf_Scn *scn, in process_strtab() argument
[all …]

123