3 #include <sys/sysctl.h>
13 #include "../../sys/sys/dsched.h"
18 struct dsched_stats dsched_stats;
19 size_t n = sizeof(struct dsched_stats);
21 if (sysctlbyname("dsched.stats", &dsched_stats, &n, NULL, 0) != 0)
22 err(1, "sysctlbyname");
24 printf( "Allocations\n"
28 "---------------------------------------------\n"
29 "Procs/Threads tracked\n"
32 "---------------------------------------------\n"
34 "w/o thread_ctx:\t%d\n",
36 dsched_stats.tdctx_allocations,
37 dsched_stats.tdio_allocations,
38 dsched_stats.diskctx_allocations,
41 dsched_stats.nthreads,