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), |
| 33 | #ifdef CONFIG_NUMA |
| 34 | PGSCAN_ZONE_RECLAIM_FAILED, |
| 35 | #endif |
Ying Han | 904249a | 2012-04-25 16:01:48 -0700 | [diff] [blame] | 36 | PGINODESTEAL, SLABS_SCANNED, KSWAPD_INODESTEAL, |
Andrew Morton | f042e70 | 2011-05-26 16:25:24 -0700 | [diff] [blame] | 37 | KSWAPD_LOW_WMARK_HIT_QUICKLY, KSWAPD_HIGH_WMARK_HIT_QUICKLY, |
| 38 | KSWAPD_SKIP_CONGESTION_WAIT, |
| 39 | PAGEOUTRUN, ALLOCSTALL, PGROTATED, |
Mel Gorman | cd9bb9b | 2012-10-19 10:46:20 +0100 | [diff] [blame^] | 40 | #ifdef CONFIG_MIGRATION |
| 41 | PGMIGRATE_SUCCESS, PGMIGRATE_FAIL, |
| 42 | #endif |
Andrew Morton | f042e70 | 2011-05-26 16:25:24 -0700 | [diff] [blame] | 43 | #ifdef CONFIG_COMPACTION |
Andrew Morton | f042e70 | 2011-05-26 16:25:24 -0700 | [diff] [blame] | 44 | COMPACTSTALL, COMPACTFAIL, COMPACTSUCCESS, |
| 45 | #endif |
| 46 | #ifdef CONFIG_HUGETLB_PAGE |
| 47 | HTLB_BUDDY_PGALLOC, HTLB_BUDDY_PGALLOC_FAIL, |
| 48 | #endif |
| 49 | UNEVICTABLE_PGCULLED, /* culled to noreclaim list */ |
| 50 | UNEVICTABLE_PGSCANNED, /* scanned for reclaimability */ |
| 51 | UNEVICTABLE_PGRESCUED, /* rescued from noreclaim list */ |
| 52 | UNEVICTABLE_PGMLOCKED, |
| 53 | UNEVICTABLE_PGMUNLOCKED, |
| 54 | UNEVICTABLE_PGCLEARED, /* on COW, page truncate */ |
| 55 | UNEVICTABLE_PGSTRANDED, /* unable to isolate on unlock */ |
| 56 | UNEVICTABLE_MLOCKFREED, |
| 57 | #ifdef CONFIG_TRANSPARENT_HUGEPAGE |
| 58 | THP_FAULT_ALLOC, |
| 59 | THP_FAULT_FALLBACK, |
| 60 | THP_COLLAPSE_ALLOC, |
| 61 | THP_COLLAPSE_ALLOC_FAILED, |
| 62 | THP_SPLIT, |
| 63 | #endif |
| 64 | NR_VM_EVENT_ITEMS |
| 65 | }; |
| 66 | |
| 67 | #endif /* VM_EVENT_ITEM_H_INCLUDED */ |