The FreeRADIUS server $Id: f3670dba8951ca10eb4948feb3dc3db9423a334f $
Loading...
Searching...
No Matches
Macros | Functions | Variables
instrumented_alloc.c File Reference
#include "config.h"
#include <errno.h>
#include <stdlib.h>
#include <sys/types.h>
#include <inttypes.h>
#include "backtrace.h"
#include "internal.h"
#include "alloc.c"
+ Include dependency graph for instrumented_alloc.c:

Go to the source code of this file.

Macros

#define malloc   instrumented_malloc
 
#define realloc   instrumented_realloc
 

Functions

int at_fail_alloc_p (void)
 
uint64_t get_nr_allocs (void)
 
void * instrumented_malloc (size_t size)
 
void * instrumented_realloc (void *ptr, size_t size)
 
void set_fail_at_alloc (uint64_t)
 

Variables

static uint64_t fail_at_alloc = 0
 
static uint64_t nr_allocs = 0
 

Macro Definition Documentation

◆ malloc

Definition at line 52 of file instrumented_alloc.c.

◆ realloc

Definition at line 53 of file instrumented_alloc.c.

Function Documentation

◆ at_fail_alloc_p()

int at_fail_alloc_p ( void  )
extern

Definition at line 99 of file instrumented_alloc.c.

+ Here is the caller graph for this function:

◆ get_nr_allocs()

uint64_t get_nr_allocs ( void  )
extern

Definition at line 105 of file instrumented_alloc.c.

+ Here is the caller graph for this function:

◆ instrumented_malloc()

void * instrumented_malloc ( size_t  size)
extern

Definition at line 66 of file instrumented_alloc.c.

+ Here is the call graph for this function:

◆ instrumented_realloc()

void * instrumented_realloc ( void *  ptr,
size_t  size 
)
extern

Definition at line 81 of file instrumented_alloc.c.

+ Here is the call graph for this function:

◆ set_fail_at_alloc()

void set_fail_at_alloc ( uint64_t  nr)
extern

Definition at line 111 of file instrumented_alloc.c.

+ Here is the caller graph for this function:

Variable Documentation

◆ fail_at_alloc

uint64_t fail_at_alloc = 0
static

Definition at line 59 of file instrumented_alloc.c.

◆ nr_allocs

uint64_t nr_allocs = 0
static

Definition at line 58 of file instrumented_alloc.c.