SimGrid  3.16
Versatile Simulation of Distributed Systems
backtrace.h File Reference
#include <cstddef>
#include <xbt/base.h>

Typedefs

typedef voidxbt_backtrace_location_t
 

Functions

void xbt_backtrace_display_current ()
 Shows a backtrace of the current location. More...
 
int xbt_backtrace_no_malloc (void **bt, int size)
 reimplementation of glibc backtrace based directly on gcc library, without implicit malloc More...
 
size_t xbt_backtrace_current (xbt_backtrace_location_t *loc, size_t count)
 Captures a backtrace for further use. More...
 
void xbt_backtrace_display (xbt_backtrace_location_t *loc, size_t count)
 Display a previously captured backtrace. More...
 
int xbt_libunwind_backtrace (void **bt, int size)
 Get current backtrace with libunwind. More...
 

Typedef Documentation

◆ xbt_backtrace_location_t

Function Documentation

◆ xbt_backtrace_display_current()

void xbt_backtrace_display_current ( )

Shows a backtrace of the current location.

Shows a backtrace of the current location.

◆ xbt_backtrace_no_malloc()

int xbt_backtrace_no_malloc ( void **  array,
int  size 
)

reimplementation of glibc backtrace based directly on gcc library, without implicit malloc

See http://people.irisa.fr/Martin.Quinson/blog/2012/0208/system_programming_fun_in_SimGrid/ for the motivation behind this function

◆ xbt_backtrace_current()

size_t xbt_backtrace_current ( xbt_backtrace_location_t loc,
size_t  count 
)

Captures a backtrace for further use.

◆ xbt_backtrace_display()

void xbt_backtrace_display ( xbt_backtrace_location_t loc,
size_t  count 
)

Display a previously captured backtrace.

◆ xbt_libunwind_backtrace()

int xbt_libunwind_backtrace ( void **  bt,
int  size 
)

Get current backtrace with libunwind.