HPCToolkit
sample_event.h File Reference
#include <stdint.h>
#include <stdbool.h>
#include "cct.h"
#include "thread_data.h"
#include "cct_insert_backtrace.h"
#include <trampoline/common/trampoline.h>
#include <unwind/common/backtrace.h>
#include <messages/messages.h>
Include dependency graph for sample_event.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  sample_val_s
 
struct  sampling_info_s
 

Macros

#define SAMPLING_IN_MALLOC   1
 
#define SAMPLING_FIRST_TOUCH   2
 
#define SAMPLING_DATA_NODE   4
 

Typedefs

typedef struct sample_val_s sample_val_t
 
typedef struct sampling_info_s sampling_info_t
 

Functions

static bool hpcrun_is_sampling_disabled (void)
 
static void hpcrun_disable_sampling (void)
 
static void hpcrun_enable_sampling (void)
 
void hpcrun_drop_sample (void)
 
static void hpcrun_sample_val_init (sample_val_t *x)
 
sample_val_t hpcrun_sample_callpath (void *context, int metricId, hpcrun_metricVal_t metricIncr, int skipInner, int isSync, sampling_info_t *data)
 
cct_node_thpcrun_gen_thread_ctxt (void *context)
 
cct_node_thpcrun_sample_callpath_w_bt (void *context, int metricId, uint64_t metricIncr, bt_mut_fn bt_fn, bt_fn_arg arg, int isSync)
 

Variables

bool private_hpcrun_sampling_disabled
 

Macro Definition Documentation

◆ SAMPLING_DATA_NODE

#define SAMPLING_DATA_NODE   4

Definition at line 115 of file sample_event.h.

◆ SAMPLING_FIRST_TOUCH

#define SAMPLING_FIRST_TOUCH   2

Definition at line 114 of file sample_event.h.

◆ SAMPLING_IN_MALLOC

#define SAMPLING_IN_MALLOC   1

Definition at line 113 of file sample_event.h.

Typedef Documentation

◆ sample_val_t

typedef struct sample_val_s sample_val_t

◆ sampling_info_t

Function Documentation

◆ hpcrun_disable_sampling()

static void hpcrun_disable_sampling ( void  )
inlinestatic

Definition at line 79 of file sample_event.h.

Here is the caller graph for this function:

◆ hpcrun_drop_sample()

void hpcrun_drop_sample ( void  )

Definition at line 151 of file sample_event.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ hpcrun_enable_sampling()

static void hpcrun_enable_sampling ( void  )
inlinestatic

Definition at line 86 of file sample_event.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ hpcrun_gen_thread_ctxt()

cct_node_t* hpcrun_gen_thread_ctxt ( void *  context)

Definition at line 322 of file sample_event.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ hpcrun_is_sampling_disabled()

static bool hpcrun_is_sampling_disabled ( void  )
inlinestatic

Definition at line 73 of file sample_event.h.

Here is the caller graph for this function:

◆ hpcrun_sample_callpath()

sample_val_t hpcrun_sample_callpath ( void *  context,
int  metricId,
hpcrun_metricVal_t  metricIncr,
int  skipInner,
int  isSync,
sampling_info_t data 
)

Definition at line 160 of file sample_event.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ hpcrun_sample_callpath_w_bt()

cct_node_t* hpcrun_sample_callpath_w_bt ( void *  context,
int  metricId,
uint64_t  metricIncr,
bt_mut_fn  bt_fn,
bt_fn_arg  arg,
int  isSync 
)
Here is the caller graph for this function:

◆ hpcrun_sample_val_init()

static void hpcrun_sample_val_init ( sample_val_t x)
inlinestatic

Definition at line 102 of file sample_event.h.

Here is the caller graph for this function:

Variable Documentation

◆ private_hpcrun_sampling_disabled

bool private_hpcrun_sampling_disabled

Definition at line 148 of file sample_event.c.