diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/mmzone.h | 19 | ||||
| -rw-r--r-- | include/trace/events/writeback.h | 6 |
2 files changed, 13 insertions, 12 deletions
diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h index 2d4a8804eafa..acd4665c3025 100644 --- a/include/linux/mmzone.h +++ b/include/linux/mmzone.h | |||
| @@ -114,21 +114,16 @@ enum zone_stat_item { | |||
| 114 | NR_ZONE_LRU_BASE, /* Used only for compaction and reclaim retry */ | 114 | NR_ZONE_LRU_BASE, /* Used only for compaction and reclaim retry */ |
| 115 | NR_ZONE_LRU_ANON = NR_ZONE_LRU_BASE, | 115 | NR_ZONE_LRU_ANON = NR_ZONE_LRU_BASE, |
| 116 | NR_ZONE_LRU_FILE, | 116 | NR_ZONE_LRU_FILE, |
| 117 | NR_ZONE_WRITE_PENDING, /* Count of dirty, writeback and unstable pages */ | ||
| 117 | NR_MLOCK, /* mlock()ed pages found and moved off LRU */ | 118 | NR_MLOCK, /* mlock()ed pages found and moved off LRU */ |
| 118 | NR_FILE_PAGES, | ||
| 119 | NR_FILE_DIRTY, | ||
| 120 | NR_WRITEBACK, | ||
| 121 | NR_SLAB_RECLAIMABLE, | 119 | NR_SLAB_RECLAIMABLE, |
| 122 | NR_SLAB_UNRECLAIMABLE, | 120 | NR_SLAB_UNRECLAIMABLE, |
| 123 | NR_PAGETABLE, /* used for pagetables */ | 121 | NR_PAGETABLE, /* used for pagetables */ |
| 124 | NR_KERNEL_STACK, | 122 | NR_KERNEL_STACK, |
| 125 | /* Second 128 byte cacheline */ | 123 | /* Second 128 byte cacheline */ |
| 126 | NR_UNSTABLE_NFS, /* NFS unstable pages */ | ||
| 127 | NR_BOUNCE, | 124 | NR_BOUNCE, |
| 128 | NR_VMSCAN_WRITE, | 125 | NR_VMSCAN_WRITE, |
| 129 | NR_VMSCAN_IMMEDIATE, /* Prioritise for reclaim when writeback ends */ | 126 | NR_VMSCAN_IMMEDIATE, /* Prioritise for reclaim when writeback ends */ |
| 130 | NR_WRITEBACK_TEMP, /* Writeback using temporary buffers */ | ||
| 131 | NR_SHMEM, /* shmem pages (included tmpfs/GEM pages) */ | ||
| 132 | NR_DIRTIED, /* page dirtyings since bootup */ | 127 | NR_DIRTIED, /* page dirtyings since bootup */ |
| 133 | NR_WRITTEN, /* page writings since bootup */ | 128 | NR_WRITTEN, /* page writings since bootup */ |
| 134 | #if IS_ENABLED(CONFIG_ZSMALLOC) | 129 | #if IS_ENABLED(CONFIG_ZSMALLOC) |
| @@ -142,9 +137,6 @@ enum zone_stat_item { | |||
| 142 | NUMA_LOCAL, /* allocation from local node */ | 137 | NUMA_LOCAL, /* allocation from local node */ |
| 143 | NUMA_OTHER, /* allocation from other node */ | 138 | NUMA_OTHER, /* allocation from other node */ |
| 144 | #endif | 139 | #endif |
| 145 | NR_ANON_THPS, | ||
| 146 | NR_SHMEM_THPS, | ||
| 147 | NR_SHMEM_PMDMAPPED, | ||
| 148 | NR_FREE_CMA_PAGES, | 140 | NR_FREE_CMA_PAGES, |
| 149 | NR_VM_ZONE_STAT_ITEMS }; | 141 | NR_VM_ZONE_STAT_ITEMS }; |
| 150 | 142 | ||
| @@ -164,6 +156,15 @@ enum node_stat_item { | |||
| 164 | NR_ANON_MAPPED, /* Mapped anonymous pages */ | 156 | NR_ANON_MAPPED, /* Mapped anonymous pages */ |
| 165 | NR_FILE_MAPPED, /* pagecache pages mapped into pagetables. | 157 | NR_FILE_MAPPED, /* pagecache pages mapped into pagetables. |
| 166 | only modified from process context */ | 158 | only modified from process context */ |
| 159 | NR_FILE_PAGES, | ||
| 160 | NR_FILE_DIRTY, | ||
| 161 | NR_WRITEBACK, | ||
| 162 | NR_WRITEBACK_TEMP, /* Writeback using temporary buffers */ | ||
| 163 | NR_SHMEM, /* shmem pages (included tmpfs/GEM pages) */ | ||
| 164 | NR_SHMEM_THPS, | ||
| 165 | NR_SHMEM_PMDMAPPED, | ||
| 166 | NR_ANON_THPS, | ||
| 167 | NR_UNSTABLE_NFS, /* NFS unstable pages */ | ||
| 167 | NR_VM_NODE_STAT_ITEMS | 168 | NR_VM_NODE_STAT_ITEMS |
| 168 | }; | 169 | }; |
| 169 | 170 | ||
diff --git a/include/trace/events/writeback.h b/include/trace/events/writeback.h index 531f5811ff6b..ad20f2d2b1f9 100644 --- a/include/trace/events/writeback.h +++ b/include/trace/events/writeback.h | |||
| @@ -412,9 +412,9 @@ TRACE_EVENT(global_dirty_state, | |||
| 412 | ), | 412 | ), |
| 413 | 413 | ||
| 414 | TP_fast_assign( | 414 | TP_fast_assign( |
| 415 | __entry->nr_dirty = global_page_state(NR_FILE_DIRTY); | 415 | __entry->nr_dirty = global_node_page_state(NR_FILE_DIRTY); |
| 416 | __entry->nr_writeback = global_page_state(NR_WRITEBACK); | 416 | __entry->nr_writeback = global_node_page_state(NR_WRITEBACK); |
| 417 | __entry->nr_unstable = global_page_state(NR_UNSTABLE_NFS); | 417 | __entry->nr_unstable = global_node_page_state(NR_UNSTABLE_NFS); |
| 418 | __entry->nr_dirtied = global_page_state(NR_DIRTIED); | 418 | __entry->nr_dirtied = global_page_state(NR_DIRTIED); |
| 419 | __entry->nr_written = global_page_state(NR_WRITTEN); | 419 | __entry->nr_written = global_page_state(NR_WRITTEN); |
| 420 | __entry->background_thresh = background_thresh; | 420 | __entry->background_thresh = background_thresh; |
