summaryrefslogtreecommitdiffstats
path: root/include/linux/vm_event_item.h
diff options
context:
space:
mode:
authorSuren Baghdasaryan <surenb@google.com>2023-02-27 09:36:27 -0800
committerAndrew Morton <akpm@linux-foundation.org>2023-04-05 20:03:01 -0700
commit52f238653e452e0fda61e880f263a173d219acd1 (patch)
tree199cd083cb781048caaea10f3301280fcc7d2540 /include/linux/vm_event_item.h
parent444eeb17437a0ef526c606e9141a415d3b7dfddd (diff)
downloadlinux-stable-52f238653e452e0fda61e880f263a173d219acd1.tar.gz
linux-stable-52f238653e452e0fda61e880f263a173d219acd1.tar.bz2
linux-stable-52f238653e452e0fda61e880f263a173d219acd1.zip
mm: introduce per-VMA lock statistics
Add a new CONFIG_PER_VMA_LOCK_STATS config option to dump extra statistics about handling page fault under VMA lock. Link: https://lkml.kernel.org/r/20230227173632.3292573-29-surenb@google.com Signed-off-by: Suren Baghdasaryan <surenb@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'include/linux/vm_event_item.h')
-rw-r--r--include/linux/vm_event_item.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/vm_event_item.h b/include/linux/vm_event_item.h
index 7f5d1caf5890..8abfa1240040 100644
--- a/include/linux/vm_event_item.h
+++ b/include/linux/vm_event_item.h
@@ -150,6 +150,12 @@ enum vm_event_item { PGPGIN, PGPGOUT, PSWPIN, PSWPOUT,
DIRECT_MAP_LEVEL2_SPLIT,
DIRECT_MAP_LEVEL3_SPLIT,
#endif
+#ifdef CONFIG_PER_VMA_LOCK_STATS
+ VMA_LOCK_SUCCESS,
+ VMA_LOCK_ABORT,
+ VMA_LOCK_RETRY,
+ VMA_LOCK_MISS,
+#endif
NR_VM_EVENT_ITEMS
};