Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
codes
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
38
Issues
38
List
Boards
Labels
Milestones
Merge Requests
8
Merge Requests
8
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
codes
codes
Commits
1203794b
Commit
1203794b
authored
Jan 13, 2017
by
Caitlin Ross
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding event type collection to fat tree synthetic workload LP
parent
ac24d4e7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
0 deletions
+32
-0
README-vis.md
README-vis.md
+1
-0
src/network-workloads/model-net-synthetic-fattree.c
src/network-workloads/model-net-synthetic-fattree.c
+31
-0
No files found.
README-vis.md
View file @
1203794b
...
...
@@ -133,3 +133,4 @@ Any other LPs built off of the model net LP, can be changed in the same way.
-
dfly server LP (model-net-synthetic.c)
-
fat tree terminal and switch LPs (fattree.c)
-
model-net-base-lp (model-net-lp.c)
-
fat tree server LP (model-net-synthetic-fattree.c)
src/network-workloads/model-net-synthetic-fattree.c
View file @
1203794b
...
...
@@ -120,6 +120,34 @@ tw_lptype svr_lp = {
sizeof
(
svr_state
),
};
/* setup for the ROSS event tracing
* can have a different function for rbev_trace_f and ev_trace_f
* but right now it is set to the same function for both
*/
void
ft_svr_event_collect
(
svr_msg
*
m
,
tw_lp
*
lp
,
char
*
buffer
)
{
int
type
=
(
int
)
m
->
svr_event_type
;
memcpy
(
buffer
,
&
type
,
sizeof
(
type
));
}
st_trace_type
ft_svr_trace_types
[]
=
{
{(
rbev_trace_f
)
ft_svr_event_collect
,
sizeof
(
int
),
(
ev_trace_f
)
ft_svr_event_collect
,
sizeof
(
int
)},
{
0
}
};
static
const
st_trace_type
*
ft_svr_get_trace_types
(
void
)
{
return
(
&
ft_svr_trace_types
[
0
]);
}
void
ft_svr_register_trace
()
{
trace_type_register
(
"server"
,
ft_svr_get_trace_types
());
}
const
tw_optdef
app_opt
[]
=
{
TWOPT_GROUP
(
"Model net synthetic traffic "
),
...
...
@@ -408,6 +436,9 @@ int main(
svr_add_lp_type
();
if
(
g_st_ev_trace
)
ft_svr_register_trace
();
codes_mapping_setup
();
...
...
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