ROSS
Functions | Variables
st-instrumentation.c File Reference
#include <ross.h>
#include <sys/stat.h>

Go to the source code of this file.

Functions

const tw_optdefst_inst_opts (void)
 
void st_inst_init (void)
 
void st_inst_dump ()
 
void st_inst_finalize (tw_pe *me)
 

Variables

char g_st_stats_out [INST_MAX_LENGTH] = {0}
 
char g_st_stats_path [4096] = {0}
 
int g_st_pe_data = 1
 
int g_st_kp_data = 0
 
int g_st_lp_data = 0
 
int g_st_disable_out = 0
 
int g_st_model_stats = 0
 
int g_st_engine_stats = 0
 
int g_st_gvt_sampling = 0
 
int g_st_num_gvt = 10
 
int g_st_rt_sampling = 0
 
tw_clock g_st_rt_interval = 1000
 
tw_clock g_st_rt_samp_start_cycles = 0
 
double g_st_vt_interval = 1000000
 
double g_st_sampling_end = 0
 
static const tw_optdef inst_options []
 

Function Documentation

void st_inst_dump ( )

Definition at line 88 of file st-instrumentation.c.

References ALL_STATS, ANALYSIS_LP, EV_TRACE, g_st_disable_out, g_st_engine_stats, g_st_ev_trace, g_st_model_stats, g_st_use_analysis_lps, GVT_COL, GVT_STATS, MODEL_COL, RT_COL, RT_STATS, and st_buffer_write().

Referenced by tw_gvt_step2().

Here is the call graph for this function:

Here is the caller graph for this function:

void st_inst_finalize ( tw_pe me)
void st_inst_init ( void  )

Definition at line 51 of file st-instrumentation.c.

References ALL_STATS, EV_TRACE, g_st_engine_stats, g_st_ev_trace, g_st_gvt_sampling, g_st_model_stats, g_st_rt_interval, g_st_rt_samp_start_cycles, g_st_rt_sampling, g_tw_clock_rate, GVT_COL, GVT_STATS, MODEL_COL, RT_COL, RT_STATS, specialized_lp_run(), st_buffer_init(), and tw_clock_read().

Referenced by tw_run().

Here is the call graph for this function:

Here is the caller graph for this function:

const tw_optdef* st_inst_opts ( void  )

Definition at line 46 of file st-instrumentation.c.

References inst_options.

Referenced by tw_init().

Here is the caller graph for this function:

Variable Documentation

int g_st_disable_out = 0
int g_st_engine_stats = 0
int g_st_gvt_sampling = 0

Definition at line 14 of file st-instrumentation.c.

Referenced by st_inst_init().

int g_st_kp_data = 0

Definition at line 7 of file st-instrumentation.c.

Referenced by st_collect_engine_data().

int g_st_lp_data = 0

Definition at line 8 of file st-instrumentation.c.

Referenced by st_collect_engine_data().

int g_st_model_stats = 0
int g_st_num_gvt = 10

Definition at line 15 of file st-instrumentation.c.

Referenced by tw_gvt_step2().

int g_st_pe_data = 1

Definition at line 6 of file st-instrumentation.c.

Referenced by st_collect_engine_data().

tw_clock g_st_rt_interval = 1000
tw_clock g_st_rt_samp_start_cycles = 0
int g_st_rt_sampling = 0
double g_st_sampling_end = 0

Definition at line 22 of file st-instrumentation.c.

Referenced by specialized_lp_run(), and st_create_sample_event().

char g_st_stats_out[INST_MAX_LENGTH] = {0}

Definition at line 4 of file st-instrumentation.c.

Referenced by st_buffer_init().

char g_st_stats_path[4096] = {0}

Definition at line 5 of file st-instrumentation.c.

Referenced by st_buffer_allocate().

double g_st_vt_interval = 1000000

Definition at line 21 of file st-instrumentation.c.

Referenced by st_create_sample_event().

const tw_optdef inst_options[]
static
Initial value:
= {
TWOPT_GROUP("ROSS Instrumentation"),
TWOPT_UINT("engine-stats", g_st_engine_stats, "Collect sim engine level stats; 0 don't collect, 1 GVT-sampling, 2 RT sampling, 3 VT sampling, 4 All sampling modes"),
TWOPT_UINT("model-stats", g_st_model_stats, "Collect model level stats (requires model-level implementation); 0 don't collect, 1 GVT-sampling, 2 RT sampling, 3 VT sampling, 4 all sampling modes"),
TWOPT_UINT("num-gvt", g_st_num_gvt, "number of GVT computations between GVT-based sampling points"),
TWOPT_ULONGLONG("rt-interval", g_st_rt_interval, "real time sampling interval in ms"),
TWOPT_DOUBLE("vt-interval", g_st_vt_interval, "Virtual time sampling interval"),
TWOPT_DOUBLE("vt-samp-end", g_st_sampling_end, "End time for virtual time sampling (if different from g_tw_ts_end)"),
TWOPT_UINT("pe-data", g_st_pe_data, "Turn on/off collection of sim engine data at PE level"),
TWOPT_UINT("kp-data", g_st_kp_data, "Turn on/off collection of sim engine data at KP level"),
TWOPT_UINT("lp-data", g_st_lp_data, "Turn on/off collection of sim engine data at LP level"),
TWOPT_UINT("event-trace", g_st_ev_trace, "collect detailed data on all events for specified LPs; 0, no trace, 1 full trace, 2 only events causing rollbacks, 3 only committed events"),
TWOPT_CHAR("stats-prefix", g_st_stats_out, "prefix for filename(s) for stats output"),
TWOPT_CHAR("stats-path", g_st_stats_path, "path to directory to save instrumentation output"),
TWOPT_UINT("buffer-size", g_st_buffer_size, "size of buffer in bytes for stats collection"),
TWOPT_UINT("buffer-free", g_st_buffer_free_percent, "percentage of free space left in buffer before writing out at GVT"),
TWOPT_UINT("disable-output", g_st_disable_out, "used for perturbation analysis; buffer never dumped to file when 1"),
}
tw_clock g_st_rt_interval
char g_st_stats_path[4096]
int g_st_lp_data
#define TWOPT_CHAR(n, v, h)
Definition: tw-opts.h:33
int g_st_pe_data
#define TWOPT_DOUBLE(n, v, h)
Definition: tw-opts.h:32
int g_st_engine_stats
int g_st_buffer_free_percent
#define TWOPT_ULONGLONG(n, v, h)
Definition: tw-opts.h:29
int g_st_buffer_size
double g_st_sampling_end
#define TWOPT_UINT(n, v, h)
Definition: tw-opts.h:30
int g_st_model_stats
double g_st_vt_interval
#define TWOPT_GROUP(h)
Definition: tw-opts.h:27
int g_st_ev_trace
Definition: st-event-trace.c:3
int g_st_kp_data
int g_st_disable_out
char g_st_stats_out[INST_MAX_LENGTH]
int g_st_num_gvt

Definition at line 26 of file st-instrumentation.c.

Referenced by st_inst_opts().