Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LARN
PRRT
Commits
f9cfa765
Commit
f9cfa765
authored
Nov 16, 2018
by
rna
Browse files
+= optimized parameter for time-* apps
parent
e5807511
Pipeline
#3262
passed with stages
in 1 minute and 20 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
prrt/time-receiver.c
View file @
f9cfa765
...
...
@@ -24,6 +24,7 @@ struct arguments {
uint16_t
size
;
char
*
outfile
;
char
*
target
;
bool
optimized
;
bool
thread_pinning
;
};
...
...
@@ -89,6 +90,7 @@ int main(int argc, char **argv) {
.
rounds
=
127
,
.
size
=
1500
,
.
outfile
=
"-"
,
.
optimized
=
true
,
.
thread_pinning
=
false
,
};
argp_parse
(
&
argp
,
argc
,
argv
,
0
,
0
,
&
arguments
);
...
...
prrt/time-sender.c
View file @
f9cfa765
...
...
@@ -15,6 +15,7 @@ static struct argp_option options[] = {
{
"rounds"
,
'r'
,
"ROUNDS"
,
0
,
"Rounds"
},
{
"size"
,
's'
,
"SIZE"
,
0
,
"Size"
},
{
"output"
,
'o'
,
"FILE"
,
0
,
"Output to FILE instead of standard output"
},
{
"unoptimized"
,
'U'
,
0
,
0
,
"Disable TCP optimizations"
},
{
"threadpinning"
,
'T'
,
0
,
0
,
"Enable thread pinning"
},
{
0
}
};
...
...
@@ -27,6 +28,7 @@ struct arguments
uint16_t
rounds
;
uint16_t
size
;
char
*
outfile
;
bool
optimized
;
bool
thread_pinning
;
};
...
...
@@ -57,6 +59,9 @@ static error_t parse_opt (int key, char *arg, struct argp_state *state)
case
'o'
:
arguments
->
outfile
=
arg
;
break
;
case
'U'
:
arguments
->
optimized
=
false
;
break
;
case
'T'
:
arguments
->
thread_pinning
=
true
;
break
;
...
...
@@ -81,6 +86,7 @@ int main(int argc, char **argv) {
.
size
=
1500
,
.
rounds
=
127
,
.
outfile
=
"-"
,
.
optimized
=
true
,
.
thread_pinning
=
false
,
};
argp_parse
(
&
argp
,
argc
,
argv
,
0
,
0
,
&
arguments
);
...
...
Write
Preview
Supports
Markdown
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