Commit Graph
56 Commits
Author SHA1 Message Date
Robert Schmidt 842ab32c91 ITTI: remove useless log_scheduler() function
The primary motivation here is to remove a VLA, as in the parent
commits.  Closer inspection revealed that (1) it is only used by the LTE
UE, and (2) it only logs some data which we likely don't need. So I
simply removed this function.
2025-06-06 18:23:28 +02:00
Laurent THOMAS 279d49415f remove un-necessary global variables 2024-12-04 12:26:36 +01:00
Robert Schmidt 419a14a813 Demote log message of ITTI thread creation 2024-09-05 07:41:32 +02:00
Robert Schmidt bfd519953b ITTI: lower 'Starting itti queue' message to debug 2024-06-03 12:37:33 +02:00
Laurent THOMAS 63b64d4fce move common code file in common directory
remove several unused files
remove mem_block_t that is never used in a different way than a simple heap buffer
move up IP address type and remove duplications of the same struct declaration
2023-12-19 10:37:10 +01:00
Laurent THOMAS a198239084 Introduce no-thread mode in ITTI
Introduce a --no-itti-threads command line option to disable threading
in ITTI, and call message handlers in the current thread. This is being
introduced in order to increase repeatability when testing the nrUE with
the IQPlayer. Without this feature, runs with the IQPlayer will end up
differently, depending on the timing of ITTI threads, mostly when
sending messages to RRC and NAS.
2023-10-27 13:02:36 +02:00
luis_pereira87 dbdfe06d1e Fix comment from 10% to 25% 2023-09-27 16:01:26 +01:00
luis_pereira87 cf36c6d893 Improvements to reduce ITTI log message volume when queues full 2023-09-27 15:59:08 +01:00
Laurent THOMAS d19302fb40 revert last change 2023-09-25 15:21:21 +02:00
Laurent THOMAS 91497ece94 Reduce ITTI log verbosity
Only print messages when queue grows by 10%, and add log if message
queue size shrinks
2023-09-25 15:14:21 +02:00
laurent 9121541b3c only cleaning 2023-07-10 12:00:25 +02:00
Robert Schmidt a6486909ca Reimplement itti_wait_tasks_end() to allow custom wait handlers
In the UE, we wish to handle ^C in the UE to send a message before
terminating, so we allow custom wait handlers to implement such
functionality. Use itti_wait_tasks_unblock() to unblock
itti_wait_tasks_end().

Also, implement itti_wait_tasks_end() using semaphores, as signals are
not async-signal-safe (and therefore should not be used in a signal
handler).
2023-03-28 14:12:05 +02:00
Robert Schmidt 963b8cc2ee Merge remote-tracking branch 'origin/itti-add-event-fix' into integration_2022_wk36b 2022-09-08 20:43:15 +02:00
Sakthivel Velumani 18b3189d4e Fix to support subscribing event from external thread 2022-09-05 15:51:50 -04:00
Laurent Thomas 1ef62f5842 fix bug gtp-u len and robustify the gtp-u receiver 2022-09-05 14:10:04 +02:00
laurent 6f862c0dfe fix a bug in itti external sockets 2022-09-02 14:25:17 +02:00
laurent 9ee917039a fix non reentrant issue in itti 2022-09-02 11:36:47 +02:00
luis_pereira87 604d52a431 Replace sleep by mutex in itti_wait_tasks_end() 2022-08-16 14:41:01 +02:00
Robert Schmidt 6c43cdf4dc Hack to prevent segfault 2022-05-16 21:39:06 +02:00
Robert Schmidt 8c5524e455 Shutdown nr-softmodem cleanly 2022-01-18 11:53:57 +01:00
Robert Schmidt 6c823168fe Merge remote-tracking branch 'origin/episys-merge-nsa' into integration_2021_wk51_d 2021-12-24 10:13:27 +01:00
Melissa Elkadi 92ef60d07f This commit does the following:
1. Reverts GTPU_need_ITTI back to develop
2. Removed gdb helper and co files
3. Reverts changes to logging mechanism
4. Reverts changes to assert that were unnecessary
5. Reverts changes to VNF that occured from a bad merge
6. Removes unnecessary else() in gNB softmodem
2021-11-23 15:49:47 -08:00
Laurent THOMAS 686e585666 replace protobuf in 4G F1 split, first step: UL packets 2021-09-21 10:30:46 +02:00
Melissa Elkadi 9b16c1d860 Merge branch 'eurecom-develop' into episys/merge_nsa_w_develop
At this point we are successfully able to build.
Additionally, we can run the scenario,
however, it does not pass. It seems that the gNB
is not connecting to the proxy correctly. Just
wanted to push the progress so far. FYI, the items
that had to be changed to correct the linking issues
were the following:

 - mac_rrc_data_ind_ue vs. nr_mac_rrc_data_ind_ue
 - rrc_data_req vs. nr_rrc_data_req
 - mac_rrc_data_req_ue vs. nr_mac_rrc_data_req_ue
 - rrc_data_req_ue vs. rrc_data_req_nr_ue
 - rrc_data_req vs. nr_rrc_data_req

