Andrew Morton | f042e70 | 2011-05-26 16:25:24 -0700 | [diff] [blame] | 1 | #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 | |
| 24 | enum 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 Han | 904249a | 2012-04-25 16:01:48 -0700 | [diff] [blame] | 29 | FOR_ALL_ZONES(PGSTEAL_KSWAPD), |
| 30 | FOR_ALL_ZONES(PGSTEAL_DIRECT), |
Andrew Morton | f042e70 | 2011-05-26 16:25:24 -0700 | [diff] [blame] | 31 | FOR_ALL_ZONES(PGSCAN_KSWAPD), |
| 32 | FOR_ALL_ZONES(PGSCAN_DIRECT), |
Mel Gorman | 68243e7 | 2012-07-31 16:44:39 -0700 | [diff] [blame] | 33 | PGSCAN_DIRECT_THROTTLE, |
Andrew Morton | f042e70 | 2011-05-26 16:25:24 -0700 | [diff] [blame] | 34 | #ifdef CONFIG_NUMA |
| 35 | PGSCAN_ZONE_RECLAIM_FAILED, |
| 36 | #endif |
Ying Han | 904249a | 2012-04-25 16:01:48 -0700 | [diff] [blame] | 37 | PGINODESTEAL, SLABS_SCANNED, KSWAPD_INODESTEAL, |
Andrew Morton | f042e70 | 2011-05-26 16:25:24 -0700 | [diff] [blame] | 38 | KSWAPD_LOW_WMARK_HIT_QUICKLY, KSWAPD_HIGH_WMARK_HIT_QUICKLY, |
Andrew Morton | f042e70 | 2011-05-26 16:25:24 -0700 | [diff] [blame] | 39 | PAGEOUTRUN, ALLOCSTALL, PGROTATED, |
Dave Hansen | 5509a5d | 2014-04-03 14:48:19 -0700 | [diff] [blame] | 40 | DROP_PAGECACHE, DROP_SLAB, |
Mel Gorman | 03c5a6e | 2012-11-02 14:52:48 +0000 | [diff] [blame] | 41 | #ifdef CONFIG_NUMA_BALANCING |
| 42 | NUMA_PTE_UPDATES, |
Mel Gorman | 72403b4 | 2013-11-12 15:08:32 -0800 | [diff] [blame] | 43 | NUMA_HUGE_PTE_UPDATES, |
Mel Gorman | 03c5a6e | 2012-11-02 14:52:48 +0000 | [diff] [blame] | 44 | NUMA_HINT_FAULTS, |
| 45 | NUMA_HINT_FAULTS_LOCAL, |
| 46 | NUMA_PAGE_MIGRATE, |
| 47 | #endif |
Mel Gorman | 5647bc2 | 2012-10-19 10:46:20 +0100 | [diff] [blame] | 48 | #ifdef CONFIG_MIGRATION |
| 49 | PGMIGRATE_SUCCESS, PGMIGRATE_FAIL, |
| 50 | #endif |
Andrew Morton | f042e70 | 2011-05-26 16:25:24 -0700 | [diff] [blame] | 51 | #ifdef CONFIG_COMPACTION |
Mel Gorman | 397487d | 2012-10-19 12:00:10 +0100 | [diff] [blame] | 52 | COMPACTMIGRATE_SCANNED, COMPACTFREE_SCANNED, |
| 53 | COMPACTISOLATED, |
Andrew Morton | f042e70 | 2011-05-26 16:25:24 -0700 | [diff] [blame] | 54 | COMPACTSTALL, COMPACTFAIL, COMPACTSUCCESS, |
| 55 | #endif |
| 56 | #ifdef CONFIG_HUGETLB_PAGE |
| 57 | HTLB_BUDDY_PGALLOC, HTLB_BUDDY_PGALLOC_FAIL, |
| 58 | #endif |
| 59 | UNEVICTABLE_PGCULLED, /* culled to noreclaim list */ |
| 60 | UNEVICTABLE_PGSCANNED, /* scanned for reclaimability */ |
| 61 | UNEVICTABLE_PGRESCUED, /* rescued from noreclaim list */ |
| 62 | UNEVICTABLE_PGMLOCKED, |
| 63 | UNEVICTABLE_PGMUNLOCKED, |
| 64 | UNEVICTABLE_PGCLEARED, /* on COW, page truncate */ |
| 65 | UNEVICTABLE_PGSTRANDED, /* unable to isolate on unlock */ |
Andrew Morton | f042e70 | 2011-05-26 16:25:24 -0700 | [diff] [blame] | 66 | #ifdef CONFIG_TRANSPARENT_HUGEPAGE |
| 67 | THP_FAULT_ALLOC, |
| 68 | THP_FAULT_FALLBACK, |
| 69 | THP_COLLAPSE_ALLOC, |
| 70 | THP_COLLAPSE_ALLOC_FAILED, |
| 71 | THP_SPLIT, |
Kirill A. Shutemov | d8a8e1f | 2012-12-12 13:51:09 -0800 | [diff] [blame] | 72 | THP_ZERO_PAGE_ALLOC, |
| 73 | THP_ZERO_PAGE_ALLOC_FAILED, |
Andrew Morton | f042e70 | 2011-05-26 16:25:24 -0700 | [diff] [blame] | 74 | #endif |
Mel Gorman | ec65993 | 2014-01-21 14:33:16 -0800 | [diff] [blame] | 75 | #ifdef CONFIG_DEBUG_TLBFLUSH |
Dave Hansen | 6df4686 | 2013-09-11 14:20:24 -0700 | [diff] [blame] | 76 | #ifdef CONFIG_SMP |
Dave Hansen | 9824cf9 | 2013-09-11 14:20:23 -0700 | [diff] [blame] | 77 | NR_TLB_REMOTE_FLUSH, /* cpu tried to flush others' tlbs */ |
| 78 | NR_TLB_REMOTE_FLUSH_RECEIVED,/* cpu received ipi for flush */ |
Mel Gorman | ec65993 | 2014-01-21 14:33:16 -0800 | [diff] [blame] | 79 | #endif /* CONFIG_SMP */ |
Dave Hansen | 9824cf9 | 2013-09-11 14:20:23 -0700 | [diff] [blame] | 80 | NR_TLB_LOCAL_FLUSH_ALL, |
| 81 | NR_TLB_LOCAL_FLUSH_ONE, |
Mel Gorman | ec65993 | 2014-01-21 14:33:16 -0800 | [diff] [blame] | 82 | #endif /* CONFIG_DEBUG_TLBFLUSH */ |
Andrew Morton | f042e70 | 2011-05-26 16:25:24 -0700 | [diff] [blame] | 83 | NR_VM_EVENT_ITEMS |
| 84 | }; |
| 85 | |
| 86 | #endif /* VM_EVENT_ITEM_H_INCLUDED */ |