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
4457f310
Commit
4457f310
authored
Sep 29, 2017
by
Caitlin Ross
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding support for ROSS analysis LP feature
parent
e213f4ce
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
154 additions
and
10 deletions
+154
-10
src/network-workloads/model-net-mpi-replay.c
src/network-workloads/model-net-mpi-replay.c
+1
-1
src/network-workloads/model-net-synthetic.c
src/network-workloads/model-net-synthetic.c
+5
-2
src/networks/model-net/dragonfly.c
src/networks/model-net/dragonfly.c
+130
-3
src/networks/model-net/model-net-lp.c
src/networks/model-net/model-net-lp.c
+16
-2
src/networks/model-net/read-dragonfly-sample.c
src/networks/model-net/read-dragonfly-sample.c
+1
-1
src/util/codes_mapping.c
src/util/codes_mapping.c
+1
-1
No files found.
src/network-workloads/model-net-mpi-replay.c
View file @
4457f310
...
...
@@ -2624,7 +2624,7 @@ int modelnet_mpi_replay(MPI_Comm comm, int* argc, char*** argv )
nw_add_lp_type
();
model_net_register
();
if
(
g_st_ev_trace
||
g_st_model_stats
)
if
(
g_st_ev_trace
||
g_st_model_stats
||
g_st_use_analysis_lps
)
nw_lp_register_model
();
net_ids
=
model_net_configure
(
&
num_nets
);
...
...
src/network-workloads/model-net-synthetic.c
View file @
4457f310
...
...
@@ -137,8 +137,11 @@ st_model_types svr_model_types[] = {
(
ev_trace_f
)
svr_event_collect
,
sizeof
(
int
),
(
model_stat_f
)
svr_model_stat_collect
,
0
,
NULL
,
NULL
,
0
},
{
NULL
,
0
,
NULL
,
0
,
NULL
,
0
}
{
NULL
,
0
,
NULL
,
0
,
NULL
,
0
,
NULL
,
NULL
,
0
}
};
static
const
st_model_types
*
svr_get_model_stat_types
(
void
)
...
...
@@ -424,7 +427,7 @@ int main(
model_net_register
();
svr_add_lp_type
();
if
(
g_st_ev_trace
||
g_st_model_stats
)
if
(
g_st_ev_trace
||
g_st_model_stats
||
g_st_use_analysis_lps
)
svr_register_model_types
();
codes_mapping_setup
();
...
...
src/networks/model-net/dragonfly.c
View file @
4457f310
This diff is collapsed.
Click to expand it.
src/networks/model-net/model-net-lp.c
View file @
4457f310
...
...
@@ -164,6 +164,16 @@ void mn_model_stat_collect(model_net_base_state *s, tw_lp *lp, char *buffer)
return
;
}
void
mn_sample_event
(
model_net_base_state
*
s
,
tw_bf
*
bf
,
tw_lp
*
lp
,
void
*
sample
)
{
(
*
s
->
sub_model_type
->
sample_event_fn
)(
s
->
sub_state
,
bf
,
lp
,
sample
);
}
void
mn_sample_rc_event
(
model_net_base_state
*
s
,
tw_bf
*
bf
,
tw_lp
*
lp
,
void
*
sample
)
{
(
*
s
->
sub_model_type
->
sample_revent_fn
)(
s
->
sub_state
,
bf
,
lp
,
sample
);
}
st_model_types
mn_model_types
[
MAX_NETS
];
st_model_types
mn_model_base_type
=
{
...
...
@@ -172,6 +182,9 @@ st_model_types mn_model_base_type = {
(
ev_trace_f
)
mn_event_collect
,
sizeof
(
int
),
(
model_stat_f
)
mn_model_stat_collect
,
0
,
(
sample_event_f
)
mn_sample_event
,
(
sample_revent_f
)
mn_sample_rc_event
,
0
};
...
...
@@ -213,7 +226,7 @@ void model_net_base_register(int *do_config_nets){
&
model_net_base_lp
);
else
method_array
[
i
]
->
mn_register
(
&
model_net_base_lp
);
if
(
g_st_ev_trace
||
g_st_model_stats
)
// for ROSS event tracing
if
(
g_st_ev_trace
||
g_st_model_stats
||
g_st_use_analysis_lps
)
// for ROSS event tracing
{
memcpy
(
&
mn_model_types
[
i
],
&
mn_model_base_type
,
sizeof
(
st_model_types
));
...
...
@@ -465,10 +478,11 @@ void model_net_base_lp_init(
ns
->
sub_type
=
model_net_get_lp_type
(
ns
->
net_id
);
/* some ROSS instrumentation setup */
if
(
g_st_ev_trace
||
g_st_model_stats
)
if
(
g_st_ev_trace
||
g_st_model_stats
||
g_st_use_analysis_lps
)
{
ns
->
sub_model_type
=
model_net_get_model_stat_type
(
ns
->
net_id
);
mn_model_types
[
ns
->
net_id
].
mstat_sz
=
ns
->
sub_model_type
->
mstat_sz
;
mn_model_types
[
ns
->
net_id
].
sample_struct_sz
=
ns
->
sub_model_type
->
sample_struct_sz
;
}
// NOTE: some models actually expect LP state to be 0 initialized...
...
...
src/networks/model-net/read-dragonfly-sample.c
View file @
4457f310
...
...
@@ -5,7 +5,7 @@ n is the number of input bgp-log files */
#include <sys/stat.h>
#include <mpi.h>
#include <assert.h>
#define RADIX
16
#define RADIX
8
struct
dfly_samples
{
...
...
src/util/codes_mapping.c
View file @
4457f310
...
...
@@ -489,7 +489,7 @@ static void codes_mapping_init(void)
else
/* sorry, const... */
tw_lp_settype
(
ross_lid
,
(
tw_lptype
*
)
lptype
);
if
(
g_st_ev_trace
||
g_st_model_stats
)
if
(
g_st_ev_trace
||
g_st_model_stats
||
g_st_use_analysis_lps
)
{
trace_type
=
st_model_type_lookup
(
lp_type_name
);
st_model_settype
(
ross_lid
,
(
st_model_types
*
)
trace_type
);
...
...
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