Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1763730AbYCGJJ4 (ORCPT ); Fri, 7 Mar 2008 04:09:56 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1760013AbYCGJH2 (ORCPT ); Fri, 7 Mar 2008 04:07:28 -0500 Received: from smtp-out02.alice-dsl.net ([88.44.60.12]:21250 "EHLO smtp-out02.alice-dsl.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759850AbYCGJHS (ORCPT ); Fri, 7 Mar 2008 04:07:18 -0500 From: Andi Kleen References: <200803071007.493903088@firstfloor.org> In-Reply-To: <200803071007.493903088@firstfloor.org> To: linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: [PATCH] [5/13] Add mask allocator statistics to vmstat.[ch] Message-Id: <20080307090715.9872F1B419C@basil.firstfloor.org> Date: Fri, 7 Mar 2008 10:07:15 +0100 (CET) X-OriginalArrivalTime: 07 Mar 2008 09:00:45.0322 (UTC) FILETIME=[BAA57EA0:01C88031] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1490 Lines: 54 They are a bit on the extensive side now, but I figured out more data is better for now. The actual counts are added in the new files. Signed-off-by: Andi Kleen --- include/linux/vmstat.h | 4 ++++ mm/vmstat.c | 10 ++++++++++ 2 files changed, 14 insertions(+) Index: linux/include/linux/vmstat.h =================================================================== --- linux.orig/include/linux/vmstat.h +++ linux/include/linux/vmstat.h @@ -37,6 +37,10 @@ enum vm_event_item { PGPGIN, PGPGOUT, PS FOR_ALL_ZONES(PGSCAN_DIRECT), PGINODESTEAL, SLABS_SCANNED, KSWAPD_STEAL, KSWAPD_INODESTEAL, PAGEOUTRUN, ALLOCSTALL, PGROTATED, +#ifdef CONFIG_MASK_ALLOC + MASK_ALLOC, MASK_FREE, MASK_BITMAP_SKIP, MASK_WAIT, + MASK_HIGHER, MASK_LOW_WASTE, MASK_HIGH_WASTE, +#endif NR_VM_EVENT_ITEMS }; Index: linux/mm/vmstat.c =================================================================== --- linux.orig/mm/vmstat.c +++ linux/mm/vmstat.c @@ -644,6 +644,16 @@ static const char * const vmstat_text[] "allocstall", "pgrotated", + +#ifdef CONFIG_MASK_ALLOC + "mask_alloc", + "mask_free", + "mask_bitmap_skip", + "mask_wait", + "mask_higher", + "mask_low_waste", + "mask_high_waste", +#endif #endif }; -- 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/