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
ZhouShuya
OpenXG-RAN
Commits
409eadc9
Commit
409eadc9
authored
Dec 14, 2017
by
Wang Tsu-Han
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
measuring time for coding worker
parent
7c27e09f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
8 deletions
+11
-8
openair1/PHY/LTE_TRANSPORT/dlsch_coding.c
openair1/PHY/LTE_TRANSPORT/dlsch_coding.c
+4
-6
targets/RT/USER/lte-enb.c
targets/RT/USER/lte-enb.c
+7
-2
No files found.
openair1/PHY/LTE_TRANSPORT/dlsch_coding.c
View file @
409eadc9
...
@@ -560,14 +560,13 @@ void *te_thread(void *param) {
...
@@ -560,14 +560,13 @@ void *te_thread(void *param) {
PHY_VARS_eNB
*
eNB
=
((
te_params
*
)
param
)
->
eNB
;
PHY_VARS_eNB
*
eNB
=
((
te_params
*
)
param
)
->
eNB
;
eNB_proc_t
*
proc
=
&
eNB
->
proc
;
eNB_proc_t
*
proc
=
&
eNB
->
proc
;
time_stats_t
*
te_wakeup_stats0
=
&
eNB
->
dlsch_turbo_encoding_wakeup_stats0
;
while
(
!
oai_exit
)
{
while
(
!
oai_exit
)
{
if
(
wait_on_condition
(
&
proc
->
mutex_te
[
0
],
&
proc
->
cond_te
[
0
],
&
proc
->
instance_cnt_te
[
0
],
"te thread"
)
<
0
)
break
;
if
(
wait_on_condition
(
&
proc
->
mutex_te
[
0
],
&
proc
->
cond_te
[
0
],
&
proc
->
instance_cnt_te
[
0
],
"te thread"
)
<
0
)
break
;
//stop_meas(te
_wakeup_stats0);
start_meas
(
&
eNB
->
dlsch_turbo_encoding
_wakeup_stats0
);
dlsch_encoding_2threads0
((
te_params
*
)
param
);
dlsch_encoding_2threads0
((
te_params
*
)
param
);
stop_meas
(
&
eNB
->
dlsch_turbo_encoding_wakeup_stats0
);
if
(
release_thread
(
&
proc
->
mutex_te
[
0
],
&
proc
->
instance_cnt_te
[
0
],
"te thread"
)
<
0
)
break
;
if
(
release_thread
(
&
proc
->
mutex_te
[
0
],
&
proc
->
instance_cnt_te
[
0
],
"te thread"
)
<
0
)
break
;
...
@@ -598,15 +597,14 @@ void *te_thread1(void *param) {
...
@@ -598,15 +597,14 @@ void *te_thread1(void *param) {
PHY_VARS_eNB
*
eNB
=
((
te_params
*
)
param
)
->
eNB
;
PHY_VARS_eNB
*
eNB
=
((
te_params
*
)
param
)
->
eNB
;
eNB_proc_t
*
proc
=
&
eNB
->
proc
;
eNB_proc_t
*
proc
=
&
eNB
->
proc
;
time_stats_t
*
te_wakeup_stats1
=
&
eNB
->
dlsch_turbo_encoding_wakeup_stats1
;
while
(
!
oai_exit
)
{
while
(
!
oai_exit
)
{
if
(
wait_on_condition
(
&
proc
->
mutex_te
[
1
],
&
proc
->
cond_te
[
1
],
&
proc
->
instance_cnt_te
[
1
],
"te thread 1"
)
<
0
)
break
;
if
(
wait_on_condition
(
&
proc
->
mutex_te
[
1
],
&
proc
->
cond_te
[
1
],
&
proc
->
instance_cnt_te
[
1
],
"te thread 1"
)
<
0
)
break
;
//stop_meas(te
_wakeup_stats1);
start_meas
(
&
eNB
->
dlsch_turbo_encoding
_wakeup_stats1
);
dlsch_encoding_2threads1
((
te_params
*
)
param
);
dlsch_encoding_2threads1
((
te_params
*
)
param
);
stop_meas
(
&
eNB
->
dlsch_turbo_encoding_wakeup_stats1
);
if
(
release_thread
(
&
proc
->
mutex_te
[
1
],
&
proc
->
instance_cnt_te
[
1
],
"te thread 1"
)
<
0
)
break
;
if
(
release_thread
(
&
proc
->
mutex_te
[
1
],
&
proc
->
instance_cnt_te
[
1
],
"te thread 1"
)
<
0
)
break
;
...
...
targets/RT/USER/lte-enb.c
View file @
409eadc9
...
@@ -704,8 +704,13 @@ static void* process_stats_thread(void* param) {
...
@@ -704,8 +704,13 @@ static void* process_stats_thread(void* param) {
sleep
(
1
);
sleep
(
1
);
if
(
opp_enabled
==
1
)
{
if
(
opp_enabled
==
1
)
{
if
(
eNB
->
td
)
print_meas
(
&
eNB
->
ulsch_decoding_stats
,
"ulsch_decoding"
,
NULL
,
NULL
);
if
(
eNB
->
td
)
print_meas
(
&
eNB
->
ulsch_decoding_stats
,
"ulsch_decoding"
,
NULL
,
NULL
);
if
(
eNB
->
te
)
print_meas
(
&
eNB
->
dlsch_encoding_stats
,
"dlsch_encoding"
,
NULL
,
NULL
);
if
(
eNB
->
te
)
print_meas
(
&
eNB
->
dlsch_modulation_stats
,
"dlsch_modulation"
,
NULL
,
NULL
);
{
print_meas
(
&
eNB
->
dlsch_encoding_stats
,
"dlsch_encoding"
,
NULL
,
NULL
);
print_meas
(
&
eNB
->
dlsch_turbo_encoding_wakeup_stats0
,
"coding_worker_0"
,
NULL
,
NULL
);
print_meas
(
&
eNB
->
dlsch_turbo_encoding_wakeup_stats1
,
"coding_worker_1"
,
NULL
,
NULL
);
}
print_meas
(
&
eNB
->
dlsch_modulation_stats
,
"dlsch_modulation"
,
NULL
,
NULL
);
}
}
}
}
return
(
NULL
);
return
(
NULL
);
...
...
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