ROSS
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

◆ st_inst_dump()

◆ st_inst_finalize()

◆ st_inst_init()

◆ st_inst_opts()

const tw_optdef * st_inst_opts ( void )

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

References inst_options.

Referenced by tw_init().

Variable Documentation

◆ g_st_disable_out

◆ g_st_engine_stats

◆ g_st_gvt_sampling

int g_st_gvt_sampling = 0

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

Referenced by st_inst_init().

◆ g_st_kp_data

int g_st_kp_data = 0

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

Referenced by st_collect_engine_data().

◆ g_st_lp_data

int g_st_lp_data = 0

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

Referenced by st_collect_engine_data().

◆ g_st_model_stats

◆ g_st_num_gvt

int g_st_num_gvt = 10

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

Referenced by tw_gvt_step2().

◆ g_st_pe_data

int g_st_pe_data = 1

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

Referenced by st_collect_engine_data().

◆ g_st_rt_interval

◆ g_st_rt_samp_start_cycles

◆ g_st_rt_sampling

◆ g_st_sampling_end

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().

◆ g_st_stats_out

char g_st_stats_out[INST_MAX_LENGTH] = {0}

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

Referenced by st_buffer_init().

◆ g_st_stats_path

char g_st_stats_path[4096] = {0}

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

Referenced by st_buffer_allocate().

◆ g_st_vt_interval

double g_st_vt_interval = 1000000

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

Referenced by st_create_sample_event().

◆ inst_options

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"),
}
int g_st_lp_data
int g_st_model_stats
int g_st_buffer_free_percent
double g_st_vt_interval
double g_st_sampling_end
tw_clock g_st_rt_interval
int g_st_kp_data
int g_st_engine_stats
int g_st_ev_trace
int g_st_disable_out
int g_st_buffer_size
char g_st_stats_out[4096]
char g_st_stats_path[4096]
int g_st_num_gvt
int g_st_pe_data
#define TWOPT_UINT(n, v, h)
Definition tw-opts.h:33
#define TWOPT_GROUP(h)
Definition tw-opts.h:30
#define TWOPT_ULONGLONG(n, v, h)
Definition tw-opts.h:32
#define TWOPT_CHAR(n, v, h)
Definition tw-opts.h:36
#define TWOPT_DOUBLE(n, v, h)
Definition tw-opts.h:35

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

Referenced by st_inst_opts().