Linux Perf
unwind-libdw.c File Reference
#include <elfutils/libdwfl.h>
#include "../../util/unwind-libdw.h"
#include "../../util/perf_regs.h"
#include "../../util/event.h"
Include dependency graph for unwind-libdw.c:

Go to the source code of this file.

Macros

#define REG(r)
 

Functions

bool libdw__arch_set_initial_registers (Dwfl_Thread *thread, void *arg)
 

Variables

static const int special_regs [3][2]
 

Macro Definition Documentation

◆ REG

#define REG (   r)
Value:
({ \
Dwarf_Word val = 0; \
perf_reg_value(&val, user_regs, PERF_REG_POWERPC_##r); \
val; \
})

Function Documentation

◆ libdw__arch_set_initial_registers()

bool libdw__arch_set_initial_registers ( Dwfl_Thread *  thread,
void *  arg 
)

Definition at line 14 of file unwind-libdw.c.

Here is the call graph for this function:

Variable Documentation

◆ special_regs

const int special_regs[3][2]
static
Initial value:
= {
{ 65, PERF_REG_POWERPC_LINK },
{ 101, PERF_REG_POWERPC_XER },
{ 109, PERF_REG_POWERPC_CTR },
}

Definition at line 8 of file unwind-libdw.c.