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
265f8a31
Commit
265f8a31
authored
Oct 24, 2017
by
Cedric Roux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor: fix tracing utility (no malloc for it takes too long at startup)
parent
fc459dd8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
openair2/PHY_INTERFACE/IF_Module.c
openair2/PHY_INTERFACE/IF_Module.c
+19
-0
No files found.
openair2/PHY_INTERFACE/IF_Module.c
View file @
265f8a31
...
...
@@ -156,6 +156,9 @@ void handle_ulsch(UL_IND_t *UL_info) {
#define C do { size = 0; put(0); } while (0)
#define A(...) do { char t[4096]; sprintf(t, __VA_ARGS__); append_string(t); } while (0)
#if 0
/* eats lots of ms at startup, disrupts realtime */
static char *s;
static int size;
static int maxsize;
...
...
@@ -169,6 +172,22 @@ static void put(char x)
s[size++] = x;
}
#else
/* eats nothing at startup, but fixed size */
#define SMAX 65536
static
char
s
[
SMAX
];
static
int
size
;
static
int
maxsize
=
SMAX
;
static
void
put
(
char
x
)
{
if
(
size
==
maxsize
)
{
printf
(
"incrase SMAX
\n
"
);
exit
(
1
);
}
s
[
size
++
]
=
x
;
}
#endif
static
void
append_string
(
char
*
t
)
{
size
--
;
...
...
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