Commit Graph
47 Commits
Author SHA1 Message Date
winckel 5a6de28863 Added result check for calls to itti_free.
git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4782 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-12-20 10:41:27 +00:00
winckel fa818d423b Added an action parameter to be performed when assert fails in AssertError.
Added a return status to itti_free.

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4779 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-12-20 09:14:19 +00:00
winckel 4482a6e254 Fixed some compile warnings.
git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4775 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-12-19 15:53:44 +00:00
winckel b6abfce999 Updated destination task info in MP.
Modified MP item group handling to avoid delaying task when freeing items, ok for RTAI use.

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4774 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-12-19 14:48:44 +00:00
winckel 722a12c87e Increase memory pool 2 items number.
git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4770 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-12-19 08:46:58 +00:00
winckel 4424cffcfb Defined new unified assert for ITTI.
Changed size of largest memory pool items to support some long log message.

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4765 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-12-18 22:27:24 +00:00
winckel 65ede03d23 Created debug groups for ITTI logging.
git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4762 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-12-18 14:34:14 +00:00
winckel aa65305f46 Integrated memory pools into ITTI for OAISIM and lte-softmodem targets.
git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4761 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-12-18 14:08:05 +00:00
winckel 0bdbd0892b Added a VCD log point for ITTI relay thread.
tuned ITTI relay thread polling delay to 200 micro-seconds to have no RT tasks reacting within the same slot most of the time.

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4740 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-12-16 14:16:28 +00:00
winckel 068807e1af Added ITTI function to synchronize task start when they are all ready.
git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4729 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-12-15 17:56:27 +00:00
Cedric Roux 6a357853f5 - Fix memory leak
git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4697 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-12-12 23:26:41 +00:00
winckel 819ff010c1 Cleared EPOLLIN event after processing a message event in ITTI receive.
git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4665 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-12-11 14:30:10 +00:00
Cedric Roux c26a130033 - Mapped malloc/free for ITTI to itti_malloc/itti_free functions for future use within real-time softmodem
- Fixed softmodem build issues with RAL
- Merged ITTI into agilent softmodem for eNB

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4661 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-12-11 10:08:23 +00:00
Cedric Roux cb2810e618 - Fix EFD_SEMAPHORE build issues
git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4642 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-12-09 09:14:29 +00:00
Cedric Roux 6e209dcd99 - Fix EFD_SEMAPHORE missing for kernel version < 2.6.30
git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4641 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-12-09 08:32:26 +00:00
winckel ae4b36507f Added ITTI timer support for RTAI builds (timers must only be used from non RT tasks).
Blocked message sending to ended tasks.
Modified lte-softmodem to use ITTI signal handling.
Uniformized lte-softmodem and oaisim with ITTI handling.

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4607 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-12-05 13:03:18 +00:00
winckel c35ba1cf77 Use a bit mask with atomic or and and operations for VCD logging of ITTI messages task IDs in messages handling functions to support correctly multi threading logging.
Separated eNB and UE frame and slot VCD logs.

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4556 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-12-02 15:29:24 +00:00
winckel 945a6d6c97 Modified VCD format for variables.
Modified some ITTI VCD log points.

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4555 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-12-02 13:31:36 +00:00
winckel 0fdd3f099c Fixed a build issue with TRUE and FALSE for mmem builds.
git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4552 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-12-02 09:16:52 +00:00
Cedric Roux 499ec0753a - Converted calloc to malloc in ITTI to save some time
- Added vcd signal for alloc of message

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4551 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-12-02 08:58:32 +00:00
winckel cd22e69f5e Removed non ENABLE_EVENT_FD option in ITTI.
Modified message processing for RT task when RTAI is enabled.
Clean-up logs format in RRC.
Fixed some warnings.

