Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
codes
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
38
Issues
38
List
Boards
Labels
Milestones
Merge Requests
8
Merge Requests
8
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
codes
codes
Commits
796e8dfa
Commit
796e8dfa
authored
Feb 09, 2018
by
Caitlin Ross
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
some changes to ROSS inst support for slimfly
parent
840f6701
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
1 deletion
+32
-1
slimfly.c
src/networks/model-net/slimfly.c
+32
-1
No files found.
src/networks/model-net/slimfly.c
View file @
796e8dfa
...
...
@@ -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
]);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment