NVMLib  very early alpha
A library to optimally use a Hybrid RAM setup.
mem_log.h File Reference
#include "malloc.h"
#include <time.h>
#include <sys/queue.h>
Include dependency graph for mem_log.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  address_log
 

Typedefs

typedef struct address_log address_log
 

Functions

 TAILQ_HEAD (address_list_write_queue, address_log) write_queue_head
 
 TAILQ_HEAD (address_list_read_queue, address_log) read_queue_head
 
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...
 

Typedef Documentation

◆ address_log

typedef struct address_log address_log

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.

◆ TAILQ_HEAD() [1/2]

TAILQ_HEAD ( address_list_read_queue  ,
address_log   
)

◆ TAILQ_HEAD() [2/2]

TAILQ_HEAD ( address_list_write_queue  ,
address_log   
)