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%
Showing the changes to include/linux (1 of 3 files). Show all
Unified · Split
| @@ -420,7 +420,7 @@ static inline const char *writeback_stat_name(enum writeback_stat_item item) · 419 unmodified lines | ||
| 420 | 420 | item]; |
| 421 | 421 | } |
| 422 | 422 | |
| 423 | −#ifdef CONFIG_VM_EVENT_COUNTERS | |
| 423 | +#if defined(CONFIG_VM_EVENT_COUNTERS) || defined(CONFIG_MEMCG) | |
| 424 | 424 | static inline const char *vm_event_name(enum vm_event_item item) |
| 425 | 425 | { |
| 426 | 426 | 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 | ||
| 429 | 429 | NR_VM_WRITEBACK_STAT_ITEMS + |
| 430 | 430 | item]; |
| 431 | 431 | } |
| 432 | −#endif /* CONFIG_VM_EVENT_COUNTERS */ | |
| 432 | +#endif /* CONFIG_VM_EVENT_COUNTERS || CONFIG_MEMCG */ | |
| 433 | 433 | |
| 434 | 434 | #endif /* _LINUX_VMSTAT_H */ |