Lines Matching refs:kcage_stats
96 struct kcage_stats { struct
141 static struct kcage_stats kcage_stats; variable
149 #define KCAGE_STAT_INCR(m) kcage_stats.m++
151 #define KCAGE_STAT_NINCR(m, v) kcage_stats.m += (v)
154 KCAGE_STAT_INCR(scans[kcage_stats.scan_index].m)
157 KCAGE_STAT_NINCR(scans[kcage_stats.scan_index].m, v)
159 #define KCAGE_STAT_SET(m, v) kcage_stats.m = (v)
162 if (kcage_stats.m == 0) kcage_stats.m = (v)
165 KCAGE_STAT_SET(scans[kcage_stats.scan_index].m, v)
168 KCAGE_STAT_SETZ(scans[kcage_stats.scan_index].m, v)
172 KCAGE_STAT_SET_SCAN(scan_id, kcage_stats.scan_index); \
173 kcage_stats.scan_index = \
174 (kcage_stats.scan_index + 1) % KCAGE_STATS_NSCANS; \
175 kcage_stats.scans[kcage_stats.scan_index] = kcage_stats_scan_zero
178 kcage_stats.version = KCAGE_STATS_VERSION; \
179 kcage_stats.size = sizeof (kcage_stats); \
180 kcage_stats.scan_array_size = KCAGE_STATS_NSCANS; \
181 kcage_stats.scan_index = 0