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
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