2011-05-27 06:25:24 +07:00
|
|
|
#ifndef VM_EVENT_ITEM_H_INCLUDED
|
|
|
|
#define VM_EVENT_ITEM_H_INCLUDED
|
|
|
|
|
|
|
|
#ifdef CONFIG_ZONE_DMA
|
|
|
|
#define DMA_ZONE(xx) xx##_DMA,
|
|
|
|
#else
|
|
|
|
#define DMA_ZONE(xx)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_ZONE_DMA32
|
|
|
|
#define DMA32_ZONE(xx) xx##_DMA32,
|
|
|
|
#else
|
|
|
|
#define DMA32_ZONE(xx)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_HIGHMEM
|
2015-11-06 09:48:50 +07:00
|
|
|
#define HIGHMEM_ZONE(xx) xx##_HIGH,
|
2011-05-27 06:25:24 +07:00
|
|
|
#else
|
|
|
|
#define HIGHMEM_ZONE(xx)
|
|
|
|
#endif
|
|
|
|
|
2015-11-06 09:48:50 +07:00
|
|
|
#define FOR_ALL_ZONES(xx) DMA_ZONE(xx) DMA32_ZONE(xx) xx##_NORMAL, HIGHMEM_ZONE(xx) xx##_MOVABLE
|
2011-05-27 06:25:24 +07:00
|
|
|
|
|
|
|
enum vm_event_item { PGPGIN, PGPGOUT, PSWPIN, PSWPOUT,
|
|
|
|
FOR_ALL_ZONES(PGALLOC),
|
|
|
|
PGFREE, PGACTIVATE, PGDEACTIVATE,
|
|
|
|
PGFAULT, PGMAJFAULT,
|
|
|
|
FOR_ALL_ZONES(PGREFILL),
|
2012-04-26 06:01:48 +07:00
|
|
|
FOR_ALL_ZONES(PGSTEAL_KSWAPD),
|
|
|
|
FOR_ALL_ZONES(PGSTEAL_DIRECT),
|
2011-05-27 06:25:24 +07:00
|
|
|
FOR_ALL_ZONES(PGSCAN_KSWAPD),
|
|
|
|
FOR_ALL_ZONES(PGSCAN_DIRECT),
|
2012-08-01 06:44:39 +07:00
|
|
|
PGSCAN_DIRECT_THROTTLE,
|
2011-05-27 06:25:24 +07:00
|
|
|
#ifdef CONFIG_NUMA
|
|
|
|
PGSCAN_ZONE_RECLAIM_FAILED,
|
|
|
|
#endif
|
2012-04-26 06:01:48 +07:00
|
|
|
PGINODESTEAL, SLABS_SCANNED, KSWAPD_INODESTEAL,
|
2011-05-27 06:25:24 +07:00
|
|
|
KSWAPD_LOW_WMARK_HIT_QUICKLY, KSWAPD_HIGH_WMARK_HIT_QUICKLY,
|
|
|
|
PAGEOUTRUN, ALLOCSTALL, PGROTATED,
|
2014-04-04 04:48:19 +07:00
|
|
|
DROP_PAGECACHE, DROP_SLAB,
|
2012-11-02 21:52:48 +07:00
|
|
|
#ifdef CONFIG_NUMA_BALANCING
|
|
|
|
NUMA_PTE_UPDATES,
|
2013-11-13 06:08:32 +07:00
|
|
|
NUMA_HUGE_PTE_UPDATES,
|
2012-11-02 21:52:48 +07:00
|
|
|
NUMA_HINT_FAULTS,
|
|
|
|
NUMA_HINT_FAULTS_LOCAL,
|
|
|
|
NUMA_PAGE_MIGRATE,
|
|
|
|
#endif
|
2012-10-19 16:46:20 +07:00
|
|
|
#ifdef CONFIG_MIGRATION
|
|
|
|
PGMIGRATE_SUCCESS, PGMIGRATE_FAIL,
|
|
|
|
#endif
|
2011-05-27 06:25:24 +07:00
|
|
|
#ifdef CONFIG_COMPACTION
|
2012-10-19 18:00:10 +07:00
|
|
|
COMPACTMIGRATE_SCANNED, COMPACTFREE_SCANNED,
|
|
|
|
COMPACTISOLATED,
|
2011-05-27 06:25:24 +07:00
|
|
|
COMPACTSTALL, COMPACTFAIL, COMPACTSUCCESS,
|
|
|
|
#endif
|
|
|
|
#ifdef CONFIG_HUGETLB_PAGE
|
|
|
|
HTLB_BUDDY_PGALLOC, HTLB_BUDDY_PGALLOC_FAIL,
|
|
|
|
#endif
|
|
|
|
UNEVICTABLE_PGCULLED, /* culled to noreclaim list */
|
|
|
|
UNEVICTABLE_PGSCANNED, /* scanned for reclaimability */
|
|
|
|
UNEVICTABLE_PGRESCUED, /* rescued from noreclaim list */
|
|
|
|
UNEVICTABLE_PGMLOCKED,
|
|
|
|
UNEVICTABLE_PGMUNLOCKED,
|
|
|
|
UNEVICTABLE_PGCLEARED, /* on COW, page truncate */
|
|
|
|
UNEVICTABLE_PGSTRANDED, /* unable to isolate on unlock */
|
|
|
|
#ifdef CONFIG_TRANSPARENT_HUGEPAGE
|
|
|
|
THP_FAULT_ALLOC,
|
|
|
|
THP_FAULT_FALLBACK,
|
|
|
|
THP_COLLAPSE_ALLOC,
|
|
|
|
THP_COLLAPSE_ALLOC_FAILED,
|
|
|
|
THP_SPLIT,
|
2012-12-13 04:51:09 +07:00
|
|
|
THP_ZERO_PAGE_ALLOC,
|
|
|
|
THP_ZERO_PAGE_ALLOC_FAILED,
|
2011-05-27 06:25:24 +07:00
|
|
|
#endif
|
2014-10-10 05:29:32 +07:00
|
|
|
#ifdef CONFIG_MEMORY_BALLOON
|
|
|
|
BALLOON_INFLATE,
|
|
|
|
BALLOON_DEFLATE,
|
|
|
|
#ifdef CONFIG_BALLOON_COMPACTION
|
|
|
|
BALLOON_MIGRATE,
|
|
|
|
#endif
|
|
|
|
#endif
|
2014-01-22 05:33:16 +07:00
|
|
|
#ifdef CONFIG_DEBUG_TLBFLUSH
|
2013-09-12 04:20:24 +07:00
|
|
|
#ifdef CONFIG_SMP
|
2013-09-12 04:20:23 +07:00
|
|
|
NR_TLB_REMOTE_FLUSH, /* cpu tried to flush others' tlbs */
|
|
|
|
NR_TLB_REMOTE_FLUSH_RECEIVED,/* cpu received ipi for flush */
|
2014-01-22 05:33:16 +07:00
|
|
|
#endif /* CONFIG_SMP */
|
2013-09-12 04:20:23 +07:00
|
|
|
NR_TLB_LOCAL_FLUSH_ALL,
|
|
|
|
NR_TLB_LOCAL_FLUSH_ONE,
|
2014-01-22 05:33:16 +07:00
|
|
|
#endif /* CONFIG_DEBUG_TLBFLUSH */
|
2014-06-05 06:06:46 +07:00
|
|
|
#ifdef CONFIG_DEBUG_VM_VMACACHE
|
|
|
|
VMACACHE_FIND_CALLS,
|
|
|
|
VMACACHE_FIND_HITS,
|
2014-12-13 07:56:10 +07:00
|
|
|
VMACACHE_FULL_FLUSHES,
|
2014-06-05 06:06:46 +07:00
|
|
|
#endif
|
2011-05-27 06:25:24 +07:00
|
|
|
NR_VM_EVENT_ITEMS
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* VM_EVENT_ITEM_H_INCLUDED */
|