HPCToolkit
agent-pthread.c File Reference
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <assert.h>
#include <include/min-max.h>
#include "agent-pthread.h"
#include <thread_data.h>
#include <lush/lush-pthread.h>
#include <lib/prof-lean/atomic.h>
Include dependency graph for agent-pthread.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 85 of file agent-pthread.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 228 of file agent-pthread.c.

Here is the call graph for this function:

◆ LUSHI_fini()

int LUSHI_fini ( )

Definition at line 122 of file agent-pthread.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 103 of file agent-pthread.c.

◆ LUSHI_ismycode()

bool LUSHI_ismycode ( void *  addr)

Definition at line 147 of file agent-pthread.c.

◆ LUSHI_lip_destroy()

int LUSHI_lip_destroy ( lush_lip_t lip)

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

◆ LUSHI_lip_eq()

int LUSHI_lip_eq ( lush_lip_t lip)

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

◆ LUSHI_lip_read()

int LUSHI_lip_read ( )

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

◆ LUSHI_lip_write()

int LUSHI_lip_write ( )

Definition at line 217 of file agent-pthread.c.

◆ LUSHI_reg_dlopen()

int LUSHI_reg_dlopen ( )

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

◆ LUSHI_set_active_frame_marker()

int LUSHI_set_active_frame_marker ( )

Definition at line 185 of file agent-pthread.c.

◆ LUSHI_step_bichord()

lush_step_t LUSHI_step_bichord ( lush_cursor_t cursor)

Definition at line 161 of file agent-pthread.c.

◆ LUSHI_step_lnote()

lush_step_t LUSHI_step_lnote ( lush_cursor_t cursor)

Definition at line 177 of file agent-pthread.c.

◆ LUSHI_step_pnote()

lush_step_t LUSHI_step_pnote ( lush_cursor_t cursor)

Definition at line 169 of file agent-pthread.c.

◆ LUSHI_strerror()

char* LUSHI_strerror ( int  code)

Definition at line 129 of file agent-pthread.c.

Variable Documentation

◆ MY_lush_aid

lush_agentid_t MY_lush_aid
static

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