The listed functions should be declard in the LTE/NR
UE directory depending on the functionality. Several
were mixed. i.e.: LTE functions being called in NR UE.

Also, removing siWindowLength, siWindowLength_int,
SIBType, SIBPeriod, and siPeriod_int from the NR UE RRC.
These variable were not used in the NR UE and are defined
for LTE only.

Lastly, in the NR_IF_Module.c of the NR UE, the global
variable def_dci_pdu_rel15 is not accessible. Need to
revisit this. For not it is commented out.
2021-08-11 10:23:42 -07:00
Raymond Knopp df21836f1d removed stats file generation for RRC temporarily 2021-06-21 18:46:58 +02:00
Melissa Elkadi 9fe1167f29 Remove cppcheck-suppressions that were prev added
These cppcheck errors are occuring in code
that is untouched by this merge request.
2021-03-02 13:10:09 -08:00
Melissa Elkadi 15905c746d Fixing cppcheck issues 2021-03-01 15:13:50 -08:00
Melissa Elkadi ecaa20ed14 Re-do fix for merge issues 2021-02-15 15:08:46 -08:00
Melissa Elkadi bc524ea192 Minor fixes and new definitions for build success 2021-02-15 09:00:22 -08:00
Raymond Knopp a446eb0ebc Merge branch 'episys/master' into episys-merge
Conflicts:
	common/utils/LOG/log.h
	common/utils/ocp_itti/intertask_interface.cpp
	nfapi/oai_integration/nfapi_vnf.c
	nfapi/open-nFAPI/nfapi/src/nfapi.c
	openair2/LAYER2/MAC/main_ue.c
	openair2/LAYER2/PDCP_v10.1.0/pdcp.c
	openair2/LAYER2/PDCP_v10.1.0/pdcp_fifo.c
	openair2/PHY_INTERFACE/phy_stub_UE.c
	openair2/RRC/LTE/rrc_UE.c
	openair2/RRC/LTE/rrc_eNB.c
	openair3/NAS/UE/ESM/esm_ebr_context.c
	targets/COMMON/openairinterface5g_limits.h
	targets/RT/USER/lte-softmodem.c
	targets/RT/USER/lte-uesoftmodem.c
2021-02-13 22:52:33 +01:00
Thomas Schlichter 8b00361f56 fix warnings identified by CI 2021-02-03 10:50:38 +01:00
Laurent Thomas eddebae1e4 fix after code review 2021-01-21 13:47:18 +01:00
Laurent 3b0c43c04b fix memory allocation error 2021-01-10 21:41:22 +01:00
Laurent 79d51ce645 reallocarray() doesn't exist in old Ubuntu 2020-12-26 11:05:42 +01:00
Laurent a432feda3e add external visibility for itti_create_queue 2020-12-23 14:29:40 +01:00
Laurent 42a110338c itti dynamic queue creation, and 64 bits instance id 2020-12-23 13:56:01 +01:00
Michael Cook 1687896730 Log the processor info like scheduler policy
And CPU affinity.
Also, use mlockall to keep our memory from being swapped out.
2020-11-22 13:50:35 -05:00
Laurent 614152b1b3 fix a segv 2020-11-17 15:44:11 +01:00
Michael Cook 79ba247fe6 Catch SIGTERM and attempt to exit cleanly
This change is to enable use of gprof which requires the process
call `exit` to write out the collected data.

The UE (lte-uesoftmodem) exits cleanly, but the eNB
(lte-softmodem) crashes as it tries to shut down...
2020-10-11 10:22:24 -04:00
Michael Cook 870465e0a9 Fix numerous uninitialized memory issues
Found by valgrind.
2020-10-10 11:00:38 -04:00
Laurent 427b223136 small fiwes 2020-07-27 16:08:31 +02:00
laurent cabff5b73b fix itti issue in memory management 2020-07-03 14:57:27 +02:00
laurent 9ac5f6015d update license text 2020-04-29 11:31:00 +02:00
laurent 861caa735d merge develop 2020-04-13 18:04:18 +02:00
laurent 6bbf9011ba compilation ok 2020-03-24 19:16:13 +01:00
yilmazt 84af6103f8 another batch of cppcheck error corrections 2019-09-24 11:59:17 +02:00
yilmazt ccd60195e0 Merging test-x310, ci-dev-nr-add-gnb-nr-ur-uspr-testing and nr-mimo-mode-clean branches 2019-05-20 21:32:34 +02:00
Laurent 4d787625ab still to compile 2019-04-30 14:25:42 +02:00
laurent 8a92138086 rework threads in 5G 2019-04-30 10:17:08 +02:00
Robert Schmidt 397d2f4815 Merge commit 'develop' into feature-127-protocol-split
* remove a lot of white spaces
* many conflicts in enb_config.c
2018-11-07 16:07:59 +01:00