Lines Matching defs:nch_stats
886 struct nchstats nch_stats;
1088 ssize = sizeof(nch_stats);
1089 if (sysctlbyname("vfs.namecache_stats", &nch_stats, &ssize,
1092 memset(&nch_stats, 0, sizeof(nch_stats));
1095 kread(namelist, X_NCHSTATS, &nch_stats, sizeof(nch_stats));
1098 nchtotal = nch_stats.ncs_goodhits + nch_stats.ncs_neghits +
1099 nch_stats.ncs_badhits + nch_stats.ncs_falsehits +
1100 nch_stats.ncs_miss + nch_stats.ncs_long;
1102 (void)printf("%9" PRIu64 " good hits\n", nch_stats.ncs_goodhits);
1103 (void)printf("%9" PRIu64 " negative hits\n", nch_stats.ncs_neghits);
1104 (void)printf("%9" PRIu64 " bad hits\n", nch_stats.ncs_badhits);
1105 (void)printf("%9" PRIu64 " false hits\n", nch_stats.ncs_falsehits);
1106 (void)printf("%9" PRIu64 " miss\n", nch_stats.ncs_miss);
1107 (void)printf("%9" PRIu64 " too long\n", nch_stats.ncs_long);
1108 (void)printf("%9" PRIu64 " pass2 hits\n", nch_stats.ncs_pass2);
1109 (void)printf("%9" PRIu64 " 2passes\n", nch_stats.ncs_2passes);
1110 (void)printf("%9" PRIu64 " reverse hits\n", nch_stats.ncs_revhits);
1111 (void)printf("%9" PRIu64 " reverse miss\n", nch_stats.ncs_revmiss);
1112 (void)printf("%9" PRIu64 " access denied\n", nch_stats.ncs_denied);
1115 "", PCT(nch_stats.ncs_goodhits, nchtotal),
1116 PCT(nch_stats.ncs_neghits, nchtotal),
1117 PCT(nch_stats.ncs_pass2, nchtotal));
1119 PCT(nch_stats.ncs_badhits, nchtotal),
1120 PCT(nch_stats.ncs_falsehits, nchtotal),
1121 PCT(nch_stats.ncs_long, nchtotal));