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
Data Structures | Functions
memcache.c File Reference
#include "config.h"
#include <sys/mman.h>
#include "common.h"
#include "log.h"
#include "clfit.h"
#include "memcache.h"
#include "glib.h"
Include dependency graph for memcache.c:

Go to the source code of this file.

Data Structures

struct  __clrs_foreach_inc_ticks_data
 

Functions

struct memcachememcache_create (unsigned long int max_v2p, unsigned long int max_mmap_size, memcache_tag_priv_dtor pdtor)
 
void memcache_destroy (struct memcache *memcache)
 
int memcache_invalidate_all_v2p (struct memcache *memcache, ADDR tag)
 
int memcache_invalidate_all_mmap (struct memcache *memcache, ADDR tag)
 
int memcache_invalidate_all (struct memcache *memcache)
 
int __memcache_clrangesimple_foreach_inc_ticks (Word_t start, Word_t end, void *data, void *hpriv)
 
void memcache_inc_ticks (struct memcache *memcache, unsigned int new_ticks)
 
int memcache_get_v2p (struct memcache *memcache, ADDR tag, ADDR va, ADDR *pa, void **tag_priv)
 
int memcache_get_mmap (struct memcache *memcache, ADDR tag, ADDR pa, unsigned long int pa_len, memcache_flags_t flags, ADDR *pa_start, OFFSET *pa_offset, void **mem, unsigned long int *mem_len, void **tag_priv)
 
int memcache_set_tag_priv (struct memcache *memcache, ADDR tag, void *tag_priv)
 
int memcache_set_v2p (struct memcache *memcache, ADDR tag, ADDR va, ADDR pa)
 
int memcache_set_mmap (struct memcache *memcache, ADDR tag, ADDR pa, memcache_flags_t flags, void *mem, unsigned long int mem_len)
 
int __memcache_clrangesimple_print (ADDR start, ADDR end, void *data, void *hpriv)
 
unsigned long int memcache_lru_evict_mmap (struct memcache *memcache, ADDR tag, memcache_flags_t flags, unsigned long int mem_len)
 

Function Documentation

int __memcache_clrangesimple_foreach_inc_ticks ( Word_t  start,
Word_t  end,
void *  data,
void *  hpriv 
)

Definition at line 157 of file memcache.c.

int __memcache_clrangesimple_print ( ADDR  start,
ADDR  end,
void *  data,
void *  hpriv 
)

Definition at line 476 of file memcache.c.

struct memcache* memcache_create ( unsigned long int  max_v2p,
unsigned long int  max_mmap_size,
memcache_tag_priv_dtor  pdtor 
)

Definition at line 33 of file memcache.c.

void memcache_destroy ( struct memcache memcache)

Definition at line 49 of file memcache.c.

int memcache_get_mmap ( struct memcache memcache,
ADDR  tag,
ADDR  pa,
unsigned long int  pa_len,
memcache_flags_t  flags,
ADDR pa_start,
OFFSET pa_offset,
void **  mem,
unsigned long int *  mem_len,
void **  tag_priv 
)

Definition at line 265 of file memcache.c.

int memcache_get_v2p ( struct memcache memcache,
ADDR  tag,
ADDR  va,
ADDR pa,
void **  tag_priv 
)

Definition at line 232 of file memcache.c.

void memcache_inc_ticks ( struct memcache memcache,
unsigned int  new_ticks 
)

Definition at line 220 of file memcache.c.

int memcache_invalidate_all ( struct memcache memcache)

Definition at line 138 of file memcache.c.

int memcache_invalidate_all_mmap ( struct memcache memcache,
ADDR  tag 
)

Definition at line 117 of file memcache.c.

int memcache_invalidate_all_v2p ( struct memcache memcache,
ADDR  tag 
)

Definition at line 78 of file memcache.c.

unsigned long int memcache_lru_evict_mmap ( struct memcache memcache,
ADDR  tag,
memcache_flags_t  flags,
unsigned long int  mem_len 
)

Definition at line 486 of file memcache.c.

int memcache_set_mmap ( struct memcache memcache,
ADDR  tag,
ADDR  pa,
memcache_flags_t  flags,
void *  mem,
unsigned long int  mem_len 
)

Definition at line 402 of file memcache.c.

int memcache_set_tag_priv ( struct memcache memcache,
ADDR  tag,
void *  tag_priv 
)

Definition at line 354 of file memcache.c.

int memcache_set_v2p ( struct memcache memcache,
ADDR  tag,
ADDR  va,
ADDR  pa 
)

Definition at line 369 of file memcache.c.