/titanic_41/usr/src/lib/libzpool/common/ |
H A D | util.c | 69 vdev_stat_t *vs; in show_vdev_stats() local 93 (uint64_t **)&vs, &c) != 0) in show_vdev_stats() 94 vs = &v0; in show_vdev_stats() 96 sec = MAX(1, vs->vs_timestamp / NANOSEC); in show_vdev_stats() 98 nicenum(vs->vs_alloc, used); in show_vdev_stats() 99 nicenum(vs->vs_space - vs->vs_alloc, avail); in show_vdev_stats() 100 nicenum(vs->vs_ops[ZIO_TYPE_READ] / sec, rops); in show_vdev_stats() 101 nicenum(vs->vs_ops[ZIO_TYPE_WRITE] / sec, wops); in show_vdev_stats() 102 nicenum(vs->vs_bytes[ZIO_TYPE_READ] / sec, rbytes); in show_vdev_stats() 103 nicenum(vs->vs_bytes[ZIO_TYPE_WRITE] / sec, wbytes); in show_vdev_stats() [all …]
|
/titanic_41/usr/src/lib/libadm/common/ |
H A D | rdwr_vtoc.c | 47 #define libadm_vtoc_copy(vs, vd) \ argument 50 vd->v_bootinfo[0] = (unsigned)vs->v_bootinfo[0]; \ 51 vd->v_bootinfo[1] = (unsigned)vs->v_bootinfo[1]; \ 52 vd->v_bootinfo[2] = (unsigned)vs->v_bootinfo[2]; \ 53 vd->v_sanity = (unsigned)vs->v_sanity; \ 54 vd->v_version = (unsigned)vs->v_version; \ 55 bcopy(vs->v_volume, vd->v_volume, LEN_DKL_VVOL); \ 56 vd->v_sectorsz = vs->v_sectorsz; \ 57 vd->v_nparts = vs->v_nparts; \ 58 vd->v_version = (unsigned)vs->v_version; \ [all …]
|
/titanic_41/usr/src/lib/libzfs/common/ |
H A D | libzfs_status.c | 124 vdev_stat_t *vs; in find_vdev_problem() local 145 (uint64_t **)&vs, &c) == 0); in find_vdev_problem() 147 if (func(vs->vs_state, vs->vs_aux, in find_vdev_problem() 148 vs->vs_read_errors + in find_vdev_problem() 149 vs->vs_write_errors + in find_vdev_problem() 150 vs->vs_checksum_errors)) in find_vdev_problem() 188 vdev_stat_t *vs; in check_status() local 202 (uint64_t **)&vs, &vsc) == 0); in check_status() 226 if (vs->vs_state == VDEV_STATE_CANT_OPEN && in check_status() 227 vs->vs_aux == VDEV_AUX_VERSION_NEWER) in check_status() [all …]
|
/titanic_41/usr/src/lib/libcmd/common/ |
H A D | vmstate.c | 56 Vmstat_t vs; member 73 *pn = state->vs.extent; in key() 77 *pn = state->vs.n_seg; in key() 79 *pn = state->vs.s_busy; in key() 81 *pn = state->vs.n_busy; in key() 83 *pn = state->vs.m_busy; in key() 85 *pn = state->vs.s_free; in key() 87 *pn = state->vs.n_free; in key() 89 *pn = state->vs.m_free; in key() 104 Vmstat_t vs; in visit() local [all …]
|
/titanic_41/usr/src/cmd/tbl/ |
H A D | tg.c | 27 char *vs; in get_text() local 41 vs = vsize[stynum[ilin]][icol]; in get_text() 42 if ((sz && *sz) || (vs && *vs)) in get_text() 45 if (vs==0 || *vs==0) vs= "\\n(.s+2"; in get_text() 48 fprintf(tabout, ".vs %s\n",vs); in get_text()
|
/titanic_41/usr/src/cmd/availdevs/ |
H A D | availdevs.c | 127 vdev_stat_t *vs; in add_pool_to_xml() local 137 devices, ZPOOL_CONFIG_VDEV_STATS, (uint64_t **)&vs, &n)) { in add_pool_to_xml() 146 set_uint64_prop(pool, ATTR_POOL_USED, vs->vs_alloc); in add_pool_to_xml() 147 set_uint64_prop(pool, ATTR_POOL_SIZE, vs->vs_space); in add_pool_to_xml() 148 set_uint64_prop(pool, ATTR_POOL_REPLACEMENT_SIZE, vs->vs_rsize); in add_pool_to_xml() 150 vs->vs_bytes[ZIO_TYPE_READ]); in add_pool_to_xml() 152 vs->vs_bytes[ZIO_TYPE_WRITE]); in add_pool_to_xml() 154 vs->vs_ops[ZIO_TYPE_READ]); in add_pool_to_xml() 156 vs->vs_ops[ZIO_TYPE_WRITE]); in add_pool_to_xml() 157 set_uint64_prop(pool, ATTR_POOL_READ_ERRORS, vs->vs_read_errors); in add_pool_to_xml() [all …]
|
/titanic_41/usr/src/common/net/dhcp/ |
H A D | dhcpinfo.c | 79 if (pl->vs[code] == NULL) in dhcp_getinfo_pl() 82 if (*vallenp < pl->vs[code]->len) { in dhcp_getinfo_pl() 83 *vallenp = pl->vs[code]->len; in dhcp_getinfo_pl() 87 bcopy(pl->vs[code]->value, value, pl->vs[code]->len); in dhcp_getinfo_pl() 88 *vallenp = pl->vs[code]->len; in dhcp_getinfo_pl()
|
H A D | dhcp_impl.h | 129 DHCP_OPT *vs[VS_OPTION_END - VS_OPTION_START + 1]; member
|
H A D | scan.c | 103 field_scan(start, end, pl->vs, VS_OPTION_END); in vendor_scan()
|
/titanic_41/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | leaky_subr.c | 503 vmem_seg_t vs; in leaky_subr_add_leak() local 505 if (mdb_vread(&vs, sizeof (vs), addr) == -1) { in leaky_subr_add_leak() 510 depth = MIN(vs.vs_depth, VMEM_STACK_DEPTH); in leaky_subr_add_leak() 512 leaky_add_leak(TYPE_VMEM, addr, vs.vs_start, vs.vs_timestamp, in leaky_subr_add_leak() 513 vs.vs_stack, depth, 0, (vs.vs_end - vs.vs_start)); in leaky_subr_add_leak() 900 vmem_seg_t vs; in leaky_subr_invoke_callback() local 904 if (mdb_vread(&vs, sizeof (vs), lkb->lkb_addr) == -1) { in leaky_subr_invoke_callback() 909 return (cb(lkb->lkb_addr, &vs, cbdata)); in leaky_subr_invoke_callback()
|
H A D | kmem.c | 2255 whatis_walk_seg(uintptr_t addr, const vmem_seg_t *vs, whatis_info_t *wi) in whatis_walk_seg() argument 2259 size_t size = vs->vs_end - vs->vs_start; in whatis_walk_seg() 2263 if (vs->vs_type != VMEM_ALLOC && vs->vs_type != VMEM_FREE) in whatis_walk_seg() 2266 while (mdb_whatis_match(w, vs->vs_start, size, &cur)) { in whatis_walk_seg() 2267 mdb_whatis_report_object(w, cur, vs->vs_start, ""); in whatis_walk_seg() 2275 (vs->vs_type == VMEM_ALLOC && vs->vs_depth != 0))) { in whatis_walk_seg() 2280 (vs->vs_type == VMEM_ALLOC) ? "allocated" : "freed", in whatis_walk_seg() 3667 vmem_seg_t vs; in vmem_seg() local 3668 pc_t *stk = vs.vs_stack; in vmem_seg() 3715 if (mdb_vread(&vs, sizeof (vs), addr) == -1) { in vmem_seg() [all …]
|
/titanic_41/usr/src/cmd/mdb/common/modules/libumem/ |
H A D | leaky_subr.c | 792 vmem_seg_t vs; in leaky_subr_add_leak() local 821 if (mdb_vread(&vs, sizeof (vs), addr) == -1) { in leaky_subr_add_leak() 826 depth = MIN(vs.vs_depth, VMEM_STACK_DEPTH); in leaky_subr_add_leak() 828 leaky_add_leak(TYPE_VMEM, addr, vs.vs_start, vs.vs_timestamp, in leaky_subr_add_leak() 829 vs.vs_stack, depth, 0, (vs.vs_end - vs.vs_start)); in leaky_subr_add_leak() 1126 vmem_seg_t vs; in leaky_subr_invoke_callback() local 1132 if (mdb_vread(&vs, sizeof (vs), lkb->lkb_addr) == -1) { in leaky_subr_invoke_callback() 1137 return (cb(lkb->lkb_addr, &vs, cbdata)); in leaky_subr_invoke_callback()
|
H A D | umem.c | 2090 whatis_walk_seg(uintptr_t addr, const vmem_seg_t *vs, whatis_info_t *wi) in whatis_walk_seg() argument 2094 size_t size = vs->vs_end - vs->vs_start; in whatis_walk_seg() 2098 if (vs->vs_type != VMEM_ALLOC && vs->vs_type != VMEM_FREE) in whatis_walk_seg() 2101 while (mdb_whatis_match(w, vs->vs_start, size, &cur)) { in whatis_walk_seg() 2102 mdb_whatis_report_object(w, cur, vs->vs_start, ""); in whatis_walk_seg() 2110 (vs->vs_type == VMEM_ALLOC && vs->vs_depth != 0))) { in whatis_walk_seg() 2115 (vs->vs_type == VMEM_ALLOC) ? "allocated" : "freed", in whatis_walk_seg() 3300 vmem_seg_t vs; in vmem_seg() local 3301 uintptr_t *stk = vs.vs_stack; in vmem_seg() 3348 if (mdb_vread(&vs, sizeof (vs), addr) == -1) { in vmem_seg() [all …]
|
/titanic_41/usr/src/cmd/zpool/ |
H A D | zpool_main.c | 1176 vdev_stat_t *vs; in print_status_config() local 1188 (uint64_t **)&vs, &c) == 0); in print_status_config() 1190 state = zpool_state_to_name(vs->vs_state, vs->vs_aux); in print_status_config() 1196 if (vs->vs_aux == VDEV_AUX_SPARED) in print_status_config() 1198 else if (vs->vs_state == VDEV_STATE_HEALTHY) in print_status_config() 1206 zfs_nicenum(vs->vs_read_errors, rbuf, sizeof (rbuf)); in print_status_config() 1207 zfs_nicenum(vs->vs_write_errors, wbuf, sizeof (wbuf)); in print_status_config() 1208 zfs_nicenum(vs->vs_checksum_errors, cbuf, sizeof (cbuf)); in print_status_config() 1217 } else if (vs->vs_aux != 0) { in print_status_config() 1220 switch (vs->vs_aux) { in print_status_config() [all …]
|
/titanic_41/usr/src/lib/libzfs_jni/common/ |
H A D | libzfs_jni_pool.c | 1071 vdev_stat_t *vs; in populate_DeviceStatsBean() local 1074 vdev, ZPOOL_CONFIG_VDEV_STATS, (uint64_t **)&vs, &c); in populate_DeviceStatsBean() 1082 bean->method_setUsed, (jlong)vs->vs_alloc); in populate_DeviceStatsBean() 1085 bean->method_setSize, (jlong)vs->vs_space); in populate_DeviceStatsBean() 1088 bean->method_setReplacementSize, (jlong)vs->vs_rsize); in populate_DeviceStatsBean() 1091 bean->method_setReadBytes, (jlong)vs->vs_bytes[ZIO_TYPE_READ]); in populate_DeviceStatsBean() 1094 bean->method_setWriteBytes, (jlong)vs->vs_bytes[ZIO_TYPE_WRITE]); in populate_DeviceStatsBean() 1097 bean->method_setReadOperations, (jlong)vs->vs_ops[ZIO_TYPE_READ]); in populate_DeviceStatsBean() 1100 bean->method_setWriteOperations, (jlong)vs->vs_ops[ZIO_TYPE_WRITE]); in populate_DeviceStatsBean() 1103 bean->method_setReadErrors, (jlong)vs->vs_read_errors); in populate_DeviceStatsBean() [all …]
|
/titanic_41/usr/src/cmd/nvmeadm/ |
H A D | nvmeadm_dev.c | 87 void *vs = NULL; in nvme_version() local 90 (void) nvme_ioctl(fd, NVME_IOC_VERSION, &bufsize, &vs, 0, NULL); in nvme_version() 92 return (vs); in nvme_version()
|
/titanic_41/usr/src/cmd/zoneadm/ |
H A D | svc-zones | 54 egrep -vs '^#|^global:' /etc/zones/index || exit 0 # no local zones 92 egrep -vs '^#|^global:' /etc/zones/index || exit 0 # no local zones
|
/titanic_41/usr/src/cmd/fm/schemes/zfs/ |
H A D | scheme.c | 224 vdev_stat_t *vs; in fmd_fmri_unusable() local 228 (uint64_t **)&vs, &c); in fmd_fmri_unusable() 230 ret = (vs->vs_state < VDEV_STATE_DEGRADED); in fmd_fmri_unusable()
|
/titanic_41/usr/src/cmd/sysdef/ |
H A D | sysdef.c | 125 int vs, tu, utsnm, bdev, pnstrpush, variable 368 vs = setup("v"); in main() 386 for (nlptr = &nl[vs]; nlptr != &nl[endnm]; nlptr++) { in main() 394 if (SYM_VALUE(vs)) { in main() 395 MEMSEEK(vs); in main()
|
/titanic_41/usr/src/common/net/wanboot/ |
H A D | bootconf.c | 111 char *ks, *ke, *vs, *ve; in parse_bootconf() local 176 vs = p; in parse_bootconf() 231 if (nvlist_add_string(nvl, ks, vs) != 0) { in parse_bootconf()
|
/titanic_41/usr/src/uts/common/fs/zfs/ |
H A D | vdev.c | 2649 vdev_get_stats(vdev_t *vd, vdev_stat_t *vs) in vdev_get_stats() argument 2657 bcopy(&vd->vdev_stat, vs, sizeof (*vs)); in vdev_get_stats() 2658 vs->vs_timestamp = gethrtime() - vs->vs_timestamp; in vdev_get_stats() 2659 vs->vs_state = vd->vdev_state; in vdev_get_stats() 2660 vs->vs_rsize = vdev_get_min_asize(vd); in vdev_get_stats() 2662 vs->vs_rsize += VDEV_LABEL_START_SIZE + VDEV_LABEL_END_SIZE; in vdev_get_stats() 2663 vs->vs_esize = vd->vdev_max_asize - vd->vdev_asize; in vdev_get_stats() 2665 vs->vs_fragmentation = vd->vdev_mg->mg_fragmentation; in vdev_get_stats() 2678 vs->vs_ops[t] += cvs->vs_ops[t]; in vdev_get_stats() 2679 vs->vs_bytes[t] += cvs->vs_bytes[t]; in vdev_get_stats() [all …]
|
H A D | vdev_label.c | 301 vdev_stat_t vs; in vdev_config_generate() local 304 vdev_get_stats(vd, &vs); in vdev_config_generate() 306 (uint64_t *)&vs, sizeof (vs) / sizeof (uint64_t)); in vdev_config_generate()
|
/titanic_41/usr/src/cmd/syseventd/modules/zfs_mod/ |
H A D | zfs_mod.c | 109 vdev_stat_t *vs; in zfs_toplevel_state() local 115 (uint64_t **)&vs, &c) == 0); in zfs_toplevel_state() 116 return (vs->vs_state); in zfs_toplevel_state()
|
/titanic_41/usr/src/cmd/nscd/ |
H A D | nscd_selfcred.c | 1556 char vs[64]; in get_smf_prop() local 1561 (void) strcpy(vs, "yes"); in get_smf_prop() 1563 (void) strcpy(vs, "no"); in get_smf_prop() 1568 (void) sprintf(vs, "%lld", *(int64_t *)def_val); in get_smf_prop() 1575 scf_strerror(scf_error()), vs); in get_smf_prop()
|
/titanic_41/usr/src/uts/common/fs/zfs/sys/ |
H A D | vdev.h | 86 extern void vdev_get_stats(vdev_t *vd, vdev_stat_t *vs);
|