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
2ee01afb
Commit
2ee01afb
authored
Jul 28, 2020
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add tracemark and remove trace start
parent
5eda49f8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
packet-exchange/src/server.c
packet-exchange/src/server.c
+3
-3
No files found.
packet-exchange/src/server.c
View file @
2ee01afb
...
...
@@ -109,6 +109,7 @@ static void *packet_receiving_thread(void *p) {
struct
timespec
current
,
previous
;
cpu_set_t
mask
;
int
prev_packet_id
=
0
;
char
tracemark_message
[
128
];
// Set thread CPU affinity
if
(
enable_affinity
)
{
...
...
@@ -118,9 +119,6 @@ static void *packet_receiving_thread(void *p) {
error
(
EXIT_FAILURE
,
errno
,
"Could not set CPU affinity to CPU #1
\n
"
);
}
// Start tracing
if
(
main_params
.
enable_tracing
)
tracing
(
1
);
clock_gettime
(
CLOCK_MONOTONIC
,
&
measures_start
);
// Packet receiving loop
...
...
@@ -168,6 +166,8 @@ static void *packet_receiving_thread(void *p) {
// If the latency hits the tracing threshold, stop tracing
if
(
main_params
.
enable_tracing
&&
(
ingress_stats
.
max_interval
>
thread_params
.
latency_threshold
))
{
sprintf
(
tracemark_message
,
"Jitter threshold hit: %dus
\n
"
,
ingress_stats
.
max_interval
);
tracemark
(
tracemark_message
);
tracing
(
0
);
break
;
}
...
...
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