|
|
069461a |
diff --exclude-from=exclude -N -u -r nsalibselinux/utils/avcstat.c libselinux-1.30.6/utils/avcstat.c
|
|
|
069461a |
--- nsalibselinux/utils/avcstat.c 2005-05-19 15:24:25.000000000 -0400
|
|
|
069461a |
+++ libselinux-1.30.6/utils/avcstat.c 2006-05-09 15:09:13.000000000 -0400
|
|
|
069461a |
@@ -27,12 +27,12 @@
|
|
|
069461a |
#define HEADERS "lookups hits misses allocations reclaims frees"
|
|
|
069461a |
|
|
|
069461a |
struct avc_cache_stats {
|
|
|
069461a |
- unsigned int lookups;
|
|
|
069461a |
- unsigned int hits;
|
|
|
069461a |
- unsigned int misses;
|
|
|
069461a |
- unsigned int allocations;
|
|
|
069461a |
- unsigned int reclaims;
|
|
|
069461a |
- unsigned int frees;
|
|
|
069461a |
+ unsigned long long lookups;
|
|
|
069461a |
+ unsigned long long hits;
|
|
|
069461a |
+ unsigned long long misses;
|
|
|
069461a |
+ unsigned long long allocations;
|
|
|
069461a |
+ unsigned long long reclaims;
|
|
|
069461a |
+ unsigned long long frees;
|
|
|
069461a |
};
|
|
|
069461a |
|
|
|
069461a |
static int interval;
|
|
|
069461a |
@@ -172,7 +172,7 @@
|
|
|
069461a |
while ((line = strtok(NULL, "\n"))) {
|
|
|
069461a |
struct avc_cache_stats tmp;
|
|
|
069461a |
|
|
|
069461a |
- ret = sscanf(line, "%u %u %u %u %u %u",
|
|
|
069461a |
+ ret = sscanf(line, "%Lu %Lu %Lu %Lu %Lu %Lu",
|
|
|
069461a |
&tmp.lookups,
|
|
|
069461a |
&tmp.hits,
|
|
|
069461a |
&tmp.misses,
|
|
|
069461a |
@@ -195,7 +195,7 @@
|
|
|
069461a |
die("unable to parse \'%s\': no data", avcstatfile);
|
|
|
069461a |
|
|
|
069461a |
if (cumulative || (!cumulative && !i))
|
|
|
069461a |
- printf("%10u %10u %10u %10u %10u %10u\n",
|
|
|
069461a |
+ printf("%10Lu %10Lu %10Lu %10Lu %10Lu %10Lu\n",
|
|
|
069461a |
tot.lookups, tot.hits, tot.misses,
|
|
|
069461a |
tot.allocations, tot.reclaims, tot.frees);
|
|
|
069461a |
else {
|
|
|
069461a |
@@ -205,7 +205,7 @@
|
|
|
069461a |
rel.allocations = tot.allocations - last.allocations;
|
|
|
069461a |
rel.reclaims = tot.reclaims - last.reclaims;
|
|
|
069461a |
rel.frees = tot.frees - last.frees;
|
|
|
069461a |
- printf("%10u %10u %10u %10u %10u %10u\n",
|
|
|
069461a |
+ printf("%10Lu %10Lu %10Lu %10Lu %10Lu %10Lu\n",
|
|
|
069461a |
rel.lookups, rel.hits, rel.misses,
|
|
|
069461a |
rel.allocations, rel.reclaims, rel.frees);
|
|
|
98a597a |
}
|