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
96d6ef68
Commit
96d6ef68
authored
Jun 11, 2020
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reduce prints length
parent
6091bae3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
packet-exchange/src/client.c
packet-exchange/src/client.c
+1
-1
packet-exchange/src/server.c
packet-exchange/src/server.c
+2
-2
No files found.
packet-exchange/src/client.c
View file @
96d6ef68
...
@@ -218,7 +218,7 @@ int main(int argc, char *argv[]) {
...
@@ -218,7 +218,7 @@ int main(int argc, char *argv[]) {
int64_t
user_space_time
=
stats
->
packet_info
.
userspace_exit_ts
-
stats
->
packet_info
.
userspace_enter_ts
;
int64_t
user_space_time
=
stats
->
packet_info
.
userspace_exit_ts
-
stats
->
packet_info
.
userspace_enter_ts
;
int64_t
kernel_space_time
=
stats
->
packet_info
.
kernelspace_ts
-
stats
->
packet_info
.
userspace_exit_ts
;
int64_t
kernel_space_time
=
stats
->
packet_info
.
kernelspace_ts
-
stats
->
packet_info
.
userspace_exit_ts
;
printf
(
"(%*d) User and kernel space time:
%*"
PRIi64
", %"
PRIi64
"
\n
"
,
printf
(
"(%*d) User and kernel space time: %*"
PRIi64
", %"
PRIi64
"
\n
"
,
10
,
stats
->
nb_cycles
,
10
,
user_space_time
,
kernel_space_time
);
10
,
stats
->
nb_cycles
,
10
,
user_space_time
,
kernel_space_time
);
}
}
...
...
packet-exchange/src/server.c
View file @
96d6ef68
...
@@ -227,7 +227,7 @@ int main(int argc, char *argv[]) {
...
@@ -227,7 +227,7 @@ int main(int argc, char *argv[]) {
if
(
tsn_task
==
RECV_PACKET_TASK
)
{
if
(
tsn_task
==
RECV_PACKET_TASK
)
{
diff
=
((
int64_t
)
stats
->
max_interval
)
-
stats
->
min_interval
;
diff
=
((
int64_t
)
stats
->
max_interval
)
-
stats
->
min_interval
;
printf
(
"(%*d) Jitter
:
%*"
PRIi64
" [Packet data: %*s] [Lost packets: %*d]
\n
"
,
printf
(
"(%*d) Jitter
:
%*"
PRIi64
" [Packet data: %*s] [Lost packets: %*d]
\n
"
,
10
,
stats
->
packets_received
,
10
,
stats
->
packets_received
,
10
,
diff
,
10
,
diff
,
10
,
stats
->
packet_info
.
data
,
10
,
stats
->
packet_info
.
data
,
...
@@ -238,7 +238,7 @@ int main(int argc, char *argv[]) {
...
@@ -238,7 +238,7 @@ int main(int argc, char *argv[]) {
int64_t
user_space_time
=
stats
->
packet_info
.
userspace_exit_ts
-
stats
->
packet_info
.
userspace_enter_ts
;
int64_t
user_space_time
=
stats
->
packet_info
.
userspace_exit_ts
-
stats
->
packet_info
.
userspace_enter_ts
;
int64_t
kernel_space_time
=
stats
->
packet_info
.
kernelspace_ts
-
stats
->
packet_info
.
userspace_exit_ts
;
int64_t
kernel_space_time
=
stats
->
packet_info
.
kernelspace_ts
-
stats
->
packet_info
.
userspace_exit_ts
;
printf
(
"(%*d) User and kernel space time:
%*"
PRIi64
", %"
PRIi64
"
\n
"
,
printf
(
"(%*d) User and kernel space time: %*"
PRIi64
", %"
PRIi64
"
\n
"
,
10
,
stats
->
packets_received
,
10
,
user_space_time
,
kernel_space_time
);
10
,
stats
->
packets_received
,
10
,
user_space_time
,
kernel_space_time
);
}
}
}
}
...
...
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