I've updated the vmstats patch to use Andrew Morton's statcount facilities
(which is in initial development state). I've also removed/added some
statistics due to VM changes.
On the userlevel side, I got zab's cpustat nice tool and transformed it
into an ugly hack which allows me to easily add/remove statistic
counters.
Adding a new statistic counter just needs (on the kernel side):
VMSTAT(stat_name); (for global stats)
or
VMSTAT_ZONE(zone, stat_name); (for perzone stats)
On userlevel side, one line with corresponding stat_name, plus the field
name to be reported in the userlevel tool output for the given stat.
Easy.
The patch including the statcounts facilities
http://bazar.conectiva.com.br/~marcelo/patches/v2.4/2.4.8pre7/vmstats.patch
The userlevel tool
http://bazar.conectiva.com.br/~marcelo/nvmstat-0.1/nvmstat-0.1.tar.gz
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/