1 #ifndef VM_EVENT_ITEM_H_INCLUDED
2 #define VM_EVENT_ITEM_H_INCLUDED
5 #define DMA_ZONE(xx) xx##_DMA,
10 #ifdef CONFIG_ZONE_DMA32
11 #define DMA32_ZONE(xx) xx##_DMA32,
13 #define DMA32_ZONE(xx)
17 #define HIGHMEM_ZONE(xx) xx##_HIGH,
19 #define HIGHMEM_ZONE(xx)
22 #define FOR_ALL_ZONES(xx) DMA_ZONE(xx) DMA32_ZONE(xx) xx##_NORMAL, HIGHMEM_ZONE(xx) xx##_MOVABLE
24 enum vm_event_item
{ PGPGIN
, PGPGOUT
, PSWPIN
, PSWPOUT
,
25 FOR_ALL_ZONES(PGALLOC
),
26 PGFREE
, PGACTIVATE
, PGDEACTIVATE
,
29 FOR_ALL_ZONES(PGREFILL
),
30 FOR_ALL_ZONES(PGSTEAL_KSWAPD
),
31 FOR_ALL_ZONES(PGSTEAL_DIRECT
),
32 FOR_ALL_ZONES(PGSCAN_KSWAPD
),
33 FOR_ALL_ZONES(PGSCAN_DIRECT
),
34 PGSCAN_DIRECT_THROTTLE
,
36 PGSCAN_ZONE_RECLAIM_FAILED
,
38 PGINODESTEAL
, SLABS_SCANNED
, KSWAPD_INODESTEAL
,
39 KSWAPD_LOW_WMARK_HIT_QUICKLY
, KSWAPD_HIGH_WMARK_HIT_QUICKLY
,
40 PAGEOUTRUN
, ALLOCSTALL
, PGROTATED
,
41 DROP_PAGECACHE
, DROP_SLAB
,
42 #ifdef CONFIG_NUMA_BALANCING
44 NUMA_HUGE_PTE_UPDATES
,
46 NUMA_HINT_FAULTS_LOCAL
,
49 #ifdef CONFIG_MIGRATION
50 PGMIGRATE_SUCCESS
, PGMIGRATE_FAIL
,
52 #ifdef CONFIG_COMPACTION
53 COMPACTMIGRATE_SCANNED
, COMPACTFREE_SCANNED
,
55 COMPACTSTALL
, COMPACTFAIL
, COMPACTSUCCESS
,
58 #ifdef CONFIG_HUGETLB_PAGE
59 HTLB_BUDDY_PGALLOC
, HTLB_BUDDY_PGALLOC_FAIL
,
61 UNEVICTABLE_PGCULLED
, /* culled to noreclaim list */
62 UNEVICTABLE_PGSCANNED
, /* scanned for reclaimability */
63 UNEVICTABLE_PGRESCUED
, /* rescued from noreclaim list */
64 UNEVICTABLE_PGMLOCKED
,
65 UNEVICTABLE_PGMUNLOCKED
,
66 UNEVICTABLE_PGCLEARED
, /* on COW, page truncate */
67 UNEVICTABLE_PGSTRANDED
, /* unable to isolate on unlock */
68 #ifdef CONFIG_TRANSPARENT_HUGEPAGE
72 THP_COLLAPSE_ALLOC_FAILED
,
74 THP_SPLIT_PAGE_FAILED
,
75 THP_DEFERRED_SPLIT_PAGE
,
78 THP_ZERO_PAGE_ALLOC_FAILED
,
80 #ifdef CONFIG_MEMORY_BALLOON
83 #ifdef CONFIG_BALLOON_COMPACTION
87 #ifdef CONFIG_DEBUG_TLBFLUSH
89 NR_TLB_REMOTE_FLUSH
, /* cpu tried to flush others' tlbs */
90 NR_TLB_REMOTE_FLUSH_RECEIVED
,/* cpu received ipi for flush */
91 #endif /* CONFIG_SMP */
92 NR_TLB_LOCAL_FLUSH_ALL
,
93 NR_TLB_LOCAL_FLUSH_ONE
,
94 #endif /* CONFIG_DEBUG_TLBFLUSH */
95 #ifdef CONFIG_DEBUG_VM_VMACACHE
98 VMACACHE_FULL_FLUSHES
,
103 #endif /* VM_EVENT_ITEM_H_INCLUDED */