HPCToolkit
backtrace.c File Reference
#include <stdbool.h>
#include <assert.h>
#include <stdlib.h>
#include <sys/types.h>
#include <ucontext.h>
#include <string.h>
#include <unwind/common/unw-throw.h>
#include <hpcrun/hpcrun_stats.h>
#include <monitor.h>
#include <trampoline/common/trampoline.h>
#include <dbg_backtrace.h>
Include dependency graph for backtrace.c:

Go to the source code of this file.

Functions

static void lush_assoc_info2str (char *buf, size_t len, lush_assoc_info_t info)
 
static void lush_lip2str (char *buf, size_t len, lush_lip_t *lip)
 
void hpcrun_bt_dump (frame_t *unwind, const char *tag)
 
void hpcrun_bt_init (backtrace_t *bt, size_t size)
 
frame_thpcrun_skip_chords (frame_t *bt_outer, frame_t *bt_inner, int skip)
 
bool hpcrun_generate_backtrace_no_trampoline (backtrace_info_t *bt, ucontext_t *context, int skipInner)
 
bool hpcrun_generate_backtrace (backtrace_info_t *bt, ucontext_t *context, int skipInner)
 

Function Documentation

◆ hpcrun_bt_dump()

void hpcrun_bt_dump ( frame_t unwind,
const char *  tag 
)

Definition at line 90 of file backtrace.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ hpcrun_bt_init()

void hpcrun_bt_init ( backtrace_t bt,
size_t  size 
)

Definition at line 142 of file backtrace.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ hpcrun_generate_backtrace()

bool hpcrun_generate_backtrace ( backtrace_info_t bt,
ucontext_t *  context,
int  skipInner 
)

Definition at line 307 of file backtrace.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ hpcrun_generate_backtrace_no_trampoline()

bool hpcrun_generate_backtrace_no_trampoline ( backtrace_info_t bt,
ucontext_t *  context,
int  skipInner 
)

Definition at line 178 of file backtrace.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ hpcrun_skip_chords()

frame_t* hpcrun_skip_chords ( frame_t bt_outer,
frame_t bt_inner,
int  skip 
)

Definition at line 152 of file backtrace.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ lush_assoc_info2str()

static void lush_assoc_info2str ( char *  buf,
size_t  len,
lush_assoc_info_t  info 
)
static

Definition at line 383 of file backtrace.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ lush_lip2str()

static void lush_lip2str ( char *  buf,
size_t  len,
lush_lip_t lip 
)
static

Definition at line 396 of file backtrace.c.

Here is the call graph for this function:
Here is the caller graph for this function: