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
,
28 FOR_ALL_ZONES(PGREFILL
),
29 FOR_ALL_ZONES(PGSTEAL
),
30 FOR_ALL_ZONES(PGSCAN_KSWAPD
),
31 FOR_ALL_ZONES(PGSCAN_DIRECT
),
33 PGSCAN_ZONE_RECLAIM_FAILED
,
35 PGINODESTEAL
, SLABS_SCANNED
, KSWAPD_STEAL
, KSWAPD_INODESTEAL
,
36 KSWAPD_LOW_WMARK_HIT_QUICKLY
, KSWAPD_HIGH_WMARK_HIT_QUICKLY
,
37 KSWAPD_SKIP_CONGESTION_WAIT
,
38 PAGEOUTRUN
, ALLOCSTALL
, PGROTATED
,
39 #ifdef CONFIG_COMPACTION
40 COMPACTBLOCKS
, COMPACTPAGES
, COMPACTPAGEFAILED
,
41 COMPACTSTALL
, COMPACTFAIL
, COMPACTSUCCESS
,
43 #ifdef CONFIG_HUGETLB_PAGE
44 HTLB_BUDDY_PGALLOC
, HTLB_BUDDY_PGALLOC_FAIL
,
46 UNEVICTABLE_PGCULLED
, /* culled to noreclaim list */
47 UNEVICTABLE_PGSCANNED
, /* scanned for reclaimability */
48 UNEVICTABLE_PGRESCUED
, /* rescued from noreclaim list */
49 UNEVICTABLE_PGMLOCKED
,
50 UNEVICTABLE_PGMUNLOCKED
,
51 UNEVICTABLE_PGCLEARED
, /* on COW, page truncate */
52 UNEVICTABLE_PGSTRANDED
, /* unable to isolate on unlock */
53 UNEVICTABLE_MLOCKFREED
,
54 #ifdef CONFIG_TRANSPARENT_HUGEPAGE
58 THP_COLLAPSE_ALLOC_FAILED
,
64 #endif /* VM_EVENT_ITEM_H_INCLUDED */