Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
vm_event_item.h
Go to the documentation of this file.
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 
25  FOR_ALL_ZONES(PGALLOC),
28  FOR_ALL_ZONES(PGREFILL),
29  FOR_ALL_ZONES(PGSTEAL_KSWAPD),
30  FOR_ALL_ZONES(PGSTEAL_DIRECT),
31  FOR_ALL_ZONES(PGSCAN_KSWAPD),
32  FOR_ALL_ZONES(PGSCAN_DIRECT),
34 #ifdef CONFIG_NUMA
35  PGSCAN_ZONE_RECLAIM_FAILED,
36 #endif
41 #ifdef CONFIG_COMPACTION
42  COMPACTBLOCKS, COMPACTPAGES, COMPACTPAGEFAILED,
43  COMPACTSTALL, COMPACTFAIL, COMPACTSUCCESS,
44 #endif
45 #ifdef CONFIG_HUGETLB_PAGE
46  HTLB_BUDDY_PGALLOC, HTLB_BUDDY_PGALLOC_FAIL,
47 #endif
48  UNEVICTABLE_PGCULLED, /* culled to noreclaim list */
49  UNEVICTABLE_PGSCANNED, /* scanned for reclaimability */
50  UNEVICTABLE_PGRESCUED, /* rescued from noreclaim list */
53  UNEVICTABLE_PGCLEARED, /* on COW, page truncate */
54  UNEVICTABLE_PGSTRANDED, /* unable to isolate on unlock */
55 #ifdef CONFIG_TRANSPARENT_HUGEPAGE
56  THP_FAULT_ALLOC,
57  THP_FAULT_FALLBACK,
58  THP_COLLAPSE_ALLOC,
59  THP_COLLAPSE_ALLOC_FAILED,
60  THP_SPLIT,
61 #endif
63 };
64 
65 #endif /* VM_EVENT_ITEM_H_INCLUDED */