HPCToolkit
_mcontext.h File Reference
#include <ucontext.h>
#include <sys/ucontext.h>
Include dependency graph for _mcontext.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define GET_MCONTEXT(context)   (&((ucontext_t *)context)->uc_mcontext)
 
#define MCONTEXT_REG(mctxt, reg)   ((mctxt)->gregs[reg])
 
#define LV_MCONTEXT_PC(mctxt)   MCONTEXT_REG(mctxt, REG_INST_PTR)
 
#define LV_MCONTEXT_BP(mctxt)   MCONTEXT_REG(mctxt, REG_BASE_PTR)
 
#define LV_MCONTEXT_SP(mctxt)   MCONTEXT_REG(mctxt, REG_STACK_PTR)
 
#define MCONTEXT_PC(mctxt)   ((void *) MCONTEXT_REG(mctxt, REG_INST_PTR))
 
#define MCONTEXT_BP(mctxt)   ((void **) MCONTEXT_REG(mctxt, REG_BASE_PTR))
 
#define MCONTEXT_SP(mctxt)   ((void **) MCONTEXT_REG(mctxt, REG_STACK_PTR))
 

Macro Definition Documentation

◆ GET_MCONTEXT

#define GET_MCONTEXT (   context)    (&((ucontext_t *)context)->uc_mcontext)

Definition at line 53 of file _mcontext.h.

◆ LV_MCONTEXT_BP

#define LV_MCONTEXT_BP (   mctxt)    MCONTEXT_REG(mctxt, REG_BASE_PTR)

Definition at line 84 of file _mcontext.h.

◆ LV_MCONTEXT_PC

#define LV_MCONTEXT_PC (   mctxt)    MCONTEXT_REG(mctxt, REG_INST_PTR)

Definition at line 83 of file _mcontext.h.

◆ LV_MCONTEXT_SP

#define LV_MCONTEXT_SP (   mctxt)    MCONTEXT_REG(mctxt, REG_STACK_PTR)

Definition at line 85 of file _mcontext.h.

◆ MCONTEXT_BP

#define MCONTEXT_BP (   mctxt)    ((void **) MCONTEXT_REG(mctxt, REG_BASE_PTR))

Definition at line 88 of file _mcontext.h.

◆ MCONTEXT_PC

#define MCONTEXT_PC (   mctxt)    ((void *) MCONTEXT_REG(mctxt, REG_INST_PTR))

Definition at line 87 of file _mcontext.h.

◆ MCONTEXT_REG

#define MCONTEXT_REG (   mctxt,
  reg 
)    ((mctxt)->gregs[reg])

Definition at line 81 of file _mcontext.h.

◆ MCONTEXT_SP

#define MCONTEXT_SP (   mctxt)    ((void **) MCONTEXT_REG(mctxt, REG_STACK_PTR))

Definition at line 89 of file _mcontext.h.