Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1764019AbYCGJNB (ORCPT ); Fri, 7 Mar 2008 04:13:01 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1761966AbYCGJHd (ORCPT ); Fri, 7 Mar 2008 04:07:33 -0500 Received: from smtp-out03.alice-dsl.net ([88.44.63.5]:62722 "EHLO smtp-out03.alice-dsl.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761622AbYCGJH1 (ORCPT ); Fri, 7 Mar 2008 04:07:27 -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] [12/13] Add vmstat statistics for new swiotlb code Message-Id: <20080307090722.B6BCE1B419C@basil.firstfloor.org> Date: Fri, 7 Mar 2008 10:07:22 +0100 (CET) X-OriginalArrivalTime: 07 Mar 2008 09:00:52.0447 (UTC) FILETIME=[BEE4AEF0:01C88031] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1309 Lines: 45 Signed-off-by: Andi Kleen --- include/linux/vmstat.h | 4 ++++ mm/vmstat.c | 6 ++++++ 2 files changed, 10 insertions(+) Index: linux/include/linux/vmstat.h =================================================================== --- linux.orig/include/linux/vmstat.h +++ linux/include/linux/vmstat.h @@ -41,6 +41,10 @@ enum vm_event_item { PGPGIN, PGPGOUT, PS MASK_ALLOC, MASK_FREE, MASK_BITMAP_SKIP, MASK_WAIT, MASK_HIGHER, MASK_LOW_WASTE, MASK_HIGH_WASTE, #endif +#ifdef CONFIG_SWIOTLB_MASK_ALLOC + SWIOTLB_USED_PAGES, SWIOTLB_BYTES_WASTED, SWIOTLB_NUM_ALLOCS, + SWIOTLB_NUM_FREES, +#endif NR_VM_EVENT_ITEMS }; Index: linux/mm/vmstat.c =================================================================== --- linux.orig/mm/vmstat.c +++ linux/mm/vmstat.c @@ -654,6 +654,12 @@ static const char * const vmstat_text[] "mask_low_waste", "mask_high_waste", #endif +#ifdef CONFIG_SWIOTLB_MASK_ALLOC + "swiotlb_used_pages", + "swiotlb_bytes_wasted", + "swiotlb_num_allocs", + "swiotlb_num_frees", +#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/