Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openairinterface5G
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Bin He
openairinterface5G
Commits
b365b57c
Commit
b365b57c
authored
5 years ago
by
Raphael Defosseux
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'origin/multi-rru-hack' into develop_integration_2019_w41
parents
50962242
c94a3b85
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
common/utils/T/tracer/hacks/multi-rru-clean.c
+5
-1
5 additions, 1 deletion
common/utils/T/tracer/hacks/multi-rru-clean.c
with
5 additions
and
1 deletion
common/utils/T/tracer/hacks/multi-rru-clean.c
+
5
−
1
View file @
b365b57c
...
...
@@ -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"
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment