diff options
author | Davidlohr Bueso <dave@stgolabs.net> | 2014-12-12 19:56:10 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-12-13 15:42:48 -0500 |
commit | f5f302e21257ebb0c074bbafc37606c26d28cc3d (patch) | |
tree | 9487dd9bdf2df8a1989af3dde28d64b84f04ede5 /mm/vmacache.c | |
parent | 16a7ade8af3b4ad30aec880177ff291bb5ea86d1 (diff) |
mm,vmacache: count number of system-wide flushes
These flushes deal with sequence number overflows, such as for long lived
threads. These are rare, but interesting from a debugging PoV. As such,
display the number of flushes when vmacache debugging is enabled.
Signed-off-by: Davidlohr Bueso <dbueso@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/vmacache.c')
-rw-r--r-- | mm/vmacache.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 |