Lines Matching +defs:init +defs:data

85  * zonestatd implements gathering cpu and memory utilization data for
99 * Receives client requests for the current utilization data. Each
101 * data by kicking the stat_thread.
103 * If the client is in a non-global zone, the utilization data will
109 * current utilization data for each running zone. This includes
114 * The stat_thread will only update memory utilization data as often as
752 zsd_warn("Unable to init template");
985 * the per-zone data for the pset.
1248 * The kstat tracking data is rolled so that the usage since the previous
2475 /* Get cached data for proc */
2496 /* Update cached data for proc */
2507 * exits so that if the pid is recycled, data from its previous life is
2523 zsd_open_exacct(zsd_ctl_t *ctl, boolean_t init)
2535 if (init == B_TRUE) {
2615 * Then read exacct data for exited processes, and charge them as well.
2618 zsd_refresh_procs(zsd_ctl_t *ctl, boolean_t init)
2646 ret = zsd_open_exacct(ctl, init);
2744 if (init == B_TRUE)
2757 * No need to collect exited proc data on initialization. Just
2761 if (init == B_TRUE)
2848 "unable to get process accounting data");
2851 /* Next entries should be process data */
2857 "process data of wrong type");
3150 * getvmusage(2) uses size_t's in the passwd data structure, which differ
3211 zsd_refresh_memory(zsd_ctl_t *ctl, boolean_t init)
3252 if (init)
3279 * Just use data from the most recent read, which will
3307 /* Unexpected error. Use existing data */
3395 /* Unexpected error. Use existing data */
3561 zsd_refresh_cpu_stats(zsd_ctl_t *ctl, boolean_t init)
3573 /* Update the per-cpu kstat data */
3582 if (init) {
3596 if (init)
3687 * Saves current usage data to a cache that is read by libzonestat when
3690 * All pointers in the cached data structure are set to NULL. When
3691 * libzonestat reads the cached data, it will set the pointers relative to
3979 * Update the utilization data for all zones and processor sets.
3982 zsd_read(zsd_ctl_t *ctl, boolean_t init, boolean_t do_memory)
3994 zsd_refresh_memory(ctl, init);
3997 zsd_refresh_procs(ctl, init);
3998 zsd_refresh_cpu_stats(ctl, init);
4043 * Open any necessary subsystems for collecting utilization data,
4044 * allocate and initialize data structures, and get initial utilization.
4224 /* Copy utilization data to buffer, filtering data if non-global zone. */
4421 * Respond to libzonestat.so clients with the current utlilzation data.
4483 * new memory calculation if the memory data is older than the
4505 /* Copy current usage data to stack to send to client */
4529 * The stat thread generates new utilization data when clients request
4531 * data depending on if clients exist.
4581 * Wait for a usage data request
4686 char data;
4716 if (read(filedes[0], &data, 1) == 1) {
4718 exit(data);