The FreeRADIUS server $Id: f3670dba8951ca10eb4948feb3dc3db9423a334f $
Loading...
Searching...
No Matches
Functions
allocfail.c File Reference
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "filenames.h"
#include "backtrace.h"
#include "backtrace-supported.h"
#include "testlib.h"
+ Include dependency graph for allocfail.c:

Go to the source code of this file.

Functions

int at_fail_alloc_p (void)
 
static int callback_full (void *vdata ATTRIBUTE_UNUSED, uintptr_t pc ATTRIBUTE_UNUSED, const char *filename ATTRIBUTE_UNUSED, int lineno ATTRIBUTE_UNUSED, const char *function ATTRIBUTE_UNUSED)
 
static int f2 (int f1line)
 
static int f3 (int f1line ATTRIBUTE_UNUSED, int f2line ATTRIBUTE_UNUSED)
 
uint64_t get_nr_allocs (void)
 
int main (int argc, char **argv)
 
void set_fail_at_alloc (uint64_t)
 
static int test1 (void)
 

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:

◆ callback_full()

static int callback_full ( void *vdata  ATTRIBUTE_UNUSED,
uintptr_t pc  ATTRIBUTE_UNUSED,
const char *filename  ATTRIBUTE_UNUSED,
int lineno  ATTRIBUTE_UNUSED,
const char *function  ATTRIBUTE_UNUSED 
)
static

Definition at line 70 of file allocfail.c.

+ Here is the caller graph for this function:

◆ f2()

static int f2 ( int  f1line)
static

Definition at line 86 of file allocfail.c.

+ Here is the call graph for this function:

◆ f3()

static int f3 ( int f1line  ATTRIBUTE_UNUSED,
int f2line  ATTRIBUTE_UNUSED 
)
static

Definition at line 92 of file allocfail.c.

+ Here is the call graph for this function:
+ 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:

◆ main()

int main ( int argc  ,
char **  argv 
)

Definition at line 113 of file allocfail.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:

◆ test1()

static int test1 ( void  )
static

Definition at line 49 of file allocfail.c.

+ Here is the caller graph for this function: