Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG UE
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
Michael Black
OpenXG UE
Commits
2d10951a
Commit
2d10951a
authored
Mar 18, 2016
by
Cedric Roux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
introduce T_TRACER to globally enable/disable the T
parent
9f0789e0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
3 deletions
+12
-3
Makefile
Makefile
+1
-1
T.h
T.h
+9
-0
tracer/Makefile
tracer/Makefile
+2
-2
No files found.
Makefile
View file @
2d10951a
CC
=
gcc
CFLAGS
=
-Wall
-g
-pthread
CFLAGS
=
-Wall
-g
-pthread
-DT_TRACER
#comment those two lines to NOT use shared memory
CFLAGS
+=
-DT_USE_SHARED_MEMORY
...
...
T.h
View file @
2d10951a
#ifndef _T_T_T_
#define _T_T_T_
#if T_TRACER
#include <stdint.h>
#include "T_defs.h"
...
...
@@ -517,4 +519,11 @@ extern int *T_active;
void
T_connect_to_tracer
(
char
*
addr
,
int
port
);
#else
/* T_TRACER */
/* if T_TRACER is not defined or is 0, the T is deactivated */
#define T(...)
/**/
#endif
/* T_TRACER */
#endif
/* _T_T_T_ */
tracer/Makefile
View file @
2d10951a
CC
=
gcc
CFLAGS
=
-Wall
-g
-pthread
CFLAGS
=
-Wall
-g
-pthread
-DT_TRACER
CFLAGS
+=
-O3
-ffast-math
-fomit-frame-pointer
#
CFLAGS += -O3 -ffast-math -fomit-frame-pointer
LIBS
=
-lX11
-lm
...
...
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