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
e116532c
Commit
e116532c
authored
Jan 12, 2017
by
Caitlin Ross
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added event tracing functionality to model-net-mpi-replay LP
parent
5ef517b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
0 deletions
+32
-0
src/network-workloads/model-net-mpi-replay.c
src/network-workloads/model-net-mpi-replay.c
+32
-0
No files found.
src/network-workloads/model-net-mpi-replay.c
View file @
e116532c
...
...
@@ -1558,6 +1558,35 @@ static void nw_add_lp_type()
lp_type_register
(
"nw-lp"
,
nw_get_lp_type
());
}
/* 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
nw_lp_event_collect
(
nw_message
*
m
,
tw_lp
*
lp
,
char
*
buffer
)
{
int
type
=
m
->
msg_type
;
memcpy
(
buffer
,
&
type
,
sizeof
(
type
));
}
st_trace_type
nw_lp_trace_types
[]
=
{
{(
rbev_trace_f
)
nw_lp_event_collect
,
sizeof
(
int
),
(
ev_trace_f
)
nw_lp_event_collect
,
sizeof
(
int
)},
{
0
}
};
static
const
st_trace_type
*
nw_lp_get_trace_types
(
void
)
{
return
(
&
nw_lp_trace_types
[
0
]);
}
void
nw_lp_register_trace
()
{
trace_type_register
(
"nw-lp"
,
nw_lp_get_trace_types
());
}
/* end of ROSS event tracing setup */
int
main
(
int
argc
,
char
**
argv
)
{
int
rank
,
nprocs
;
...
...
@@ -1629,6 +1658,9 @@ int main( int argc, char** argv )
nw_add_lp_type
();
model_net_register
();
if
(
g_st_ev_trace
)
nw_lp_register_trace
();
net_ids
=
model_net_configure
(
&
num_nets
);
// assert(num_nets == 1);
net_id
=
*
net_ids
;
...
...
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