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