SimGrid  3.18
Versatile Simulation of Distributed Systems
backtrace_linux.cpp File Reference
#include <cerrno>
#include <cstring>
#include <fstream>
#include <sstream>
#include <string>
#include <vector>
#include <boost/algorithm/string.hpp>
#include <unistd.h>
#include <execinfo.h>
#include <sys/stat.h>
#include <xbt/string.hpp>
#include <xbt/backtrace.hpp>
#include "xbt/ex.h"
#include "xbt/log.h"
#include "xbt/module.h"
#include "src/xbt_modinter.h"
#include <unwind.h>

Classes

struct  trace_arg
 

Namespaces

 simgrid
 Alltoall Bruck.
 
 simgrid::xbt
 

Functions

static _Unwind_Reason_Code backtrace_helper (_Unwind_Context *ctx, void *a)
 
int xbt_backtrace_no_malloc (void **array, 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, std::size_t count)
 
static std::string simgrid::xbt::get_binary_path ()
 Find the path of the binary file from the name found in argv. More...
 
std::vector< std::stringsimgrid::xbt::resolveBacktrace (xbt_backtrace_location_t const *loc, std::size_t count)
 

Variables

char ** environ
 

Function Documentation

◆ backtrace_helper()

static _Unwind_Reason_Code backtrace_helper ( _Unwind_Context *  ctx,
void a 
)
static

◆ 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,
std::size_t  count 
)

Variable Documentation

◆ environ

char** environ