1#ifndef INC_st_instrumentation_h
2#define INC_st_instrumentation_h
11#define INST_MAX_LENGTH 4096
14#define st_buffer_free_space(buf) (buf->size - buf->count)
15#define st_buffer_write_ptr(buf) (buf->buffer + buf->write_pos)
16#define st_buffer_read_ptr(buf) (buf->buffer + buf->read_pos)
const tw_optdef * st_special_lp_opts(void)
void st_model_settype(tw_lpid i, st_model_types *model_types)
void(* sample_event_f)(void *state, tw_bf *b, tw_lp *lp, void *sample)
void st_collect_event_data(tw_event *cev, double recv_rt)
void st_inst_finalize(tw_pe *me)
tw_clock g_st_rt_samp_start_cycles
void st_collect_engine_data_kps(tw_pe *me, tw_kp *kp, sample_metadata *sample_md, int col_type)
int g_st_buffer_free_percent
void(* sample_revent_f)(void *state, tw_bf *b, tw_lp *lp, void *sample)
void specialized_lp_setup()
void st_collect_engine_data(tw_pe *me, int col_type)
void st_model_setup_types(tw_lp *lp)
void st_collect_engine_data_lps(tw_lp *lp, sample_metadata *sample_md, int col_type)
void st_buffer_push(int type, char *data, int size)
tw_clock g_st_rt_interval
void(* ev_trace_f)(void *msg, tw_lp *lp, char *buffer, int *collect_flag)
void st_collect_model_data(tw_pe *pe, double current_rt, int stats_type)
void(* model_stat_f)(void *sv, tw_lp *lp, char *buffer)
void st_buffer_init(int type)
char stats_directory[4096]
void specialized_lp_init_mapping()
const tw_optdef * st_inst_opts()
char g_st_stats_out[4096]
char g_st_stats_path[4096]
tw_lpid g_st_analysis_nlp
void st_buffer_allocate()
st_model_types * g_st_model_types
void specialized_lp_run()
void st_collect_engine_data_pes(tw_pe *pe, sample_metadata *sample_md, tw_statistics *s, int col_type)
tw_lpid g_st_total_model_lps
void st_buffer_write(int end_of_sim, int type)
void st_buffer_finalize(int type)
int g_st_use_analysis_lps
void(* sample_event_f)(void *state, tw_bf *b, tw_lp *lp, void *sample)
void(* sample_revent_f)(void *state, tw_bf *b, tw_lp *lp, void *sample)
void(* ev_trace_f)(void *msg, tw_lp *lp, char *buffer, int *collect_flag)
void(* model_stat_f)(void *sv, tw_lp *lp, char *buffer)
st_model_types model_types[]
unsigned int model_data_sz
unsigned int s_nsend_network
unsigned int s_rb_secondary
unsigned int s_nevent_processed
unsigned int s_nread_network
unsigned int s_nevent_abort
unsigned int s_nread_network
unsigned int s_nevent_processed
unsigned int s_nevent_abort
unsigned int s_nsend_network
size_t ev_sz
size of data collected from model for each event
sample_event_f sample_event_fn
sample_revent_f sample_revent_fn
size_t mstat_sz
size of data collected from model at sampling points
ev_trace_f ev_trace
function pointer to collect data about all events for given LP
model_stat_f model_stat_fn
function pointer to collect model level data for RT and GVT-based instrumentation
unsigned int all_reduce_count
unsigned int s_fc_attempts
unsigned int s_nevent_abort
unsigned int s_nread_network
unsigned int s_nsend_network
unsigned int s_nevent_processed
unsigned int s_rb_secondary
unsigned int s_pe_event_ties
Reverse Computation Bitfield.
Holds the entire PE state.
Statistics tallied over the duration of the simulation.