Lines Matching refs:ksp
647 kstat_t *ksp; in uv_uptime() local
656 ksp = kstat_lookup(kc, (char*) "unix", 0, (char*) "system_misc"); in uv_uptime()
657 if (kstat_read(kc, ksp, NULL) == -1) { in uv_uptime()
660 knp = (kstat_named_t*) kstat_data_lookup(ksp, (char*) "clk_intr"); in uv_uptime()
672 kstat_t *ksp; in uv_cpu_info() local
682 while ((ksp = kstat_lookup(kc, (char*) "cpu_info", lookup_instance, NULL))) { in uv_cpu_info()
696 while ((ksp = kstat_lookup(kc, (char*) "cpu_info", lookup_instance, NULL))) { in uv_cpu_info()
697 if (kstat_read(kc, ksp, NULL) == -1) { in uv_cpu_info()
701 knp = kstat_data_lookup(ksp, (char*) "clock_MHz"); in uv_cpu_info()
707 knp = kstat_data_lookup(ksp, (char*) "brand"); in uv_cpu_info()
719 ksp = kstat_lookup(kc, (char*) "cpu", lookup_instance, (char*) "sys"); in uv_cpu_info()
721 if (ksp == NULL) in uv_cpu_info()
724 if (kstat_read(kc, ksp, NULL) == -1) { in uv_cpu_info()
731 knp = kstat_data_lookup(ksp, (char*) "cpu_ticks_user"); in uv_cpu_info()
735 knp = kstat_data_lookup(ksp, (char*) "cpu_ticks_kernel"); in uv_cpu_info()
739 knp = kstat_data_lookup(ksp, (char*) "cpu_ticks_idle"); in uv_cpu_info()
743 knp = kstat_data_lookup(ksp, (char*) "intr"); in uv_cpu_info()