Commit Graph
48 Commits
Author SHA1 Message Date
winckel ff4b9a11ec Added a define to access TIMER_HAS_EXPIRED fields.
git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4571 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-12-04 08:25:06 +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
winckel a61af35ad5 Changed ITTI instance type and default and all values.
Added a sub task ID identification in logs.

pre-ci Ok.

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4542 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-11-28 15:11:02 +00:00
winckel c0ec13517c Added the flag itti_dump_running to stop enqueuing messages when exiting the ITTI dump thread.
git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4533 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-11-26 17:02:01 +00:00
winckel 4005331283 Fixed some free issue.
git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4530 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-11-26 16:01:13 +00:00
Cedric Roux 05b0074f72 - Fix dependencies
git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4528 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-11-26 14:12:58 +00:00
Cedric Roux 969c046701 - Set priority for dumper thread
git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4525 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-11-26 13:30:13 +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
Cedric Roux e1d2667467 - Renamed msg structure in ITTI to ittiMsg to avoid confusions when parsing XML file if multiple structure "msg" are defined
- Fix build issue of EPC
- Enable event fd for EPC instead of pthread_cond
- Added some new S1AP messages defintions


git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4506 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-11-24 17:44:11 +00:00
Cedric Roux 6f6a52c71b - Flush XML definition to file at initialization and wait for completion
git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4465 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-11-20 15:00:09 +00:00
winckel 7643bc6170 Fixed an issue with file dump writing after close.
Added logging by ITTI support for other log levels.

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4431 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-11-19 14:37:15 +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
winckel f6c2677a76 Renamed ERROR and WARNING message to avoid conflicts with enum value in openair-cn.
git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4425 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-11-18 08:25:11 +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
Cedric Roux 612a29e855 - Inserted macro to retrieve instance from a message
git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4377 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-11-13 09:10:24 +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 f5934888c7 Removed useless value (MESSAGES_ID_END) in messagesIds enum.
git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4320 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-11-05 13:51:44 +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 5d434368cc Corrected size of XML message.
git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4310 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-10-31 09:35:27 +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
winckel 7655b0c2b1 Added Origin task name in PDCP debug log.
git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4298 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-10-29 16:52:45 +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
Cedric Roux d5215b4d28 - Use send instead of write for socket operations
git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4261 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-10-22 14:45:02 +00:00
winckel ade86715fa Moved ITTI configuration values into a separate file.
Corrected some header issues.

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4248 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-10-22 07:43:34 +00:00
winckel 11b1a9c0da Moved ITTI configuration values into a separate file.
Included "mme_config.h" explicitely in files because it must be removed from "intertask_interface.h" to make ITTI more generic.
Removed some useless timer definitions.

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4247 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-10-22 07:40:37 +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