#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "hpcrun-malloc.h"
#include "env.h"
#include "newmem.h"
#include "sample_event.h"
#include "thread_data.h"
#include <messages/messages.h>
Go to the source code of this file.
◆ _IN_MEM_C
Definition at line 67 of file mem.c.
◆ DEFAULT_MEMSIZE
#define DEFAULT_MEMSIZE (4 * 1024 * 1024) |
Definition at line 78 of file mem.c.
◆ DEFAULT_PAGESIZE
#define DEFAULT_PAGESIZE 4096 |
Definition at line 80 of file mem.c.
◆ MIN_LOW_MEMSIZE
#define MIN_LOW_MEMSIZE (80 * 1024) |
Definition at line 79 of file mem.c.
◆ hpcrun_align_pagesize()
static size_t hpcrun_align_pagesize |
( |
size_t |
size | ) |
|
|
inlinestatic |
◆ hpcrun_make_memstore()
◆ hpcrun_malloc()
void* hpcrun_malloc |
( |
size_t |
size | ) |
|
◆ hpcrun_malloc_freeable()
void* hpcrun_malloc_freeable |
( |
size_t |
size | ) |
|
◆ hpcrun_mem_init()
static void hpcrun_mem_init |
( |
void |
| ) |
|
|
static |
◆ hpcrun_memory_reinit()
void hpcrun_memory_reinit |
( |
void |
| ) |
|
◆ hpcrun_memory_summary()
void hpcrun_memory_summary |
( |
void |
| ) |
|
◆ hpcrun_mmap_anon()
static void* hpcrun_mmap_anon |
( |
size_t |
size | ) |
|
|
static |
◆ hpcrun_reclaim_freeable_mem()
void hpcrun_reclaim_freeable_mem |
( |
void |
| ) |
|
◆ round_up()
static size_t round_up |
( |
size_t |
size | ) |
|
|
inlinestatic |
◆ allow_extra_mmap
Definition at line 85 of file mem.c.
◆ low_memsize
Definition at line 83 of file mem.c.
◆ memsize
Definition at line 82 of file mem.c.
◆ num_failures
Definition at line 90 of file mem.c.
◆ num_reclaims
Definition at line 89 of file mem.c.
◆ num_segments
Definition at line 87 of file mem.c.
◆ out_of_mem_mesg
Definition at line 94 of file mem.c.
◆ pagesize
Definition at line 84 of file mem.c.
◆ total_allocation
long total_allocation = 0 |
|
static |
Definition at line 88 of file mem.c.
◆ total_freeable
Definition at line 91 of file mem.c.
◆ total_non_freeable
long total_non_freeable = 0 |
|
static |
Definition at line 92 of file mem.c.