Lines Matching refs:kc

52 kstat_lookup_read(kstat_ctl_t *kc, char *module,  in kstat_lookup_read()  argument
55 kstat_t *ksp = kstat_lookup(kc, module, instance, name); in kstat_lookup_read()
58 if (kstat_read(kc, ksp, NULL) == -1) in kstat_lookup_read()
70 acquire_cpus(struct snapshot *ss, kstat_ctl_t *kc) in acquire_cpus() argument
89 if ((ksp = kstat_lookup_read(kc, "cpu_info", i, NULL)) == NULL) in acquire_cpus()
99 if ((ksp = kstat_lookup_read(kc, "cpu", i, "vm")) == NULL) in acquire_cpus()
105 if ((ksp = kstat_lookup_read(kc, "cpu", i, "sys")) == NULL) in acquire_cpus()
184 acquire_intrs(struct snapshot *ss, kstat_ctl_t *kc) in acquire_intrs() argument
194 for (ksp = kc->kc_chain; ksp; ksp = ksp->ks_next) { in acquire_intrs()
203 sys_misc = kstat_lookup_read(kc, "unix", 0, "system_misc"); in acquire_intrs()
216 for (ksp = kc->kc_chain; ksp; ksp = ksp->ks_next) { in acquire_intrs()
222 if (kstat_read(kc, ksp, NULL) == -1) in acquire_intrs()
243 acquire_sys(struct snapshot *ss, kstat_ctl_t *kc) in acquire_sys() argument
249 if ((ksp = kstat_lookup(kc, "unix", 0, "sysinfo")) == NULL) in acquire_sys()
252 if (kstat_read(kc, ksp, &ss->s_sys.ss_sysinfo) == -1) in acquire_sys()
255 if ((ksp = kstat_lookup(kc, "unix", 0, "vminfo")) == NULL) in acquire_sys()
258 if (kstat_read(kc, ksp, &ss->s_sys.ss_vminfo) == -1) in acquire_sys()
261 if ((ksp = kstat_lookup(kc, "unix", 0, "dnlcstats")) == NULL) in acquire_sys()
264 if (kstat_read(kc, ksp, &ss->s_sys.ss_nc) == -1) in acquire_sys()
267 if ((ksp = kstat_lookup(kc, "unix", 0, "system_misc")) == NULL) in acquire_sys()
270 if (kstat_read(kc, ksp, NULL) == -1) in acquire_sys()
300 acquire_snapshot(kstat_ctl_t *kc, int types, struct iodev_filter *iodev_filter) in acquire_snapshot() argument
317 while (kstat_chain_update(kc) == -1) { in acquire_snapshot()
325 err = acquire_intrs(ss, kc); in acquire_snapshot()
328 err = acquire_cpus(ss, kc); in acquire_snapshot()
335 err = acquire_iodevs(ss, kc, iodev_filter); in acquire_snapshot()
338 err = acquire_sys(ss, kc); in acquire_snapshot()
393 kstat_ctl_t *kc; in open_kstat() local
395 while ((kc = kstat_open()) == NULL) { in open_kstat()
402 return (kc); in open_kstat()