MOS Source Code
|
#include <mos/types.h>
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.h.
Referenced by __create_page_table(), and pagecache_get_page_for_read().
#define mmstat_dec1 | ( | type | ) |
Definition at line 35 of file mmstat.h.
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.h.
Referenced by cow_zod_fault_handler(), and vfs_fault_handler().
#define vmap_stat_dec | ( | vmap, | |
type ) |
Definition at line 71 of file mmstat.h.
Referenced by cow_zod_fault_handler(), and vfs_fault_handler().
enum mmstat_type_t |
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 33 of file mmstat.c.
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 39 of file mmstat.c.
Referenced by slab_impl_free_page().
|
extern |
Definition at line 25 of file mmstat.c.
Referenced by mmstat_sysfs_stat().