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
eddebae1
Commit
eddebae1
authored
Jan 21, 2021
by
Laurent Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix after code review
parent
3b0c43c0
Changes
17
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
21 additions
and
28 deletions
+21
-28
common/utils/ocp_itti/intertask_interface.cpp
common/utils/ocp_itti/intertask_interface.cpp
+6
-7
common/utils/ocp_itti/intertask_interface.h
common/utils/ocp_itti/intertask_interface.h
+5
-6
executables/main-ocp.c
executables/main-ocp.c
+1
-1
executables/nr-softmodem.c
executables/nr-softmodem.c
+1
-1
executables/nr-uesoftmodem.c
executables/nr-uesoftmodem.c
+1
-1
executables/ocp-gnb.c
executables/ocp-gnb.c
+1
-1
openair1/SIMULATION/LTE_PHY/dlsim.c
openair1/SIMULATION/LTE_PHY/dlsim.c
+0
-1
openair1/SIMULATION/LTE_PHY/dlsim_tm4.c
openair1/SIMULATION/LTE_PHY/dlsim_tm4.c
+0
-1
openair1/SIMULATION/LTE_PHY/mbmssim.c
openair1/SIMULATION/LTE_PHY/mbmssim.c
+0
-1
openair1/SIMULATION/LTE_PHY/pucchsim.c
openair1/SIMULATION/LTE_PHY/pucchsim.c
+0
-1
openair1/SIMULATION/LTE_PHY/ulsim.c
openair1/SIMULATION/LTE_PHY/ulsim.c
+0
-1
openair2/SIMULATION/NR_RRC/itti_sim.c
openair2/SIMULATION/NR_RRC/itti_sim.c
+1
-1
openair3/TEST/EPC_TEST/play_scenario.c
openair3/TEST/EPC_TEST/play_scenario.c
+1
-1
openair3/TEST/oaisim_mme_itti_test.c
openair3/TEST/oaisim_mme_itti_test.c
+1
-1
openair3/TEST/oaisim_mme_test_s1c.c
openair3/TEST/oaisim_mme_test_s1c.c
+1
-1
targets/RT/USER/lte-softmodem.c
targets/RT/USER/lte-softmodem.c
+1
-1
targets/RT/USER/lte-uesoftmodem.c
targets/RT/USER/lte-uesoftmodem.c
+1
-1
No files found.
common/utils/ocp_itti/intertask_interface.cpp
View file @
eddebae1
...
...
@@ -336,15 +336,15 @@ extern "C" {
usleep
(
100
*
1000
);
// Allow the tasks to receive the message before going returning to main thread
}
int
itti_create_queue
(
const
task_info_t
*
task
_i
nfo
)
{
int
itti_create_queue
(
const
task_info_t
*
task
I
nfo
)
{
pthread_mutex_lock
(
&
lock_nb_queues
);
int
newQueue
=
nb_queues
++
;
AssertFatal
(
tasks
=
(
task_list_t
**
)
realloc
(
tasks
,
nb_queues
*
sizeof
(
*
tasks
)),
""
);
tasks
[
newQueue
]
=
new
task_list_t
;
pthread_mutex_unlock
(
&
lock_nb_queues
);
LOG_I
(
TMR
,
"Starting itti queue: %s as task %d
\n
"
,
task
s_i
nfo
->
name
,
newQueue
);
LOG_I
(
TMR
,
"Starting itti queue: %s as task %d
\n
"
,
task
I
nfo
->
name
,
newQueue
);
pthread_mutex_init
(
&
tasks
[
newQueue
]
->
queue_cond_lock
,
NULL
);
memcpy
(
&
tasks
[
newQueue
]
->
admin
,
task
s_i
nfo
,
sizeof
(
task_info_t
));
memcpy
(
&
tasks
[
newQueue
]
->
admin
,
task
I
nfo
,
sizeof
(
task_info_t
));
AssertFatal
(
(
tasks
[
newQueue
]
->
epoll_fd
=
epoll_create1
(
0
)
)
>=
0
,
""
);
AssertFatal
(
(
tasks
[
newQueue
]
->
sem_fd
=
eventfd
(
0
,
EFD_SEMAPHORE
)
)
>=
0
,
""
);
itti_subscribe_event_fd
((
task_id_t
)
newQueue
,
tasks
[
newQueue
]
->
sem_fd
);
...
...
@@ -356,14 +356,13 @@ extern "C" {
}
int
itti_init
(
task_id_t
task_max
,
MessagesIds
messages_id_max
,
const
task_info_t
*
tasks_info
,
const
message_info_t
*
messages_info
)
{
const
task_info_t
*
tasks
)
{
pthread_mutex_init
(
&
lock_nb_queues
,
NULL
);
nb_queues
=
0
;
for
(
int
i
=
0
;
i
<
task_max
;
++
i
)
{
itti_create_queue
(
&
tasks
_info
[
i
]);
itti_create_queue
(
&
tasks
[
i
]);
}
return
0
;
...
...
common/utils/ocp_itti/intertask_interface.h
View file @
eddebae1
...
...
@@ -264,7 +264,7 @@ void *rrc_enb_process_itti_msg(void *);
#include <openair3/NGAP/ngap_gNB.h>
#ifdef ITTI_SIM
#include <openair2/COMMON/itti_sim_messages_types.h>
#include <openair2/COMMON/itti_sim_messages_types.h>
#endif
/*
...
...
@@ -301,7 +301,7 @@ typedef struct {
//TASK_DEF(TASK_RRC_ENB, TASK_PRIORITY_MED, 200, NULL, NULL)
//TASK_DEF(TASK_GTPV1_U, TASK_PRIORITY_MED, 1000,NULL, NULL)
//TASK_DEF(TASK_UDP, TASK_PRIORITY_MED, 1000, NULL, NULL)
void
*
rrc_enb_process_msg
(
void
*
);
void
*
rrc_enb_process_msg
(
void
*
);
#define FOREACH_TASK(TASK_DEF) \
TASK_DEF(TASK_UNKNOWN, TASK_PRIORITY_MED, 50, NULL, NULL) \
TASK_DEF(TASK_TIMER, TASK_PRIORITY_MED, 10, NULL, NULL) \
...
...
@@ -403,8 +403,8 @@ typedef struct MessageHeader_s {
MessagesIds
messageId
;
/**< Unique message id as referenced in enum MessagesIds */
task_id_t
originTaskId
;
/**< ID of the sender task */
task_id_t
destinationTaskId
;
/**< ID of the destination task */
instance_t
originInstance
;
instance_t
destinationInstance
;
instance_t
originInstance
;
instance_t
destinationInstance
;
itti_lte_time_t
lte_time
;
MessageHeaderSize
ittiMsgSize
;
/**< Message size (not including header size) */
}
MessageHeader
;
...
...
@@ -566,8 +566,7 @@ void *malloc_or_fail(size_t size);
int
memory_read
(
const
char
*
datafile
,
void
*
data
,
size_t
size
);
int
itti_free
(
task_id_t
task_id
,
void
*
ptr
);
int
itti_init
(
task_id_t
task_max
,
MessagesIds
messages_id_max
,
const
task_info_t
*
tasks_info
,
const
message_info_t
*
messages_info
);
int
itti_init
(
task_id_t
task_max
,
const
task_info_t
*
tasks_info
);
int
timer_setup
(
uint32_t
interval_sec
,
uint32_t
interval_us
,
...
...
executables/main-ocp.c
View file @
eddebae1
...
...
@@ -1141,7 +1141,7 @@ int main ( int argc, char **argv ) {
if
(
opp_enabled
==
1
)
reset_opp_meas
();
itti_init
(
TASK_MAX
,
MESSAGES_ID_MAX
,
tasks_info
,
message
s_info
);
itti_init
(
TASK_MAX
,
task
s_info
);
init_opt
();
#ifndef PACKAGE_VERSION
# define PACKAGE_VERSION "UNKNOWN-EXPERIMENTAL"
...
...
executables/nr-softmodem.c
View file @
eddebae1
...
...
@@ -863,7 +863,7 @@ int main( int argc, char **argv )
}
cpuf
=
get_cpu_freq_GHz
();
itti_init
(
TASK_MAX
,
MESSAGES_ID_MAX
,
tasks_info
,
message
s_info
);
itti_init
(
TASK_MAX
,
task
s_info
);
// initialize mscgen log after ITTI
MSC_INIT
(
MSC_E_UTRAN
,
ADDED_QUEUES_MAX
+
TASK_MAX
);
...
...
executables/nr-uesoftmodem.c
View file @
eddebae1
...
...
@@ -514,7 +514,7 @@ int main( int argc, char **argv ) {
initTpool
(
params_dl
,
Tpool_dl
,
false
);
#endif
cpuf
=
get_cpu_freq_GHz
();
itti_init
(
TASK_MAX
,
MESSAGES_ID_MAX
,
tasks_info
,
message
s_info
);
itti_init
(
TASK_MAX
,
task
s_info
);
init_opt
()
;
load_nrLDPClib
();
...
...
executables/ocp-gnb.c
View file @
eddebae1
...
...
@@ -928,7 +928,7 @@ int main( int argc, char **argv ) {
get_common_options
(
SOFTMODEM_GNB_BIT
);
AssertFatal
(
!
CONFIG_ISFLAGSET
(
CONFIG_ABORT
),
"Getting configuration failed
\n
"
);
cpuf
=
get_cpu_freq_GHz
();
itti_init
(
TASK_MAX
,
MESSAGES_ID_MAX
,
tasks_info
,
message
s_info
);
itti_init
(
TASK_MAX
,
task
s_info
);
set_taus_seed
(
0
);
init_opt
();
init_pdcp
();
...
...
openair1/SIMULATION/LTE_PHY/dlsim.c
View file @
eddebae1
...
...
@@ -905,7 +905,6 @@ int main(int argc, char **argv) {
// moreover you need to init itti with the following line
// however itti will catch all signals, so ctrl-c won't work anymore
// alternatively you can disable ITTI completely in CMakeLists.txt
//itti_init(TASK_MAX, MESSAGES_ID_MAX, tasks_info, messages_info, messages_definition_xml, NULL);
T_stdout
=
1
;
if
(
common_flag
==
0
)
{
...
...
openair1/SIMULATION/LTE_PHY/dlsim_tm4.c
View file @
eddebae1
...
...
@@ -689,7 +689,6 @@ int main(int argc, char **argv)
// moreover you need to init itti with the following line
// however itti will catch all signals, so ctrl-c won't work anymore
// alternatively you can disable ITTI completely in CMakeLists.txt
//itti_init(TASK_MAX, MESSAGES_ID_MAX, tasks_info, messages_info, messages_definition_xml, NULL);
if
(
common_flag
==
0
)
{
switch
(
N_RB_DL
)
{
...
...
openair1/SIMULATION/LTE_PHY/mbmssim.c
View file @
eddebae1
...
...
@@ -997,7 +997,6 @@ int main(int argc, char **argv) {
// moreover you need to init itti with the following line
// however itti will catch all signals, so ctrl-c won't work anymore
// alternatively you can disable ITTI completely in CMakeLists.txt
//itti_init(TASK_MAX, MESSAGES_ID_MAX, tasks_info, messages_info, messages_definition_xml, NULL);
if
(
common_flag
==
0
)
{
switch
(
N_RB_DL
)
{
...
...
openair1/SIMULATION/LTE_PHY/pucchsim.c
View file @
eddebae1
...
...
@@ -283,7 +283,6 @@ int main(int argc, char **argv) {
}
logInit
();
//itti_init(TASK_MAX, MESSAGES_ID_MAX, tasks_info, messages_info, messages_definition_xml, NULL);
g_log
->
log_component
[
PHY
].
level
=
LOG_DEBUG
;
g_log
->
log_component
[
PHY
].
flag
=
LOG_HIGH
;
...
...
openair1/SIMULATION/LTE_PHY/ulsim.c
View file @
eddebae1
...
...
@@ -409,7 +409,6 @@ int main(int argc, char **argv) {
// enable these lines if you need debug info
// however itti will catch all signals, so ctrl-c won't work anymore
// alternatively you can disable ITTI completely in CMakeLists.txt
// itti_init(TASK_MAX, MESSAGES_ID_MAX, tasks_info, messages_info, messages_definition_xml, NULL);
// set_comp_log(PHY,LOG_DEBUG,LOG_HIGH,1);
// set_glog(LOG_DEBUG,LOG_HIGH);
//hapZEbm:n:Y:X:x:s:w:e:q:d:D:O:c:r:i:f:y:c:oA:C:R:g:N:l:S:T:QB:PI:LF
...
...
openair2/SIMULATION/NR_RRC/itti_sim.c
View file @
eddebae1
...
...
@@ -557,7 +557,7 @@ int main( int argc, char **argv )
}
cpuf
=
get_cpu_freq_GHz
();
itti_init
(
TASK_MAX
,
MESSAGES_ID_MAX
,
tasks_info
,
message
s_info
);
itti_init
(
TASK_MAX
,
task
s_info
);
// initialize mscgen log after ITTI
MSC_INIT
(
MSC_E_UTRAN
,
ADDED_QUEUES_MAX
+
TASK_MAX
);
...
...
openair3/TEST/EPC_TEST/play_scenario.c
View file @
eddebae1
...
...
@@ -1204,7 +1204,7 @@ int main( int argc, char **argv )
logInit
();
set_glog
(
LOG_TRACE
,
LOG_MED
);
itti_init
(
TASK_MAX
,
MESSAGES_ID_MAX
,
tasks_info
,
message
s_info
);
itti_init
(
TASK_MAX
,
task
s_info
);
set_comp_log
(
ENB_APP
,
LOG_TRACE
,
LOG_MED
,
1
);
set_comp_log
(
S1AP
,
LOG_TRACE
,
LOG_MED
,
1
);
...
...
openair3/TEST/oaisim_mme_itti_test.c
View file @
eddebae1
...
...
@@ -68,7 +68,7 @@ int main(int argc, char *argv[])
/* Calling each layer init function */
log_init
(
&
mme_config
);
itti_init
(
TASK_MAX
,
MESSAGES_ID_MAX
,
tasks_info
,
message
s_info
);
itti_init
(
TASK_MAX
,
task
s_info
);
sctp_init
(
&
mme_config
);
udp_init
(
&
mme_config
);
s1ap_mme_init
(
&
mme_config
);
...
...
openair3/TEST/oaisim_mme_test_s1c.c
View file @
eddebae1
...
...
@@ -309,7 +309,7 @@ int main( int argc, char **argv )
/* Read eNB configuration file */
enb_properties
=
enb_config_init
(
conf_config_file_name
);
itti_init
(
TASK_MAX
,
MESSAGES_ID_MAX
,
tasks_info
,
message
s_info
);
itti_init
(
TASK_MAX
,
task
s_info
);
itti_wait_ready
(
1
);
...
...
targets/RT/USER/lte-softmodem.c
View file @
eddebae1
...
...
@@ -544,7 +544,7 @@ int main ( int argc, char **argv )
cpuf
=
get_cpu_freq_GHz
();
printf
(
"ITTI init, useMME: %i
\n
"
,
EPC_MODE_ENABLED
);
itti_init
(
TASK_MAX
,
MESSAGES_ID_MAX
,
tasks_info
,
message
s_info
);
itti_init
(
TASK_MAX
,
task
s_info
);
// allows to forward in wireshark L2 protocol for decoding
// initialize mscgen log after ITTI
if
(
get_softmodem_params
()
->
start_msc
)
{
...
...
targets/RT/USER/lte-uesoftmodem.c
View file @
eddebae1
...
...
@@ -601,7 +601,7 @@ int main( int argc, char **argv ) {
pthread_mutex_init
(
&
sync_mutex
,
NULL
);
printf
(
"ITTI init
\n
"
);
itti_init
(
TASK_MAX
,
MESSAGES_ID_MAX
,
tasks_info
,
message
s_info
);
itti_init
(
TASK_MAX
,
task
s_info
);
// initialize mscgen log after ITTI
if
(
get_softmodem_params
()
->
start_msc
)
{
...
...
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