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
lizhongxiao
OpenXG UE
Commits
e324af40
Commit
e324af40
authored
Oct 24, 2021
by
Laurent THOMAS
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor modif to trigger CI
parent
1e21fa03
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
35 deletions
+0
-35
openair1/PHY/TOOLS/lte_enb_scope.c
openair1/PHY/TOOLS/lte_enb_scope.c
+0
-16
openair1/PHY/TOOLS/lte_ue_scope.c
openair1/PHY/TOOLS/lte_ue_scope.c
+0
-16
openair1/PHY/TOOLS/nr_phy_scope.c
openair1/PHY/TOOLS/nr_phy_scope.c
+0
-3
No files found.
openair1/PHY/TOOLS/lte_enb_scope.c
View file @
e324af40
...
@@ -69,18 +69,12 @@ void reset_stats(FL_OBJECT *button, long arg) {
...
@@ -69,18 +69,12 @@ void reset_stats(FL_OBJECT *button, long arg) {
static
void
*
scope_thread_eNB
(
void
*
arg
)
{
static
void
*
scope_thread_eNB
(
void
*
arg
)
{
# ifdef ENABLE_XFORMS_WRITE_STATS
FILE
*
eNB_stats
;
# endif
struct
sched_param
sched_param
;
struct
sched_param
sched_param
;
int
UE_id
,
CC_id
;
int
UE_id
,
CC_id
;
int
ue_cnt
=
0
;
int
ue_cnt
=
0
;
sched_param
.
sched_priority
=
sched_get_priority_min
(
SCHED_FIFO
)
+
1
;
sched_param
.
sched_priority
=
sched_get_priority_min
(
SCHED_FIFO
)
+
1
;
sched_setscheduler
(
0
,
SCHED_FIFO
,
&
sched_param
);
sched_setscheduler
(
0
,
SCHED_FIFO
,
&
sched_param
);
printf
(
"Scope thread has priority %d
\n
"
,
sched_param
.
sched_priority
);
printf
(
"Scope thread has priority %d
\n
"
,
sched_param
.
sched_priority
);
# ifdef ENABLE_XFORMS_WRITE_STATS
eNB_stats
=
fopen
(
"eNB_stats.txt"
,
"w"
);
#endif
while
(
!
oai_exit
)
{
while
(
!
oai_exit
)
{
ue_cnt
=
0
;
ue_cnt
=
0
;
...
@@ -99,16 +93,6 @@ static void *scope_thread_eNB(void *arg) {
...
@@ -99,16 +93,6 @@ static void *scope_thread_eNB(void *arg) {
usleep
(
100
*
1000
);
usleep
(
100
*
1000
);
}
}
// printf("%s",stats_buffer);
# ifdef ENABLE_XFORMS_WRITE_STATS
if
(
eNB_stats
)
{
rewind
(
eNB_stats
);
fwrite
(
stats_buffer
,
1
,
len
,
eNB_stats
);
fclose
(
eNB_stats
);
}
# endif
pthread_exit
((
void
*
)
arg
);
pthread_exit
((
void
*
)
arg
);
}
}
...
...
openair1/PHY/TOOLS/lte_ue_scope.c
View file @
e324af40
...
@@ -72,16 +72,10 @@ void reset_stats(FL_OBJECT *button, long arg) {
...
@@ -72,16 +72,10 @@ void reset_stats(FL_OBJECT *button, long arg) {
static
void
*
scope_thread_UE
(
void
*
arg
)
{
static
void
*
scope_thread_UE
(
void
*
arg
)
{
char
stats_buffer
[
16384
];
char
stats_buffer
[
16384
];
# ifdef ENABLE_XFORMS_WRITE_STATS
FILE
*
UE_stats
,
*
eNB_stats
;
# endif
struct
sched_param
sched_param
;
struct
sched_param
sched_param
;
sched_param
.
sched_priority
=
sched_get_priority_min
(
SCHED_FIFO
)
+
1
;
sched_param
.
sched_priority
=
sched_get_priority_min
(
SCHED_FIFO
)
+
1
;
sched_setscheduler
(
0
,
SCHED_FIFO
,
&
sched_param
);
sched_setscheduler
(
0
,
SCHED_FIFO
,
&
sched_param
);
printf
(
"Scope thread has priority %d
\n
"
,
sched_param
.
sched_priority
);
printf
(
"Scope thread has priority %d
\n
"
,
sched_param
.
sched_priority
);
# ifdef ENABLE_XFORMS_WRITE_STATS
UE_stats
=
fopen
(
"UE_stats.txt"
,
"w"
);
#endif
while
(
!
oai_exit
)
{
while
(
!
oai_exit
)
{
// dump_ue_stats (PHY_vars_UE_g[0][0], &PHY_vars_UE_g[0][0]->proc.proc_rxtx[0],stats_buffer, 0, mode,rx_input_level_dBm);
// dump_ue_stats (PHY_vars_UE_g[0][0], &PHY_vars_UE_g[0][0]->proc.proc_rxtx[0],stats_buffer, 0, mode,rx_input_level_dBm);
...
@@ -94,16 +88,6 @@ static void *scope_thread_UE(void *arg) {
...
@@ -94,16 +88,6 @@ static void *scope_thread_UE(void *arg) {
0
,
7
);
0
,
7
);
// printf("%s",stats_buffer);
// printf("%s",stats_buffer);
}
}
# ifdef ENABLE_XFORMS_WRITE_STATS
if
(
UE_stats
)
{
rewind
(
UE_stats
);
fwrite
(
stats_buffer
,
1
,
len
,
UE_stats
);
fclose
(
UE_stats
);
}
# endif
pthread_exit
((
void
*
)
arg
);
pthread_exit
((
void
*
)
arg
);
}
}
...
...
openair1/PHY/TOOLS/nr_phy_scope.c
View file @
e324af40
...
@@ -517,9 +517,6 @@ void phy_scope_gNB(OAI_phy_scope_t *form,
...
@@ -517,9 +517,6 @@ void phy_scope_gNB(OAI_phy_scope_t *form,
}
}
static
void
*
scope_thread_gNB
(
void
*
arg
)
{
static
void
*
scope_thread_gNB
(
void
*
arg
)
{
scopeData_t
*
p
=
(
scopeData_t
*
)
arg
;
scopeData_t
*
p
=
(
scopeData_t
*
)
arg
;
//# ifdef ENABLE_XFORMS_WRITE_STATS
// FILE *gNB_stats = fopen("gNB_stats.txt", "w");
//#endif
size_t
stksize
=
0
;
size_t
stksize
=
0
;
pthread_attr_t
atr
;
pthread_attr_t
atr
;
pthread_attr_init
(
&
atr
);
pthread_attr_init
(
&
atr
);
...
...
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