HPCToolkit
mmap.c File Reference
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <errno.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "mmap.h"
#include <messages/messages.h>
Include dependency graph for mmap.c:

Go to the source code of this file.

Macros

#define DEFAULT_PAGESIZE   4096;
 

Functions

static size_t hpcrun_align_pagesize (size_t size)
 
void * hpcrun_mmap_anon (size_t size)
 
void hpcrun_mmap_init (void)
 

Variables

static size_t pagesize = DEFAULT_PAGESIZE
 

Macro Definition Documentation

◆ DEFAULT_PAGESIZE

#define DEFAULT_PAGESIZE   4096;

Definition at line 26 of file mmap.c.

Function Documentation

◆ hpcrun_align_pagesize()

static size_t hpcrun_align_pagesize ( size_t  size)
inlinestatic

Definition at line 33 of file mmap.c.

Here is the caller graph for this function:

◆ hpcrun_mmap_anon()

void* hpcrun_mmap_anon ( size_t  size)

Definition at line 49 of file mmap.c.

Here is the call graph for this function:

◆ hpcrun_mmap_init()

void hpcrun_mmap_init ( void  )

Definition at line 94 of file mmap.c.

Here is the caller graph for this function:

Variable Documentation

◆ pagesize

size_t pagesize = DEFAULT_PAGESIZE
static

Definition at line 27 of file mmap.c.