avc_cache_statsSection: SE Linux API documentation (3)Updated: 27 May 2004 |
avc_cache_statsSection: SE Linux API documentation (3)Updated: 27 May 2004 |
void avc_av_stats(void);
void avc_sid_stats(void);
void avc_cache_stats(struct avc_cache_stats *stats);
avc_av_stats and avc_sid_stats produce log messages indicating the status of the access decision and SID tables, respectively. The messages contain the number of entries in the table, number of hash buckets and number of buckets used, and maximum number of entries in a single bucket.
avc_cache_stats populates a structure whose fields reflect cache activity:
struct avc_cache_stats {
unsigned entry_lookups;
unsigned entry_hits;
unsigned entry_misses;
unsigned entry_discards;
unsigned cav_lookups;
unsigned cav_hits;
unsigned cav_probes;
unsigned cav_misses;
};
When a policy change notification is received, a call to avc_av_stats is made before the cache is flushed.