History

mm/memcontrol: use vmstat names for printing statistics

Use common names from vmstat array when possible. This gives not much difference in code size for now, but should help in keeping interfaces consistent. add/remove: 0/2 grow/shrink: 2/0 up/down: 70/-72 (-2) Function old new delta memory_stat_format 984 1050 +66 memcg_stat_show 957 961 +4 memcg1_event_names 32 - -32 mem_cgroup_lru_names 40 - -40 Total: Before=14485337, After=14485335, chg -0.00%

Konstantin Khlebnikov committed 6 years ago

Commit ebc5d831 parent 9d7ea9a3 files · +29 −36Browse files

Showing the changes to include/linux (1 of 3 files). Show all

Unified · Split

include/linux/vmstat.h+2−2
@@ -420,7 +420,7 @@ static inline const char *writeback_stat_name(enum writeback_stat_item item) · 419 unmodified lines
420420 item];
421421 }
422422
423−#ifdef CONFIG_VM_EVENT_COUNTERS
423+#if defined(CONFIG_VM_EVENT_COUNTERS) || defined(CONFIG_MEMCG)
424424 static inline const char *vm_event_name(enum vm_event_item item)
425425 {
426426 return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
@@ -429,6 +429,6 @@ static inline const char *vm_event_name(enum vm_event_item item) · 2 unmodified lines
429429 NR_VM_WRITEBACK_STAT_ITEMS +
430430 item];
431431 }
432−#endif /* CONFIG_VM_EVENT_COUNTERS */
432+#endif /* CONFIG_VM_EVENT_COUNTERS || CONFIG_MEMCG */
433433
434434 #endif /* _LINUX_VMSTAT_H */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t