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
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
lizhongxiao
OpenXG-RAN
Commits
c94a3b85
Commit
c94a3b85
authored
Oct 08, 2019
by
magounak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve hack multi-rru-clean.c
parent
edb74831
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
common/utils/T/tracer/hacks/multi-rru-clean.c
common/utils/T/tracer/hacks/multi-rru-clean.c
+5
-1
No files found.
common/utils/T/tracer/hacks/multi-rru-clean.c
View file @
c94a3b85
...
...
@@ -12,6 +12,7 @@ void usage(void)
"usage: <number of tags> <input record file> <output curated record file>
\n
"
"options:
\n
"
" -d <database file> this option is mandatory
\n
"
" -e <event name> trace given event (default CALIBRATION_CHANNEL_ESTIMATES)
\n
"
);
exit
(
1
);
}
...
...
@@ -88,6 +89,7 @@ int main(int n, char **v)
int
number_of_tags
=
-
1
;
char
*
input_filename
=
NULL
;
char
*
output_filename
=
NULL
;
char
*
event_name
=
"CALIBRATION_CHANNEL_ESTIMATES"
;
int
i
;
FILE
*
in
;
FILE
*
out
;
...
...
@@ -107,6 +109,8 @@ int main(int n, char **v)
if
(
!
strcmp
(
v
[
i
],
"-h"
)
||
!
strcmp
(
v
[
i
],
"--help"
))
usage
();
if
(
!
strcmp
(
v
[
i
],
"-d"
))
{
if
(
i
>
n
-
2
)
usage
();
database_filename
=
v
[
++
i
];
continue
;
}
if
(
!
strcmp
(
v
[
i
],
"-e"
))
{
if
(
i
>
n
-
2
)
usage
();
event_name
=
v
[
++
i
];
continue
;
}
if
(
number_of_tags
==
-
1
)
{
number_of_tags
=
atoi
(
v
[
i
]);
if
(
number_of_tags
<=
0
)
{
usage
();}
continue
;
}
if
(
input_filename
==
NULL
)
{
input_filename
=
v
[
i
];
continue
;
}
...
...
@@ -124,7 +128,7 @@ int main(int n, char **v)
database
=
parse_database
(
database_filename
);
channel_estimate_id
=
event_id_from_name
(
database
,
"CALIBRATION_CHANNEL_ESTIMATES"
);
channel_estimate_id
=
event_id_from_name
(
database
,
event_name
);
f
=
get_format
(
database
,
channel_estimate_id
);
frame_arg
=
get_field
(
&
f
,
"frame"
,
"int"
);
...
...
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