Re: [patch] slub: allow stats to be cleared

From: David Rientjes
Date: Tue Oct 20 2009 - 17:41:42 EST


On Sat, 17 Oct 2009, Christoph Lameter wrote:

> I'd also like to be able to just do a single echo
> to clear the all stats instead of everyone trying to improvise something
> to touch all files. Its highly unlikely that one only wants to zero
> individual counters. One way to reset them all would suffice.
>

Ok, once the stat files are moved to their own directory, I'll make a note
to add a writable `clear' file that will do

for (i = 0; i < NR_SLUB_STAT_ITEMS; i++)
clear_stat(s, i);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/