blob: bd6cf61142beaf4eae68c8d88e10a51e6119b522 [file] [log] [blame]
Andrew Mortonf042e702011-05-26 16:25:24 -07001#ifndef VM_EVENT_ITEM_H_INCLUDED
2#define VM_EVENT_ITEM_H_INCLUDED
3
4#ifdef CONFIG_ZONE_DMA
5#define DMA_ZONE(xx) xx##_DMA,
6#else
7#define DMA_ZONE(xx)
8#endif
9
10#ifdef CONFIG_ZONE_DMA32
11#define DMA32_ZONE(xx) xx##_DMA32,
12#else
13#define DMA32_ZONE(xx)
14#endif
15
16#ifdef CONFIG_HIGHMEM
17#define HIGHMEM_ZONE(xx) , xx##_HIGH
18#else
19#define HIGHMEM_ZONE(xx)
20#endif
21
22#define FOR_ALL_ZONES(xx) DMA_ZONE(xx) DMA32_ZONE(xx) xx##_NORMAL HIGHMEM_ZONE(xx) , xx##_MOVABLE
23
24enum vm_event_item { PGPGIN, PGPGOUT, PSWPIN, PSWPOUT,
25 FOR_ALL_ZONES(PGALLOC),
26 PGFREE, PGACTIVATE, PGDEACTIVATE,
27 PGFAULT, PGMAJFAULT,
28 FOR_ALL_ZONES(PGREFILL),
Ying Han904249a2012-04-25 16:01:48 -070029 FOR_ALL_ZONES(PGSTEAL_KSWAPD),
30 FOR_ALL_ZONES(PGSTEAL_DIRECT),
Andrew Mortonf042e702011-05-26 16:25:24 -070031 FOR_ALL_ZONES(PGSCAN_KSWAPD),
32 FOR_ALL_ZONES(PGSCAN_DIRECT),
Mel Gorman68243e72012-07-31 16:44:39 -070033 PGSCAN_DIRECT_THROTTLE,
Andrew Mortonf042e702011-05-26 16:25:24 -070034#ifdef CONFIG_NUMA
35 PGSCAN_ZONE_RECLAIM_FAILED,
36#endif
Ying Han904249a2012-04-25 16:01:48 -070037 PGINODESTEAL, SLABS_SCANNED, KSWAPD_INODESTEAL,
Andrew Mortonf042e702011-05-26 16:25:24 -070038 KSWAPD_LOW_WMARK_HIT_QUICKLY, KSWAPD_HIGH_WMARK_HIT_QUICKLY,
Andrew Mortonf042e702011-05-26 16:25:24 -070039 PAGEOUTRUN, ALLOCSTALL, PGROTATED,
Mel Gorman03c5a6e2012-11-02 14:52:48 +000040#ifdef CONFIG_NUMA_BALANCING
41 NUMA_PTE_UPDATES,
42 NUMA_HINT_FAULTS,
43 NUMA_HINT_FAULTS_LOCAL,
44 NUMA_PAGE_MIGRATE,
45#endif
Mel Gorman5647bc22012-10-19 10:46:20 +010046#ifdef CONFIG_MIGRATION
47 PGMIGRATE_SUCCESS, PGMIGRATE_FAIL,
48#endif
Andrew Mortonf042e702011-05-26 16:25:24 -070049#ifdef CONFIG_COMPACTION
Mel Gorman397487d2012-10-19 12:00:10 +010050 COMPACTMIGRATE_SCANNED, COMPACTFREE_SCANNED,
51 COMPACTISOLATED,
Andrew Mortonf042e702011-05-26 16:25:24 -070052 COMPACTSTALL, COMPACTFAIL, COMPACTSUCCESS,
53#endif
54#ifdef CONFIG_HUGETLB_PAGE
55 HTLB_BUDDY_PGALLOC, HTLB_BUDDY_PGALLOC_FAIL,
56#endif
57 UNEVICTABLE_PGCULLED, /* culled to noreclaim list */
58 UNEVICTABLE_PGSCANNED, /* scanned for reclaimability */
59 UNEVICTABLE_PGRESCUED, /* rescued from noreclaim list */
60 UNEVICTABLE_PGMLOCKED,
61 UNEVICTABLE_PGMUNLOCKED,
62 UNEVICTABLE_PGCLEARED, /* on COW, page truncate */
63 UNEVICTABLE_PGSTRANDED, /* unable to isolate on unlock */
Andrew Mortonf042e702011-05-26 16:25:24 -070064#ifdef CONFIG_TRANSPARENT_HUGEPAGE
65 THP_FAULT_ALLOC,
66 THP_FAULT_FALLBACK,
67 THP_COLLAPSE_ALLOC,
68 THP_COLLAPSE_ALLOC_FAILED,
69 THP_SPLIT,
Kirill A. Shutemovd8a8e1f2012-12-12 13:51:09 -080070 THP_ZERO_PAGE_ALLOC,
71 THP_ZERO_PAGE_ALLOC_FAILED,
Andrew Mortonf042e702011-05-26 16:25:24 -070072#endif
73 NR_VM_EVENT_ITEMS
74};
75
76#endif /* VM_EVENT_ITEM_H_INCLUDED */