pre-ci Ok.

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4550 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-11-29 16:06:30 +00:00
Cedric Roux 60dc65197c - Fix an issue that prevent some logs from being dumped
git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4546 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-11-28 16:28:08 +00:00
Cedric Roux 6102fa4b60 - Fix some performances issues for softmodem
- Remove eventfd if task has only polling mode
- Created dummy thread to convert eventfd from RT thread to non RT threads
- Added eNB app to softmodem
- Set poll mode for itti dumper thread in softmodem
- Disable timers for softmodem

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4545 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-11-28 15:51:49 +00:00
Cedric Roux df177680ce - Put itti writes to file in another thread to avoid locks when flushing the file
git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4522 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-11-26 13:06:45 +00:00
Cedric Roux b2e4d83e0f - Check return value of event semaphore operations (read/write)
git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4512 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-11-25 14:09:36 +00:00
winckel f3362b9a8e Added support for other ITTI log messages levels to match oaisim log levels.
git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4430 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-11-19 14:28:03 +00:00
Cedric Roux 0b10b80f68 - Subscribe to errors events in itti
- Fixed timeout for sctp when host is unreachable

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4418 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-11-15 15:47:50 +00:00
winckel 9414363c02 Added an ITTI local function to find task ID when not known from current pthread.
Added ERROR and WARNING messages description.

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4415 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-11-15 14:56:10 +00:00
Cedric Roux 5e2586626c - Added new feature to ITTI:
* Possibilty to dump formatted strings directly to the analyzer
- Updated itti_analyzer accordingly

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4413 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-11-15 12:49:51 +00:00
winckel 18cff95951 Added support of LTE time (logical time) in ITTI messages.
git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4393 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-11-14 07:49:50 +00:00
winckel fb84398911 Modified ITTI to not transmit message for "TASK_UNKNOWN", this allow using message to this task for debug purpose.
git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4362 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-11-12 10:47:54 +00:00
winckel b5afe14d13 Replaced global ITTI queue size limit with a by task size limit.
git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4352 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-11-08 13:05:38 +00:00
winckel cefa14650f Modified ITTI to create one message queue for each task and sub task.
Still only one thread is created by task.

pre-ci ok.

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4350 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-11-08 09:43:03 +00:00
winckel 7535f20c31 Solved a race issue between event and message in ITTI with ENABLE_EVEN_FD.
git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4346 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-11-07 14:53:17 +00:00
Cedric Roux e8230f2726 - Bugfix for epoll_wait and interrupted system call when using gdb
- Fix memory leaks for itti_analyzer

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4333 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-11-06 16:10:19 +00:00
Cedric Roux 1863318719 - Added api to subscribe/unsuscribe to new fd events for epoll_wait. Note that events added this way should be monitor by the task itself.
git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4331 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-11-06 14:55:47 +00:00
Cedric Roux 9e149aa888 - Fix semaphore value for write
git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4329 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-11-06 12:11:17 +00:00
Cedric Roux 9eb721449d - New core event dispatcher for ITTI: will allow a single task to monitor on multiple event sources via event_fd + epoll_wait apis
- Mutex per user for the ITTI dumper to avoid sending new signals when the XML is dumped to logger

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4328 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-11-06 11:01:58 +00:00
winckel c560dac658 Added "itti_dump_exit" function to terminate dump activities when itti is exiting.
git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4312 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-10-31 16:47:32 +00:00
winckel fef704c73c Completed log file read in itti_analyzer.
Creates a common types definition file for itti_analyzer.
Set message start number to 1.
Changed message name field to 48 char to avoid alignment issues.

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4311 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-10-31 15:17:55 +00:00
winckel 5260b60df7 Added a command line option "-K file_name" to save ITTI logs directly.
Created "RRC_MAC_BCCH_DATA_REQ" message.
Separated L2L1 sub task by eNB/UE to separate messages handling in PDCP and MAC.
Added ITTI messages poll in MAC sub tasks.

pre-ci ok.

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4300 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-10-30 08:21:23 +00:00
Cedric Roux 33d621c4e9 - New function: get task name
git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4288 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-10-28 16:21:01 +00:00
winckel f8ff00481d Replaced ITTI_ERROR by DevAssert or DevCheck, error in ITTI are critical and should stop the program!
Disabled debug log in ITTI by default.
Added ITTI_MSG_NAME and ITTI_MSG_INSTANCE defines to simplify acces to some part of message header.

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4284 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-10-25 14:01:50 +00:00
winckel f00c036367 added "itti_exit_task" to terminate current task when a MESSAGE_TERMINATE is received.
Modified "itti_wait_tasks_end" to exit when some threads are not terminated after a 1 second time-out.
modified "SIGINT" handling, exit is done after tring to join all threads like for "SIGUSR1".
Added message reception for TASK_L2L1 and handling of TEST and TERMINATE messages in oaisim.

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4269 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-10-23 14:08:42 +00:00
winckel b45af4a3c9 Moved files related to assertions, backtrace and signals handling into ITTI directory.
Renamed all ITTI functions, to make them start with module name ("itti_").
Added generic signals handling support in ITTI.
Changed ITTI log port for oaisim to 10006.
Introduce an option to use ITTI in oaisim and reoragized code.

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4267 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-10-23 12:18:35 +00:00
winckel 497527fa1b Created defines to shift task id fields.
Fixed an issue with message broadcast, task Id was incorrect.

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4263 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-10-22 16:14:41 +00:00
winckel 04fa42dd01 Moved ITTI into common/utils.
git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4236 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-10-21 09:08:27 +00:00