From: David Rientjes Date: Thu, 15 Oct 2009 09:20:22 +0000 (-0700) Subject: slub: allow stats to be cleared X-Git-Tag: v2.6.33-rc1~297^2^5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78eb00cc574d3dbf8e6bed804948a89e8110a064;p=pandora-kernel.git slub: allow stats to be cleared When collecting slub stats for particular workloads, it's necessary to collect each statistic for all caches before the job is even started because the counters are usually greater than zero just from boot and initialization. This allows a statistic to be cleared on each cpu by writing '0' to its sysfs file. This creates a baseline for statistics of interest before the workload is started. Setting a statistic to a particular value is not supported, so all values written to these files other than '0' returns -EINVAL. Cc: Christoph Lameter Signed-off-by: David Rientjes Signed-off-by: Pekka Enberg --- Reading git-diff-tree failed