Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
OpenXG
OpenXG-RAN
Commits
ca8ca637
Commit
ca8ca637
authored
Oct 25, 2024
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/hotfix-t-tracer' into integration_2024_w43
parents
6c6b10d0
78a4d075
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
common/utils/T/T.h
common/utils/T/T.h
+18
-0
No files found.
common/utils/T/T.h
View file @
ca8ca637
...
...
@@ -177,6 +177,7 @@ extern int *T_active;
#else
/* #ifdef __cplusplus */
/* C version of T_HEADER with time */
#ifdef CHECK_T_TYPE
#define T_HEADER(x) \
do { \
if (!__builtin_types_compatible_p(typeof(x), struct T_header *)) { \
...
...
@@ -191,6 +192,16 @@ extern int *T_active;
T_LOCAL_size += sizeof(struct timespec); \
T_PUT_int(1, (int)(uintptr_t)(x)); \
} while (0)
#else
/* CHECK_T_TYPE */
#define T_HEADER(x) \
do { \
struct timespec T_HEADER_time; \
if (clock_gettime(CLOCK_REALTIME, &T_HEADER_time)) abort(); \
memcpy(T_LOCAL_buf, &T_HEADER_time, sizeof(struct timespec)); \
T_LOCAL_size += sizeof(struct timespec); \
T_PUT_int(1, (int)(uintptr_t)(x)); \
} while (0)
#endif
/* CHECK_T_TYPE */
#endif
/* #ifdef __cplusplus */
...
...
@@ -207,6 +218,7 @@ extern int *T_active;
#else
/* #ifdef __cplusplus */
/* C version of T_HEADER without time */
#ifdef CHECK_T_TYPE
#define T_HEADER(x) \
do { \
if (!__builtin_types_compatible_p(typeof(x), struct T_header *)) { \
...
...
@@ -217,6 +229,12 @@ extern int *T_active;
} \
T_PUT_int(1, (int)(uintptr_t)(x)); \
} while (0)
#else
/* CHECK_T_TYPE */
#define T_HEADER(x) \
do { \
T_PUT_int(1, (int)(uintptr_t)(x)); \
} while (0)
#endif
/* CHECK_T_TYPE */
#endif
/* #ifdef __cplusplus */
...
...
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