Home
last modified time | relevance | path

Searched refs:scn (Results 1 – 25 of 73) sorted by last modified time

123

/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dspa_misc.c2413 if (scn == NULL || scn->scn_phys.scn_func == POOL_SCAN_NONE) in spa_scan_get_stats()
2418 ps->pss_func = scn->scn_phys.scn_func; in spa_scan_get_stats()
2419 ps->pss_state = scn->scn_phys.scn_state; in spa_scan_get_stats()
2420 ps->pss_start_time = scn->scn_phys.scn_start_time; in spa_scan_get_stats()
2421 ps->pss_end_time = scn->scn_phys.scn_end_time; in spa_scan_get_stats()
2422 ps->pss_to_examine = scn->scn_phys.scn_to_examine; in spa_scan_get_stats()
2423 ps->pss_to_process = scn->scn_phys.scn_to_process; in spa_scan_get_stats()
2424 ps->pss_processed = scn->scn_phys.scn_processed; in spa_scan_get_stats()
2425 ps->pss_errors = scn->scn_phys.scn_errors; in spa_scan_get_stats()
2426 ps->pss_examined = scn->scn_phys.scn_examined; in spa_scan_get_stats()
[all …]
H A Dvdev.c2492 dsl_scan_t *scn = spa->spa_dsl_pool->dp_scan; in vdev_dtl_should_excise() local
2513 if (vdev_dtl_max(vd) <= scn->scn_phys.scn_max_txg) { in vdev_dtl_should_excise()
2514 ASSERT3U(scn->scn_phys.scn_min_txg, <=, vdev_dtl_min(vd)); in vdev_dtl_should_excise()
2515 ASSERT3U(scn->scn_phys.scn_min_txg, <, vd->vdev_resilver_txg); in vdev_dtl_should_excise()
2516 ASSERT3U(vd->vdev_resilver_txg, <=, scn->scn_phys.scn_max_txg); in vdev_dtl_should_excise()
2542 dsl_scan_t *scn = spa->spa_dsl_pool->dp_scan; in vdev_dtl_reassess() local
2550 if (zfs_scan_ignore_errors && scn) in vdev_dtl_reassess()
2551 scn->scn_phys.scn_errors = 0; in vdev_dtl_reassess()
2562 (u_longlong_t)(scn ? scn->scn_phys.scn_errors : 0)); in vdev_dtl_reassess()
2573 (scn != NULL && scn->scn_phys.scn_errors == 0)) && in vdev_dtl_reassess()
H A Ddsl_scan.c538 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 Dgelf.c333 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 Dnextscn.c35 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 Drawdata.c44 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 Dndxscn.c35 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 Dgetdata.c120 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 Dgetshdr.c36 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 …]
/illumos-gate/usr/src/lib/libctf/common/
H A Dctf_convert.c39 Elf_Scn *scn, *strscn; in ctf_has_c_source() local
44 scn = NULL; in ctf_has_c_source()
45 while ((scn = elf_nextscn(elf, scn)) != NULL) { in ctf_has_c_source()
46 if (gelf_getshdr(scn, &shdr) == NULL) { in ctf_has_c_source()
57 if (scn == NULL) { in ctf_has_c_source()
68 if ((data = elf_getdata(scn, NULL)) == NULL) { in ctf_has_c_source()
/illumos-gate/usr/src/cmd/ctfmerge/
H A Dctfmerge.c101 Elf_Scn *scn; in ctfmerge_elfopen() local
115 scn = NULL; in ctfmerge_elfopen()
116 while ((scn = elf_nextscn(elf, scn)) != NULL) { in ctfmerge_elfopen()
119 if (gelf_getshdr(scn, &shdr) == NULL) in ctfmerge_elfopen()
133 ctf_data = elf_getdata(scn, NULL); in ctfmerge_elfopen()
164 sym_data = elf_getdata(scn, NULL); in ctfmerge_elfopen()
/illumos-gate/usr/src/cmd/isns/isnsd/
H A DMakefile36 COBJS = main.o qry.o admintf.o dsapi.o log.o sched.o dseng.o scn.o cache.o
/illumos-gate/usr/src/cmd/sgs/elfdump/common/
H A Delfdump.c4626 Elf_Scn *scn; in shdr_cache() local
4656 } else if ((nameshdr = elf_getshdr(scn)) == NULL) { in shdr_cache()
4659 EC_WORD(elf_ndxscn(scn))); in shdr_cache()
4718 for (ndx = 1, scn = NULL; (scn = elf_nextscn(elf, scn)) != NULL; in shdr_cache()
4723 _cache->c_scn = scn; in shdr_cache()
4728 EC_WORD(elf_ndxscn(scn))); in shdr_cache()
4904 Elf_Scn *scn = _cache->c_scn; in shdr_cache() local
4909 EC_WORD(elf_ndxscn(scn))); in shdr_cache()
4974 Elf_Scn *scn; in regular() local
5013 if ((scn = elf_getscn(elf, 0)) != NULL) { in regular()
[all …]
/illumos-gate/usr/src/cmd/sgs/elfedit/common/
H A Delfedit_machelf.c128 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/sgs/pvs/common/
H A Dpvs.c1008 Elf_Scn *scn; in main() local
1127 if ((scn = elf_getscn(elf, ehdr.e_shstrndx)) == NULL) { in main()
1135 if ((data = elf_getdata(scn, NULL)) == NULL) { in main()
1170 for (scn = NULL; (scn = elf_nextscn(elf, scn)) != NULL; in main()
1172 if (gelf_getshdr(scn, &shdr) == NULL) { in main()
1179 if ((_cache->c_data = elf_getdata(scn, NULL)) == in main()
1187 _cache->c_scn = scn; in main()
/illumos-gate/usr/src/cmd/sgs/gprof/common/
H A Dreadelf.c403 Elf_Scn *scn; in is_function() local
444 scn = elf_getscn(elf, sym->st_shndx); in is_function()
445 (void) gelf_getshdr(scn, &shdr); in is_function()
456 Elf_Scn *scn = NULL, *sym_pri = NULL, *sym_aux = NULL; in get_symtab() local
477 while ((symtab_found == 0) && ((scn = elf_nextscn(elf, scn)) != NULL)) { in get_symtab()
480 if (gelf_getshdr(scn, &shdr) == NULL) in get_symtab()
487 sym_pri = scn; in get_symtab()
499 sym_pri = scn; in get_symtab()
505 sym_aux = scn; in get_symtab()
/illumos-gate/usr/src/lib/libproc/common/
H A DPgcore.c574 Elf_Scn *scn = NULL; in count_debug() local
580 while ((scn = elf_nextscn(fptr->file_elf, scn)) != NULL) { in count_debug()
583 if (gelf_getshdr(scn, &shdr) == NULL) in count_debug()
741 Elf_Scn *scn = NULL; in dump_debug() local
747 while ((scn = elf_nextscn(fptr->file_elf, scn)) != NULL) { in dump_debug()
751 if (gelf_getshdr(scn, &shdr) == NULL) in dump_debug()
757 if ((data = elf_getdata(scn, NULL)) == NULL) { in dump_debug()
H A DPcore.c1462 Elf_Scn *scn; in fake_up_symtab() local
1610 if ((scn = elf_getscn(fp->file_symtab.sym_elf, 1)) == NULL || in fake_up_symtab()
1611 (fp->file_symtab.sym_data_pri = elf_getdata(scn, NULL)) == NULL || in fake_up_symtab()
1612 (scn = elf_getscn(fp->file_symtab.sym_elf, 2)) == NULL || in fake_up_symtab()
1613 (data = elf_getdata(scn, NULL)) == NULL) { in fake_up_symtab()
1615 (void *)scn); in fake_up_symtab()
2345 Elf_Scn *scn, *intp_scn = NULL; local
2708 for (scn = NULL; (scn = elf_nextscn(aout.e_elf, scn)) != NULL; ) {
2711 if ((gelf_getshdr(scn, &shdr) == NULL) ||
2717 intp_scn = scn;
H A DPsymtab.c1196 Elf_Scn *scn; in file_differs() local
1214 scn = NULL; in file_differs()
1215 while ((scn = elf_nextscn(elf, scn)) != NULL) { in file_differs()
1584 Elf_Scn *scn; in build_fake_elf() local
1683 scn = NULL; in build_alt_debug()
1685 for (scn = elf_nextscn(elf, scn); data != NULL && scn != NULL; in build_alt_debug()
1686 scn = elf_nextscn(elf, scn)) { in build_alt_debug()
1724 scn = NULL; in build_alt_debug()
1725 for (scn = elf_nextscn(elf, scn); scn != NULL; in build_alt_debug()
1726 scn = elf_nextscn(elf, scn)) { in build_alt_debug()
[all …]
/illumos-gate/usr/src/tools/find_elf/
H A Dfind_elf.c461 Elf_Scn *scn = NULL; in get_elfinfo() local
479 while ((scn = elf_nextscn(elf, scn)) != NULL) { in get_elfinfo()
483 if (gelf_getshdr(scn, &shdr) == NULL) in get_elfinfo()
489 if ((data = elf_getdata(scn, NULL)) == NULL) in get_elfinfo()
/illumos-gate/usr/src/cmd/sysdef/
H A Dsysdef.c197 Elf_Scn *scn; in main() local
312 scn = NULL; in main()
313 while ((scn = elf_nextscn(elfd, scn)) != NULL) { in main()
314 if ((shdr = elf_getshdr(scn)) == NULL) { in main()
737 Elf_Scn *scn; in memseek() local
747 if ((scn = elf_getscn(elfd, nl[sym].n_scnum)) == NULL) { in memseek()
753 if ((eshdr = elf_getshdr(scn)) == NULL) { in memseek()
/illumos-gate/usr/src/cmd/svc/startd/
H A Dexpand.c173 const char *scn, *sn, *in, *pgn, *pn; in get_prop_val_str() local
175 if (scf_parse_svc_fmri(spec, &scn, &sn, &in, &pgn, in get_prop_val_str()
191 if (scf_handle_get_scope(h, scn == NULL ? SCF_SCOPE_LOCAL : scn, in get_prop_val_str()
/illumos-gate/usr/src/cmd/strings/
H A Dstrings.c114 Elf_Scn *scn; in look_in_sections() local
124 scn = 0; in look_in_sections()
125 while ((scn = elf_nextscn(elf, scn)) != 0) { in look_in_sections()
127 if (gelf_getshdr(scn, &shdr) == (GElf_Shdr *)0) { in look_in_sections()
/illumos-gate/usr/src/cmd/sgs/libld/common/
H A Dupdate.c4591 Elf_Scn *scn; in ld_update_outfile() local
4594 if ((scn = elf_getscn(ofl->ofl_elf, 0)) == NULL) { in ld_update_outfile()
4599 if ((shdr0 = elf_getshdr(scn)) == NULL) { in ld_update_outfile()
H A Dfiles.c117 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 …]

123