Stackdb
Stackdb is a stackable, multi-target and -level source debugger and memory forensics library.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Macros | Enumerations | Functions
loadallpagebypage.c File Reference
#include <sys/mman.h>
#include <dlfcn.h>
#include <sys/types.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
Include dependency graph for loadallpagebypage.c:

Go to the source code of this file.

Macros

#define _GNU_SOURCE
 
#define PAGE_SIZE   4096
 
#define PROT_SHARED   0x8
 
#define MAX_MLOCK_BYTES   32 * 1024
 
#define LBUFSIZ   512
 

Enumerations

enum  region_type_t {
  REGION_TYPE_FILE = 1, REGION_TYPE_HEAP, REGION_TYPE_STACK, REGION_TYPE_VDSO,
  REGION_TYPE_VSYSCALL, REGION_TYPE_ANON, REGION_TYPE_UNKNOWN = 0, REGION_TYPE_HEAP = 1,
  REGION_TYPE_STACK = 2, REGION_TYPE_VDSO = 3, REGION_TYPE_VSYSCALL = 4, REGION_TYPE_ANON = 5,
  REGION_TYPE_MAIN = 6, REGION_TYPE_LIB = 7, __REGION_TYPE_MAX
}
 

Functions

int mlock_page_range (unsigned long start, unsigned long end)
 
int __libc_start_main (int(*main)(int, char **, char **), int argc, char **ubp_av, void(*init)(void), void(*fini)(void), void(*rtld_fini)(void), void(*stack_end))
 

Macro Definition Documentation

#define _GNU_SOURCE

Definition at line 1 of file loadallpagebypage.c.

#define LBUFSIZ   512
#define MAX_MLOCK_BYTES   32 * 1024

Definition at line 34 of file loadallpagebypage.c.

#define PAGE_SIZE   4096

Definition at line 23 of file loadallpagebypage.c.

#define PROT_SHARED   0x8

Definition at line 27 of file loadallpagebypage.c.

Enumeration Type Documentation

Enumerator
REGION_TYPE_FILE 
REGION_TYPE_HEAP 
REGION_TYPE_STACK 
REGION_TYPE_VDSO 
REGION_TYPE_VSYSCALL 
REGION_TYPE_ANON 
REGION_TYPE_UNKNOWN 
REGION_TYPE_HEAP 
REGION_TYPE_STACK 
REGION_TYPE_VDSO 
REGION_TYPE_VSYSCALL 
REGION_TYPE_ANON 
REGION_TYPE_MAIN 
REGION_TYPE_LIB 
__REGION_TYPE_MAX 

Definition at line 64 of file loadallpagebypage.c.

Function Documentation

int __libc_start_main ( int(*)(int, char **, char **)  main,
int  argc,
char **  ubp_av,
void(*)(void)  init,
void(*)(void)  fini,
void(*)(void)  rtld_fini,
void *  stack_end 
)

Definition at line 73 of file loadallpagebypage.c.

int mlock_page_range ( unsigned long  start,
unsigned long  end 
)

Definition at line 38 of file loadallpagebypage.c.