Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
tsn-measures
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
tsn-measures
Commits
7e556b26
Commit
7e556b26
authored
Jun 23, 2020
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve statistics display
parent
0d43af0a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
11 deletions
+24
-11
packet-exchange/src/client.c
packet-exchange/src/client.c
+18
-7
packet-exchange/src/server.c
packet-exchange/src/server.c
+6
-4
No files found.
packet-exchange/src/client.c
View file @
7e556b26
...
@@ -221,16 +221,27 @@ int main(int argc, char *argv[]) {
...
@@ -221,16 +221,27 @@ int main(int argc, char *argv[]) {
if
(
main_params
.
verbose
)
{
if
(
main_params
.
verbose
)
{
if
(
tsn_task
==
RTT_TASK
)
{
if
(
tsn_task
==
RTT_TASK
)
{
printf
(
"%
10"
PRIu64
":
RTT: %4d %4d %4d
\n
"
,
nb_cycles
,
rtt_stats
.
min_rtt
,
printf
(
"%
9"
PRIu64
":
RTT: %4d %4d %4d
\n
"
,
nb_cycles
,
rtt_stats
.
min_rtt
,
rtt_stats
.
avg_rtt
,
rtt_stats
.
avg_rtt
,
rtt_stats
.
max_rtt
);
rtt_stats
.
max_rtt
);
printf
(
"
\033
[%dA"
,
1
);
printf
(
"
\033
[%dA"
,
1
);
}
else
if
(
enable_timestamps
)
{
}
else
{
printf
(
"%10"
PRIu64
": K: %4d %4d %4d
\n
"
,
printf
(
"%9"
PRIu64
": [%4d, %4d]"
,
nb_cycles
,
egress_stats
.
min_kernel_latency
,
nb_cycles
,
egress_stats
.
avg_kernel_latency
,
(
int
)
egress_stats
.
invalid_parameter
,
egress_stats
.
max_kernel_latency
);
(
int
)
egress_stats
.
missed_deadline
);
if
(
enable_timestamps
)
{
printf
(
", K: %4d %4d %4d [%4d]
\n
"
,
egress_stats
.
min_kernel_latency
,
egress_stats
.
avg_kernel_latency
,
egress_stats
.
max_kernel_latency
,
(
int
)
egress_stats
.
high_kernel_latency
);
}
else
{
printf
(
"
\n
"
);
}
printf
(
"
\033
[%dA"
,
1
);
printf
(
"
\033
[%dA"
,
1
);
}
}
}
}
...
...
packet-exchange/src/server.c
View file @
7e556b26
...
@@ -227,20 +227,22 @@ int main(int argc, char *argv[]) {
...
@@ -227,20 +227,22 @@ int main(int argc, char *argv[]) {
int
jitter
=
ingress_stats
.
max_interval
-
ingress_stats
.
min_interval
;
int
jitter
=
ingress_stats
.
max_interval
-
ingress_stats
.
min_interval
;
printf
(
"%9"
PRIu64
":
J: %5d, I (ms): %3d %3d %3d
"
,
printf
(
"%9"
PRIu64
":
J: %5d, I (ms): %3d %3d %3d [%3d,%3d]
"
,
ingress_stats
.
packets_received
,
ingress_stats
.
packets_received
,
jitter
,
jitter
,
ingress_stats
.
min_interval
/
1000
,
ingress_stats
.
min_interval
/
1000
,
ingress_stats
.
avg_interval
/
1000
,
ingress_stats
.
avg_interval
/
1000
,
ingress_stats
.
max_interval
/
1000
);
ingress_stats
.
max_interval
/
1000
,
(
int
)
ingress_stats
.
high_jitter
,
(
int
)
ingress_stats
.
lost_packets
);
if
(
enable_timestamps
)
{
if
(
enable_timestamps
)
{
printf
(
", K
: %4d %4d %4d, L: %4d
\n
"
,
printf
(
", K
: %4d %4d %4d [%3d]
\n
"
,
ingress_stats
.
min_kernel_latency
,
ingress_stats
.
min_kernel_latency
,
ingress_stats
.
avg_kernel_latency
,
ingress_stats
.
avg_kernel_latency
,
ingress_stats
.
max_kernel_latency
,
ingress_stats
.
max_kernel_latency
,
ingress_stats
.
lost_packets
);
(
int
)
ingress_stats
.
high_kernel_latency
);
}
else
{
}
else
{
printf
(
"
\n
"
);
printf
(
"
\n
"
);
}
}
...
...
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