Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Xin Wang
codes-dev
Commits
14fe3bce
Commit
14fe3bce
authored
Mar 28, 2014
by
Jonathan Jenkins
Browse files
clean up bgp opts in workload printer
parent
406bab44
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/workload/codes-workload-dump.c
View file @
14fe3bce
...
...
@@ -119,23 +119,29 @@ int main(int argc, char *argv[])
}
else
if
(
strcmp
(
type
,
"bgp_io_workload"
)
==
0
){
if
(
b_params
.
num_cns
==
0
){
fprintf
(
stderr
,
"Expected
\"
--i-rank-cnt
\"
argument for bgp io workload
\n
"
);
usage
();
return
1
;
if
(
n
==
-
1
){
fprintf
(
stderr
,
"Expected
\"
--i-rank-cnt
\"
or
\"
--num-ranks
\"
argument for bgp io workload
\n
"
);
usage
();
return
1
;
}
else
{
b_params
.
num_cns
=
n
;
}
}
else
if
(
b_params
.
io_kernel_meta_path
[
0
]
==
'\0'
){
fprintf
(
stderr
,
"Expected
\"
--i-meta
\"
argument for bgp io workload
\n
"
);
usage
();
return
1
;
}
/* TODO: unused in codes-base, codes-triton, but don't remove entirely for now
else if (b_params.bgp_config_file[0] == '\0'){
fprintf(stderr, "Expected \"--i-bgp-conf\" argument for bgp io workload\n");
usage();
return 1;
}
else
{
wparams
=
(
char
*
)
&
b_params
;
}
*/
wparams
=
(
char
*
)
&
b_params
;
}
else
if
(
strcmp
(
type
,
"recorder_io_workload"
)
==
0
){
if
(
r_params
.
trace_dir_path
[
0
]
==
'\0'
){
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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