Commit 796e8dfa authored by Caitlin Ross's avatar Caitlin Ross

some changes to ROSS inst support for slimfly

parent 840f6701
......@@ -294,6 +294,8 @@ void slimfly_event_collect(slim_terminal_message *m, tw_lp *lp, char *buffer, in
void slimfly_model_stat_collect(terminal_state *s, tw_lp *lp, char *buffer);
static void ross_slimfly_sample_fn(terminal_state * s, tw_bf * bf, tw_lp * lp, struct slimfly_sample *sample);
static void ross_slimfly_sample_rc_fn(terminal_state * s, tw_bf * bf, tw_lp * lp, struct slimfly_sample *sample);
static void ross_slimfly_rsample_fn(router_state * s, tw_bf * bf, tw_lp * lp, struct slimfly_sample *sample);
static void ross_slimfly_rsample_rc_fn(router_state * s, tw_bf * bf, tw_lp * lp, struct slimfly_sample *sample);
st_model_types slimfly_model_types[] = {
{(rbev_trace_f) slimfly_event_collect,
......@@ -301,10 +303,19 @@ st_model_types slimfly_model_types[] = {
(ev_trace_f) slimfly_event_collect,
sizeof(int),
(model_stat_f) slimfly_model_stat_collect,
sizeof(tw_lpid) + sizeof(long) * 2 + sizeof(double) + sizeof(tw_stime) *2,
0, // update this when changing slimfly_model_stat_collect
(sample_event_f) ross_slimfly_sample_fn,
(sample_revent_f) ross_slimfly_sample_rc_fn,
sizeof(struct slimfly_sample) } ,
{(rbev_trace_f) slimfly_event_collect,
sizeof(int),
(ev_trace_f) slimfly_event_collect,
sizeof(int),
(model_stat_f) slimfly_model_stat_collect,
0, // update this when changing slimfly_model_stat_collect
(sample_event_f) ross_slimfly_rsample_fn,
(sample_revent_f) ross_slimfly_rsample_rc_fn,
sizeof(struct slimfly_sample) } ,
{NULL, 0, NULL, 0, NULL, 0, NULL, NULL, 0}
};
/* End of ROSS model stats collection */
......@@ -3437,6 +3448,26 @@ static void ross_slimfly_sample_rc_fn(terminal_state * s, tw_bf * bf, tw_lp * lp
return;
}
static void ross_slimfly_rsample_fn(router_state * s, tw_bf * bf, tw_lp * lp, struct slimfly_sample *sample)
{
(void)lp;
(void)bf;
(void)s;
(void)sample;
return;
}
static void ross_slimfly_rsample_rc_fn(router_state * s, tw_bf * bf, tw_lp * lp, struct slimfly_sample *sample)
{
(void)lp;
(void)bf;
(void)s;
(void)sample;
return;
}
static const st_model_types *slimfly_get_model_types(void)
{
return(&slimfly_model_types[0]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment