lkml.org 
[lkml]   [2008]   [Mar]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] [12/13] Add vmstat statistics for new swiotlb code
Date

Signed-off-by: Andi Kleen <ak@suse.de>

---
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
};


\
 
 \ /
  Last update: 2008-03-07 10:15    [W:0.248 / U:1.352 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site