Commit Graph
72 Commits
Author SHA1 Message Date
winckel eb4399a10e Added stderr and stdout flush to CHECK_INIT_RETURN.
git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4769 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-12-19 08:45:09 +00:00
winckel 825f0cd111 Added VCD log points in memory pools allocate and free function.
git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4767 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-12-19 08:13:25 +00:00
winckel 9284206344 Changed task id for ITTI dump thread.
git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4766 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-12-19 08:10:54 +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 309bf36129 Fixed a build issue with RTAI.
git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4758 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-12-18 13:25:26 +00:00
winckel 46dc719895 Added item status to check double free attempt.
Splitted 32bits item info into two 16bits info.

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4757 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-12-17 22:34:55 +00:00
winckel b3bfef1214 Added "memory_pools_statistics()" and fixed some issue in MP.
git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4753 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-12-17 14:49:36 +00:00
winckel ad3f704e7f Added item alloc and free functions.
git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4745 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-12-16 21:08:20 +00:00
winckel fcde22a252 Added files for memory pools handling.
git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4744 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-12-16 16:02:11 +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 3c4bda72e3 Created ACTIVATE_MESSAGE and DEACTIVATE_MESSAGE messages.
git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4687 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-12-12 10:11:08 +00:00
winckel f3f9866047 Fixed a SIGSEGV issue when stopping oaisim.
git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4684 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-12-12 09:08:40 +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 c5a3b8a954 Modified timer log to use oaisim / lte-softmodem logging rather than fprintf when available.
Moved itti initialization in oaisim to have log initialized just before.

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4594 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-12-04 16:33:36 +00:00
winckel b566d59dd5 Changed enum order to have correct name in itti_analyzer for the first task (TIMER_TASK).
git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4593 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-12-04 16:23:56 +00:00
winckel 9c825398cb Added the INITIALIZE_MESSAGE.
git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4572 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2013-12-04 08:26:00 +00:00
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