Home | History | Annotate | Download | only in vmstat

Lines Matching defs:hist

2209 	struct kern_history hist, *histkva;
2230 histkva = LIST_NEXT(&hist, list)) {
2231 deref_kptr(histkva, &hist, sizeof(hist), "histkva");
2232 if (name == NULL || hist.namelen > namelen) {
2235 namelen = hist.namelen;
2240 deref_kptr(hist.name, name, namelen, "history name");
2253 hist_dodump(&hist);
2343 error = sysctlnametomib("kern.hist", mib, &miblen);
2349 err(EXIT_FAILURE, "nametomib kern.hist failed");
2352 /* get the list of nodenames below kern.hist */
2405 struct sysctl_history *hist;
2413 hist = NULL;
2417 if (sysctl(mib, miblen, hist, &histsize, NULL, 0) == 0)
2421 if ((hist = realloc(hist, histsize)) == NULL)
2427 strp = (char *)(&hist->sh_events[hist->sh_numentries]);
2430 hist->sh_numentries,
2431 hist->sh_nextfree);
2433 i = hist->sh_nextfree;
2436 e = &hist->sh_events[i];
2453 i = (i + 1) % hist->sh_numentries;
2454 } while (i != hist->sh_nextfree);
2456 free(hist);