NVMLib  very early alpha
A library to optimally use a Hybrid RAM setup.
mem_log.c File Reference
#include "mem_log.h"
#include "malloc.h"
#include <time.h>
#include <libiberty/splay-tree.h>
Include dependency graph for mem_log.c:

Go to the source code of this file.

Functions

void initialize_log_queues ()
 
void log_write (void *addr, size_t size)
 Function to record the memory addresses written into in a given object. More...
 
void log_read (void *addr, size_t size)
 Function to record the memory addresses read from in a given object. More...
 

Function Documentation

◆ initialize_log_queues()

void initialize_log_queues ( )

Definition at line 7 of file mem_log.c.

◆ log_read()

void log_read ( void *  addr,
size_t  size 
)

Function to record the memory addresses read from in a given object.

This function is used for entropy calculations. It is inserted into the code are compile time by the mem_track.cc plugin.

Parameters
addrthe memory address read from.
sizethe size of memory access.
Returns
Nothing.
Note
This is an internal function.

Definition at line 52 of file mem_log.c.

◆ log_write()

void log_write ( void *  addr,
size_t  size 
)

Function to record the memory addresses written into in a given object.

This function is used for entropy calculations. It is inserted into the code are compile time by the mem_track.cc plugin.

Parameters
addrthe memory address written into
sizethe size of memory access.
Returns
Nothing.
Note
This is an internal function.

Definition at line 23 of file mem_log.c.