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
canghaiwuhen
OpenXG-RAN
Commits
74b1850c
Commit
74b1850c
authored
Oct 08, 2019
by
magounak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve hack multi-rru-clean.c
parent
06bae023
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 @
74b1850c
...
@@ -12,6 +12,7 @@ void usage(void)
...
@@ -12,6 +12,7 @@ void usage(void)
"usage: <number of tags> <input record file> <output curated record file>
\n
"
"usage: <number of tags> <input record file> <output curated record file>
\n
"
"options:
\n
"
"options:
\n
"
" -d <database file> this option is mandatory
\n
"
" -d <database file> this option is mandatory
\n
"
" -e <event name> trace given event (default CALIBRATION_CHANNEL_ESTIMATES)
\n
"
);
);
exit
(
1
);
exit
(
1
);
}
}
...
@@ -88,6 +89,7 @@ int main(int n, char **v)
...
@@ -88,6 +89,7 @@ int main(int n, char **v)
int
number_of_tags
=
-
1
;
int
number_of_tags
=
-
1
;
char
*
input_filename
=
NULL
;
char
*
input_filename
=
NULL
;
char
*
output_filename
=
NULL
;
char
*
output_filename
=
NULL
;
char
*
event_name
=
"CALIBRATION_CHANNEL_ESTIMATES"
;
int
i
;
int
i
;
FILE
*
in
;
FILE
*
in
;
FILE
*
out
;
FILE
*
out
;
...
@@ -107,6 +109,8 @@ int main(int n, char **v)
...
@@ -107,6 +109,8 @@ int main(int n, char **v)
if
(
!
strcmp
(
v
[
i
],
"-h"
)
||
!
strcmp
(
v
[
i
],
"--help"
))
usage
();
if
(
!
strcmp
(
v
[
i
],
"-h"
)
||
!
strcmp
(
v
[
i
],
"--help"
))
usage
();
if
(
!
strcmp
(
v
[
i
],
"-d"
))
{
if
(
i
>
n
-
2
)
usage
();
if
(
!
strcmp
(
v
[
i
],
"-d"
))
{
if
(
i
>
n
-
2
)
usage
();
database_filename
=
v
[
++
i
];
continue
;
}
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
==
-
1
)
{
number_of_tags
=
atoi
(
v
[
i
]);
if
(
number_of_tags
<=
0
)
{
usage
();}
continue
;
}
if
(
number_of_tags
<=
0
)
{
usage
();}
continue
;
}
if
(
input_filename
==
NULL
)
{
input_filename
=
v
[
i
];
continue
;
}
if
(
input_filename
==
NULL
)
{
input_filename
=
v
[
i
];
continue
;
}
...
@@ -124,7 +128,7 @@ int main(int n, char **v)
...
@@ -124,7 +128,7 @@ int main(int n, char **v)
database
=
parse_database
(
database_filename
);
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
);
f
=
get_format
(
database
,
channel_estimate_id
);
frame_arg
=
get_field
(
&
f
,
"frame"
,
"int"
);
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