/titanic_41/usr/src/uts/common/io/scsi/adapters/iscsi/ |
H A D | iscsi_stats.c | 82 char ks_name[KSTAT_STRLEN]; in iscsi_hba_kstat_init() local 89 bzero(ks_name, sizeof (ks_name)); in iscsi_hba_kstat_init() 91 if (snprintf(ks_name, sizeof (ks_name) - 1, iSCSI_HBA_BASE_NAME, in iscsi_hba_kstat_init() 92 ihp->hba_oid) >= sizeof (ks_name)) { in iscsi_hba_kstat_init() 97 ddi_get_instance(ihp->hba_dip), ks_name, iSCSI_CLASS_HBA, in iscsi_hba_kstat_init() 172 char ks_name[KSTAT_STRLEN]; in iscsi_sess_kstat_init() local 183 bzero(ks_name, sizeof (ks_name)); in iscsi_sess_kstat_init() 185 if (snprintf(ks_name, sizeof (ks_name) - 1, iSCSI_SESS_BASE_NAME, in iscsi_sess_kstat_init() 186 isp->sess_hba->hba_oid, isp->sess_oid) >= sizeof (ks_name)) { in iscsi_sess_kstat_init() 193 ddi_get_instance(ihp->hba_dip), ks_name, iSCSI_CLASS_SESS, in iscsi_sess_kstat_init() [all …]
|
/titanic_41/usr/src/cmd/stat/common/ |
H A D | dsr.c | 340 lookup_ks_name(char *ks_name, int want_devid) in lookup_ks_name() argument 359 if ((ks_name == NULL) || (*ks_name == 0) || in lookup_ks_name() 360 (strspn(ks_name, "0123456789") == strlen(ks_name))) in lookup_ks_name() 364 pidp = strchr(ks_name, '.'); /* start of ".<pid>" */ in lookup_ks_name() 365 initiator = strrchr(ks_name, '.'); /* start of ".<pHCI-driver>" */ in lookup_ks_name() 369 part = strchr(ks_name, ','); /* start of ",<partition>" */ in lookup_ks_name() 370 p = strchr(ks_name, ':'); /* start of ":<partition>" */ in lookup_ks_name() 380 p = &ks_name[strlen(ks_name) - 1]; /* last char */ in lookup_ks_name() 384 while ((p >= ks_name) && isdigit(*p)) in lookup_ks_name() 389 len = p - ks_name; in lookup_ks_name() [all …]
|
H A D | dsr.h | 39 char *ks_name; /* untranslated kstat name */ member
|
/titanic_41/usr/src/uts/common/os/ |
H A D | kstat_fr.c | 363 s = strcmp(k1->ks_name, k2->ks_name); in kstat_compare_byname() 419 kstat_hold_byname(const char *ks_module, int ks_instance, const char *ks_name, in kstat_hold_byname() argument 426 kstat_set_string(e.e_ks.ks_name, ks_name); in kstat_hold_byname() 930 kstat_create(const char *ks_module, int ks_instance, const char *ks_name, in kstat_create() argument 933 return (kstat_create_zone(ks_module, ks_instance, ks_name, ks_class, in kstat_create() 944 kstat_create_zone(const char *ks_module, int ks_instance, const char *ks_name, in kstat_create_zone() argument 965 if (ks_name == NULL) { in kstat_create_zone() 969 ks_name = namebuf; in kstat_create_zone() 978 ks_module, ks_instance, ks_name, ks_type); in kstat_create_zone() 990 ks_module, ks_instance, ks_name); in kstat_create_zone() [all …]
|
/titanic_41/usr/src/lib/libfakekernel/common/ |
H A D | kstat.c | 22 kstat_create_zone(const char *ks_module, int ks_instance, const char *ks_name, in kstat_create_zone() argument 31 kstat_create(const char *ks_module, int ks_instance, const char *ks_name, in kstat_create() argument
|
/titanic_41/usr/src/cmd/avs/dsstat/ |
H A D | ii_stats.c | 104 cur_vname = cur->pre_set->ks_name; in ii_discover() 107 tst_vname = ksp->ks_name; in ii_discover() 246 (void) strncpy(volname, cur->pre_set->ks_name, KSTAT_STRLEN); in ii_update() 259 if (strcmp(cur->pre_set->ks_name, cur->cur_set->ks_name) != 0 || in ii_update() 672 if (strcmp(cur->pre_set->ks_name, in ii_add_stat() 673 iistat->pre_set->ks_name) <= 0) { in ii_add_stat() 683 if (strcmp(cur->next->pre_set->ks_name, in ii_add_stat() 684 iistat->pre_set->ks_name) > 0) { in ii_add_stat() 795 vn = ksp->ks_name; in ii_vol_selected()
|
H A D | sdbc_stats.c | 77 strncmp(ksp->ks_name, SDBC_KSTAT_CDSTATS, 2) != 0) in sdbc_discover() 204 kname = cur->pre_set->ks_name; in sdbc_update() 226 kname = cur->pre_io->ks_name; in sdbc_update()
|
/titanic_41/usr/src/lib/libkstat/common/ |
H A D | kstat.c | 242 (void) strcpy(k0.ks_name, "kstat_headers"); in kstat_chain_update() 301 kstat_lookup(kstat_ctl_t *kc, char *ks_module, int ks_instance, char *ks_name) in kstat_lookup() argument 309 (ks_name == NULL || strcmp(ksp->ks_name, ks_name) == 0)) in kstat_lookup()
|
/titanic_41/usr/src/cmd/picl/plugins/sun4u/snowbird/frutree/ |
H A D | piclkstat.c | 152 ksp->ks_name); in kstat_name_lookup() 402 char ks_name[20]; in parallel_port_state() local 404 (void) snprintf(ks_name, sizeof (ks_name), "%s%d", ks_module, in parallel_port_state() 406 if ((ksp = kstat_lookup(kc, ks_module, ks_instance, ks_name)) == NULL) { in parallel_port_state()
|
/titanic_41/usr/src/cmd/sa/ |
H A D | sadc.c | 370 if (strncmp(ksp->ks_name, "cpu_stat", 8) == 0) in all_stat_init() 381 if (strncmp(ksp->ks_name, "cpu_stat", 8) == 0 && in all_stat_init() 545 fail(1, "kstat_read(%x, '%s') failed", kc, ksp->ks_name); in safe_kstat_read() 551 char *ks_name) in safe_kstat_lookup() argument 553 kstat_t *ksp = kstat_lookup(kc, ks_module, ks_instance, ks_name); in safe_kstat_lookup() 559 ks_name == NULL ? "" : ks_name); in safe_kstat_lookup() 570 ksp->ks_name, name); in safe_kstat_data_lookup() 592 return (strcmp(ks1->ks_name, ks2->ks_name)); in kscmp()
|
/titanic_41/usr/src/cmd/rpcsvc/ |
H A D | rstat_proc.c | 674 fail(1, "kstat_read(%x, '%s') failed", kctl, ksp->ks_name); in safe_kstat_read() 680 char *ks_name) in safe_kstat_lookup() argument 682 kstat_t *ksp = kstat_lookup(kctl, ks_module, ks_instance, ks_name); in safe_kstat_lookup() 688 ks_name == NULL ? "" : ks_name); in safe_kstat_lookup() 699 ksp->ks_name, name); in safe_kstat_data_lookup() 736 strcmp(ksp->ks_name, "sys") == 0) in system_stat_init() 745 strcmp(ksp->ks_name, "sys") == 0 && in system_stat_init() 823 return (strcmp(ks1->ks_name, ks2->ks_name)); in kscmp() 1014 while (strcmp(net->ks->ks_name, in init_net() 1015 comp->next->ks->ks_name) > 0) in init_net()
|
/titanic_41/usr/src/cmd/kvmstat/ |
H A D | kvmstat.c | 96 field->ksf_name, ksp->ks_name, ksp->ks_instance); in kstat_field_hint() 155 if (strcmp(ksi->ksi_name, ksp->ks_name) != 0) in kstat_instances_update() 170 (void) strlcpy(ksi->ksi_name, ksp->ks_name, KSTAT_STRLEN); in kstat_instances_update() 352 if (strstr(ksp->ks_name, name) != ksp->ks_name) in interested()
|
/titanic_41/usr/src/cmd/stat/kstat/ |
H A D | kstat.c | 173 nselector->ks_name.pstr = in main() 245 uselector->ks_name.pstr = in main() 374 return (strcasecmp(l_arg->ks_name, r_arg->ks_name)); in compare_instances() 498 selector->ks_name.pstr = "*"; in new_selector() 597 if (strncmp(kp->ks_name, "kstat_", 6) == 0) { in ks_instances_read() 604 kp->ks_name); in ks_instances_read() 610 kp->ks_instance, kp->ks_name, in ks_instances_read() 626 ks_match(kp->ks_name, &selector->ks_name)) { in ks_instances_read() 650 (void) strlcpy(ksi->ks_name, kp->ks_name, KSTAT_STRLEN); in ks_instances_read() 752 ksi->ks_name, ksi->ks_class); in ks_instance_print() [all …]
|
H A D | kstat.h | 175 char ks_name[KSTAT_STRLEN]; member 200 ks_pattern_t ks_name; member
|
/titanic_41/usr/src/uts/common/io/scsi/adapters/mpt_sas/ |
H A D | mptsas_smhba.c | 305 char ks_name[KSTAT_STRLEN]; in mptsas_create_phy_stats() local 329 (void) snprintf(ks_name, sizeof (ks_name), in mptsas_create_phy_stats() 335 ddi_get_instance(dip), ks_name, KSTAT_SAS_PHY_CLASS, in mptsas_create_phy_stats() 342 ks_name); in mptsas_create_phy_stats()
|
/titanic_41/usr/src/cmd/power/ |
H A D | sysstat.c | 305 strcmp(ksp->ks_name, "sys") == 0) in cpu_stats_init() 315 strcmp(ksp->ks_name, "sys") == 0 && in cpu_stats_init() 625 ksp->ks_name, name); in safe_kstat_data_lookup() 643 return (strcmp(ks1->ks_name, ks2->ks_name)); in kscmp()
|
/titanic_41/usr/src/cmd/perl/contrib/Sun/Solaris/Kstat/ |
H A D | Kstat.xs | 1198 kip->kstat->ks_name)) != 0) { in read_kstats() 1305 if (strncmp(kp->ks_name, "kstat_", 6) == 0) { 1311 lookup_raw_kstat_fn(kp->ks_module, kp->ks_name) == 0) { 1315 kp->ks_module, kp->ks_instance, kp->ks_name, 1323 kp->ks_name, 0); 1423 if (strncmp(kp->ks_name, "kstat_", 6) == 0) { 1429 lookup_raw_kstat_fn(kp->ks_module, kp->ks_name) 1434 kp->ks_instance, kp->ks_name, 1442 kp->ks_name, &new); 1466 kp->ks_name));
|
/titanic_41/usr/src/uts/common/sys/ |
H A D | kstat.h | 78 char ks_name[KSTAT_STRLEN]; /* kstat name */ member 109 char ks_name[KSTAT_STRLEN]; member
|
/titanic_41/usr/src/cmd/pools/poolstat/ |
H A D | sa_kstat.c | 120 ksp->ks_name, name, get_errstr()); in safe_kstat_data_lookup() 213 (name == NULL || strcmp(ksp->ks_name, name) == 0) && in update_sdata_list()
|
/titanic_41/usr/src/lib/libdladm/common/ |
H A D | libdlstat.c | 555 (name == NULL || strcmp(ksp->ks_name, name) == 0) && in dladm_kstat_lookup() 1305 strstr(ksp->ks_name, "mac_rx") != 0 && in i_dlstat_rx_hwlane_search() 1306 strstr(ksp->ks_name, "hwlane") != 0 && in i_dlstat_rx_hwlane_search() 1307 strstr(ksp->ks_name, "fanout") == 0 && in i_dlstat_rx_hwlane_search() 1316 strstr(ksp->ks_name, "mac_tx") != 0 && in i_dlstat_tx_hwlane_search() 1317 strstr(ksp->ks_name, "hwlane") != 0 && in i_dlstat_tx_hwlane_search() 1326 strstr(ksp->ks_name, "mac_rx") != 0 && in i_dlstat_fanout_search() 1327 strstr(ksp->ks_name, "swlane") != 0 && in i_dlstat_fanout_search() 1328 strstr(ksp->ks_name, "fanout") != 0 && in i_dlstat_fanout_search() 1337 strstr(ksp->ks_name, "mac_rx") != 0 && in i_dlstat_rx_ring_search() [all …]
|
/titanic_41/usr/src/uts/common/crypto/spi/ |
H A D | kcf_spi.c | 136 char ks_name[KSTAT_STRLEN]; in crypto_register_provider() local 329 (void) snprintf(ks_name, KSTAT_STRLEN, "%s_%s", in crypto_register_provider() 332 (void) snprintf(ks_name, KSTAT_STRLEN, "%s_%d_%u_%s", in crypto_register_provider() 337 prov_desc->pd_kstat = kstat_create("kcf", 0, ks_name, "crypto", in crypto_register_provider()
|
/titanic_41/usr/src/cmd/stat/vmstat/ |
H A D | vmstat.c | 412 ks->ks_name, name); in sum_out() 434 ss->ss_agg_vm.ks_name); in dosum() 440 ss->ss_agg_vm.ks_name); in dosum()
|
/titanic_41/usr/src/uts/sun4v/sys/ |
H A D | vgen_stats.h | 132 char *ks_name, vgen_stats_t *statsp);
|
/titanic_41/usr/src/uts/sun4v/io/ |
H A D | vgen_stats.c | 50 char *ks_name, vgen_stats_t *statsp) in vgen_setup_kstats() argument 57 ksp = kstat_create(ks_mod, instance, ks_name, "net", KSTAT_TYPE_NAMED, in vgen_setup_kstats()
|
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/ilbadm/ |
H A D | ilbadm_stats.c | 567 strcasecmp(sta->ilbst_server, kp->ks_name) != 0) in i_get_server_descs() 593 (void) strlcpy(rp->ird_srvlist[i].isd_servername, kp->ks_name, in i_get_server_descs() 722 if (strcasecmp(kp->ks_name, sta->ilbst_rulename) in i_get_rule_descs() 726 (void) strlcpy(rlist[i].ird_rulename, kp->ks_name, in i_get_rule_descs()
|