diff options
-rw-r--r-- | include/linux/vm_event_item.h | 1 | ||||
-rw-r--r-- | mm/vmacache.c | 2 | ||||
-rw-r--r-- | mm/vmstat.c | 1 |
3 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/vm_event_item.h b/include/linux/vm_event_item.h index 730334cdf037..9246d32dc973 100644 --- a/include/linux/vm_event_item.h +++ b/include/linux/vm_event_item.h | |||
@@ -90,6 +90,7 @@ enum vm_event_item { PGPGIN, PGPGOUT, PSWPIN, PSWPOUT, | |||
90 | #ifdef CONFIG_DEBUG_VM_VMACACHE | 90 | #ifdef CONFIG_DEBUG_VM_VMACACHE |
91 | VMACACHE_FIND_CALLS, | 91 | VMACACHE_FIND_CALLS, |
92 | VMACACHE_FIND_HITS, | 92 | VMACACHE_FIND_HITS, |
93 | VMACACHE_FULL_FLUSHES, | ||
93 | #endif | 94 | #endif |
94 | NR_VM_EVENT_ITEMS | 95 | NR_VM_EVENT_ITEMS |
95 | }; | 96 | }; |
diff --git a/mm/vmacache.c b/mm/vmacache.c index 9f25af825dec..b6e3662fe339 100644 --- a/mm/vmacache.c +++ b/mm/vmacache.c | |||
@@ -17,6 +17,8 @@ void vmacache_flush_all(struct mm_struct *mm) | |||
17 | { | 17 | { |
18 | struct task_struct *g, *p; | 18 | struct task_struct *g, *p; |
19 | 19 | ||
20 | count_vm_vmacache_event(VMACACHE_FULL_FLUSHES); | ||
21 | |||
20 | /* | 22 | /* |
21 | * Single threaded tasks need not iterate the entire | 23 | * Single threaded tasks need not iterate the entire |
22 | * list of process. We can avoid the flushing as well | 24 | * list of process. We can avoid the flushing as well |
diff --git a/mm/vmstat.c b/mm/vmstat.c index b090e9e3d626..1284f89fca08 100644 --- a/mm/vmstat.c +++ b/mm/vmstat.c | |||
@@ -900,6 +900,7 @@ const char * const vmstat_text[] = { | |||
900 | #ifdef CONFIG_DEBUG_VM_VMACACHE | 900 | #ifdef CONFIG_DEBUG_VM_VMACACHE |
901 | "vmacache_find_calls", | 901 | "vmacache_find_calls", |
902 | "vmacache_find_hits", | 902 | "vmacache_find_hits", |
903 | "vmacache_full_flushes", | ||
903 | #endif | 904 | #endif |
904 | #endif /* CONFIG_VM_EVENTS_COUNTERS */ | 905 | #endif /* CONFIG_VM_EVENTS_COUNTERS */ |
905 | }; | 906 | }; |