![]() |
MOS Source Code
|
#include <mos/types.hpp>Go to the source code of this file.
Classes | |
| struct | vmap_stat_t |
| Memory usage statistics for a specific vmap area. More... | |
Macros | |
| #define | mmstat_inc1(type) |
| #define | mmstat_dec1(type) |
| #define | vmap_stat_inc(vmap, type) |
| #define | vmap_stat_dec(vmap, type) |
Enumerations | |
| enum | mmstat_type_t { MEM_PAGETABLE , MEM_SLAB , MEM_PAGECACHE , MEM_KERNEL , MEM_USER , _MEM_MAX_TYPES } |
Functions | |
| void | mmstat_inc (mmstat_type_t type, size_t size) |
| Increment the memory usage statistics. | |
| void | mmstat_dec (mmstat_type_t type, size_t size) |
| Decrement the memory usage statistics. | |
Variables | |
| const char * | mem_type_names [_MEM_MAX_TYPES] |
| #define mmstat_inc1 | ( | type | ) |
Definition at line 26 of file mmstat.hpp.
Referenced by __create_page_table(), and pagecache_get_page_for_read().
| #define mmstat_dec1 | ( | type | ) |
Definition at line 35 of file mmstat.hpp.
Referenced by __destroy_page_table(), and do_flush_and_drop_cached_page().
| #define vmap_stat_inc | ( | vmap, | |
| type ) |
Definition at line 70 of file mmstat.hpp.
Referenced by cow_zod_fault_handler(), and vfs_fault_handler().
| #define vmap_stat_dec | ( | vmap, | |
| type ) |
Definition at line 71 of file mmstat.hpp.
Referenced by cow_zod_fault_handler(), and vfs_fault_handler().
| enum mmstat_type_t |
| Enumerator | |
|---|---|
| MEM_PAGETABLE | |
| MEM_SLAB | |
| MEM_PAGECACHE | |
| MEM_KERNEL | |
| MEM_USER | |
| _MEM_MAX_TYPES | |
Definition at line 6 of file mmstat.hpp.
| void mmstat_inc | ( | mmstat_type_t | type, |
| size_t | size ) |
Increment the memory usage statistics.
| type | The type of memory. |
| size | The size of memory. |
Definition at line 32 of file mmstat.cpp.
Referenced by slab_impl_new_page().
| void mmstat_dec | ( | mmstat_type_t | type, |
| size_t | size ) |
Decrement the memory usage statistics.
| type | The type of memory. |
| size | The size of memory. |
Definition at line 38 of file mmstat.cpp.
Referenced by slab_impl_free_page().
|
extern |
Definition at line 24 of file mmstat.cpp.
Referenced by mmstat_sysfs_stat().