CCTLib
Calling-context and data-object attribution library for Intel Pin
sig_longjmp.cpp File Reference
#include <cstdint>
#include <cstdio>
#include <setjmp.h>
+ Include dependency graph for sig_longjmp.cpp:

Go to the source code of this file.

Macros

#define ITERS   500
 

Functions

 __attribute__ ((noinline)) void sjlj_try_marker(int i)
 
static void go_deep (int i, int depth)
 
int main (int argc, char **argv)
 

Variables

static volatile uint64_t sink
 
static uint64_t buf [ITERS]
 
static jmp_buf jb
 

Macro Definition Documentation

◆ ITERS

#define ITERS   500

Definition at line 13 of file sig_longjmp.cpp.

Function Documentation

◆ __attribute__()

__attribute__ ( (noinline)  )

Definition at line 18 of file sig_longjmp.cpp.

References sink.

◆ go_deep()

static void go_deep ( int  i,
int  depth 
)
static

Definition at line 25 of file sig_longjmp.cpp.

References buf, and jb.

Referenced by main().

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 35 of file sig_longjmp.cpp.

References buf, go_deep(), ITERS, jb, and sink.

Variable Documentation

◆ buf

uint64_t buf[ITERS]
static

Definition at line 15 of file sig_longjmp.cpp.

Referenced by go_deep(), and main().

◆ jb

jmp_buf jb
static

Definition at line 16 of file sig_longjmp.cpp.

Referenced by go_deep(), and main().

◆ sink

volatile uint64_t sink
static

Definition at line 14 of file sig_longjmp.cpp.

Referenced by __attribute__(), and main().