vm_event_item.h 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. #ifndef VM_EVENT_ITEM_H_INCLUDED
  2. #define VM_EVENT_ITEM_H_INCLUDED
  3. #ifdef CONFIG_ZONE_DMA
  4. #define DMA_ZONE(xx) xx##_DMA,
  5. #else
  6. #define DMA_ZONE(xx)
  7. #endif
  8. #ifdef CONFIG_ZONE_DMA32
  9. #define DMA32_ZONE(xx) xx##_DMA32,
  10. #else
  11. #define DMA32_ZONE(xx)
  12. #endif
  13. #ifdef CONFIG_HIGHMEM
  14. #define HIGHMEM_ZONE(xx) xx##_HIGH,
  15. #else
  16. #define HIGHMEM_ZONE(xx)
  17. #endif
  18. #define FOR_ALL_ZONES(xx) DMA_ZONE(xx) DMA32_ZONE(xx) xx##_NORMAL, HIGHMEM_ZONE(xx) xx##_MOVABLE
  19. enum vm_event_item { PGPGIN, PGPGOUT, PSWPIN, PSWPOUT,
  20. FOR_ALL_ZONES(PGALLOC),
  21. PGFREE, PGACTIVATE, PGDEACTIVATE,
  22. PGFAULT, PGMAJFAULT,
  23. FOR_ALL_ZONES(PGREFILL),
  24. FOR_ALL_ZONES(PGSTEAL_KSWAPD),
  25. FOR_ALL_ZONES(PGSTEAL_DIRECT),
  26. FOR_ALL_ZONES(PGSCAN_KSWAPD),
  27. FOR_ALL_ZONES(PGSCAN_DIRECT),
  28. PGSCAN_DIRECT_THROTTLE,
  29. #ifdef CONFIG_NUMA
  30. PGSCAN_ZONE_RECLAIM_FAILED,
  31. #endif
  32. PGINODESTEAL, SLABS_SCANNED, KSWAPD_INODESTEAL,
  33. KSWAPD_LOW_WMARK_HIT_QUICKLY, KSWAPD_HIGH_WMARK_HIT_QUICKLY,
  34. PAGEOUTRUN, ALLOCSTALL, PGROTATED,
  35. DROP_PAGECACHE, DROP_SLAB,
  36. #ifdef CONFIG_NUMA_BALANCING
  37. NUMA_PTE_UPDATES,
  38. NUMA_HUGE_PTE_UPDATES,
  39. NUMA_HINT_FAULTS,
  40. NUMA_HINT_FAULTS_LOCAL,
  41. NUMA_PAGE_MIGRATE,
  42. #endif
  43. #ifdef CONFIG_MIGRATION
  44. PGMIGRATE_SUCCESS, PGMIGRATE_FAIL,
  45. #endif
  46. #ifdef CONFIG_COMPACTION
  47. COMPACTMIGRATE_SCANNED, COMPACTFREE_SCANNED,
  48. COMPACTISOLATED,
  49. COMPACTSTALL, COMPACTFAIL, COMPACTSUCCESS,
  50. #endif
  51. #ifdef CONFIG_HUGETLB_PAGE
  52. HTLB_BUDDY_PGALLOC, HTLB_BUDDY_PGALLOC_FAIL,
  53. #endif
  54. UNEVICTABLE_PGCULLED, /* culled to noreclaim list */
  55. UNEVICTABLE_PGSCANNED, /* scanned for reclaimability */
  56. UNEVICTABLE_PGRESCUED, /* rescued from noreclaim list */
  57. UNEVICTABLE_PGMLOCKED,
  58. UNEVICTABLE_PGMUNLOCKED,
  59. UNEVICTABLE_PGCLEARED, /* on COW, page truncate */
  60. UNEVICTABLE_PGSTRANDED, /* unable to isolate on unlock */
  61. #ifdef CONFIG_TRANSPARENT_HUGEPAGE
  62. THP_FAULT_ALLOC,
  63. THP_FAULT_FALLBACK,
  64. THP_COLLAPSE_ALLOC,
  65. THP_COLLAPSE_ALLOC_FAILED,
  66. THP_SPLIT,
  67. THP_ZERO_PAGE_ALLOC,
  68. THP_ZERO_PAGE_ALLOC_FAILED,
  69. #endif
  70. #ifdef CONFIG_MEMORY_BALLOON
  71. BALLOON_INFLATE,
  72. BALLOON_DEFLATE,
  73. #ifdef CONFIG_BALLOON_COMPACTION
  74. BALLOON_MIGRATE,
  75. #endif
  76. #endif
  77. #ifdef CONFIG_DEBUG_TLBFLUSH
  78. NR_TLB_REMOTE_FLUSH, /* cpu tried to flush others' tlbs */
  79. NR_TLB_REMOTE_FLUSH_RECEIVED,/* cpu received ipi for flush */
  80. NR_TLB_LOCAL_FLUSH_ALL,
  81. NR_TLB_LOCAL_FLUSH_ONE,
  82. #endif /* CONFIG_DEBUG_TLBFLUSH */
  83. #ifdef CONFIG_DEBUG_VM_VMACACHE
  84. VMACACHE_FIND_CALLS,
  85. VMACACHE_FIND_HITS,
  86. #endif
  87. NR_VM_EVENT_ITEMS
  88. };
  89. #endif /* VM_EVENT_ITEM_H_INCLUDED */