From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Thu, 9 Aug 2001 03:45:47 -0300 (BRT) From: Marcelo Tosatti Subject: vmstats patch against 2.4.8pre7 and new userlevel hack Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org Return-Path: To: lkml Cc: Andrew Morton , Zach Brown , linux-mm@kvack.org List-ID: Hi, 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, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/