HPCToolkit
agent-tbb.c File Reference
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <assert.h>
#include "agent-tbb.h"
Include dependency graph for agent-tbb.c:

Go to the source code of this file.

Macros

#define LUSHCB_DECL(FN)   LUSH ## FN ## _fn_t FN
 

Functions

 LUSHCB_DECL (CB_malloc)
 
 LUSHCB_DECL (CB_free)
 
 LUSHCB_DECL (CB_step)
 
 LUSHCB_DECL (CB_loadmap_find)
 
int LUSHI_init (int argc, char **argv, lush_agentid_t aid, LUSHCB_malloc_fn_t malloc_fn, LUSHCB_free_fn_t free_fn, LUSHCB_step_fn_t step_fn, LUSHCB_loadmap_find_fn_t loadmap_fn)
 
int LUSHI_fini ()
 
char * LUSHI_strerror (int code)
 
int LUSHI_reg_dlopen ()
 
bool LUSHI_ismycode (void *addr)
 
lush_step_t LUSHI_step_bichord (lush_cursor_t *cursor)
 
lush_step_t LUSHI_step_pnote (lush_cursor_t *cursor)
 
lush_step_t LUSHI_step_lnote (lush_cursor_t *cursor)
 
int LUSHI_set_active_frame_marker ()
 
int LUSHI_lip_destroy (lush_lip_t *lip)
 
int LUSHI_lip_eq (lush_lip_t *lip)
 
int LUSHI_lip_read ()
 
int LUSHI_lip_write ()
 
bool LUSHI_do_metric (uint64_t incrMetricIn, bool *doMetric, bool *doMetricIdleness, uint64_t *incrMetric, double *incrMetricIdleness)
 

Variables

static lush_agentid_t MY_lush_aid
 

Macro Definition Documentation

◆ LUSHCB_DECL

#define LUSHCB_DECL (   FN)    LUSH ## FN ## _fn_t FN

Definition at line 78 of file agent-tbb.c.

Function Documentation

◆ LUSHCB_DECL() [1/4]

LUSHCB_DECL ( CB_malloc  )

◆ LUSHCB_DECL() [2/4]

LUSHCB_DECL ( CB_free  )

◆ LUSHCB_DECL() [3/4]

LUSHCB_DECL ( CB_step  )

◆ LUSHCB_DECL() [4/4]

LUSHCB_DECL ( CB_loadmap_find  )

◆ LUSHI_do_metric()

bool LUSHI_do_metric ( uint64_t  incrMetricIn,
bool *  doMetric,
bool *  doMetricIdleness,
uint64_t *  incrMetric,
double *  incrMetricIdleness 
)

Definition at line 221 of file agent-tbb.c.

◆ LUSHI_fini()

int LUSHI_fini ( )

Definition at line 115 of file agent-tbb.c.

◆ LUSHI_init()

int LUSHI_init ( int  argc,
char **  argv,
lush_agentid_t  aid,
LUSHCB_malloc_fn_t  malloc_fn,
LUSHCB_free_fn_t  free_fn,
LUSHCB_step_fn_t  step_fn,
LUSHCB_loadmap_find_fn_t  loadmap_fn 
)

Definition at line 96 of file agent-tbb.c.

◆ LUSHI_ismycode()

bool LUSHI_ismycode ( void *  addr)

Definition at line 140 of file agent-tbb.c.

◆ LUSHI_lip_destroy()

int LUSHI_lip_destroy ( lush_lip_t lip)

Definition at line 189 of file agent-tbb.c.

◆ LUSHI_lip_eq()

int LUSHI_lip_eq ( lush_lip_t lip)

Definition at line 196 of file agent-tbb.c.

◆ LUSHI_lip_read()

int LUSHI_lip_read ( )

Definition at line 203 of file agent-tbb.c.

◆ LUSHI_lip_write()

int LUSHI_lip_write ( )

Definition at line 210 of file agent-tbb.c.

◆ LUSHI_reg_dlopen()

int LUSHI_reg_dlopen ( )

Definition at line 133 of file agent-tbb.c.

◆ LUSHI_set_active_frame_marker()

int LUSHI_set_active_frame_marker ( )

Definition at line 178 of file agent-tbb.c.

◆ LUSHI_step_bichord()

lush_step_t LUSHI_step_bichord ( lush_cursor_t cursor)

Definition at line 154 of file agent-tbb.c.

◆ LUSHI_step_lnote()

lush_step_t LUSHI_step_lnote ( lush_cursor_t cursor)

Definition at line 170 of file agent-tbb.c.

◆ LUSHI_step_pnote()

lush_step_t LUSHI_step_pnote ( lush_cursor_t cursor)

Definition at line 162 of file agent-tbb.c.

◆ LUSHI_strerror()

char* LUSHI_strerror ( int  code)

Definition at line 122 of file agent-tbb.c.

Variable Documentation

◆ MY_lush_aid

lush_agentid_t MY_lush_aid
static

Definition at line 89 of file agent-tbb.c.