Commit Graph
3758 Commits
Author SHA1 Message Date
Cedric Roux 9338f06e90 socket_send does not crash anymore but returns an error
The application (enb.c basically) will now monitor the socket
and reconnect if it dies. See following commits.
2016-06-05 13:10:52 +02:00
Cedric Roux 51292c2472 event_selector does not deal with socket anymore
It was wrong.
Plus it is starting work so as to make enb.c not crashing if
the tracee goes away (maybe also textlog and vcd, but those are of
less importance).
2016-06-04 23:48:03 +02:00
Cedric Roux daf9f16b9b minor: gui/image.c did include string.h 2016-06-04 23:23:19 +02:00
Cedric Roux a9d91337c0 bugfix: local tracer to accept connection from everywhere 2016-06-04 22:41:14 +02:00
Cedric Roux 91e57c8a79 fully integrate the T into build_oai/CMake
The unit simulators may still need some checks.
2016-06-02 12:39:56 +02:00
Cedric Roux fb6746537a bugfix: include T.h or compilation fails when T unused
(the T macro is then undefined)
2016-06-02 12:38:33 +02:00
Cedric Roux 2cb4d347d0 make the local tracer more robust
if a read from the remote tracer's socket fails, let's smash
the socket and wait for another remote tracer
2016-06-01 17:44:53 +02:00
Cedric Roux 2219fe54ef the tracer can now stop its tracing without disturbing the tracee
it's buggy. Next commit to fix it.

The problem is if the tracer exits while sending a message.
The local tracer will not get it full and will throw garbage
to the T in the tracee, leading to some bad things...
2016-06-01 17:18:57 +02:00
Cedric Roux 2966fae4a5 update lte-softmodem to deal with the locally integrated tracer 2016-06-01 16:15:55 +02:00
Cedric Roux 358a37910c put local tracer in tracee
plus some cleanup here and there
2016-06-01 15:42:29 +02:00
Cedric Roux 05afc953e8 cleanup - _T_cache variable had no place here... 2016-05-31 18:50:01 +02:00
Cedric Roux f5313266ad integration of local tracer into tracee - step 3
get rid of forward.c, make everything static inside local.c
2016-05-31 18:30:59 +02:00
Cedric Roux 3b226410d2 cleanup
remove forward stuff from defs.h
remove defs.h from local.c and forward.c
2016-05-31 18:09:26 +02:00
Cedric Roux b3889a44be integration of local tracer into tracee - step 2
The local tracer now waits for the remote tracer to connect,
that's no more the other way around.

All the remote tracers (textlog, enb, vcd) have also been converted.
2016-05-31 18:01:49 +02:00
Cedric Roux b6854b15b8 cleanup 2016-05-31 17:18:30 +02:00
Cedric Roux 6b9db37802 start integrating local tracer directly into tracee
first step: let the tracee connect before the remote tracer
and let's have a "no wait" mode where the local tracer starts
the tracee before the remote tracer is connected
2016-05-31 17:06:45 +02:00
Cedric Roux a5e63b2726 rename T_SEND to T_COMMIT, sounds better
get rid of T_send(), no use anymore
2016-05-31 15:56:35 +02:00
Cedric Roux 3a71ecb759 remove T_USE_SHARED_MEMORY
The T only works when it's TRUE, the version without shared memory
is not supported anymore.
2016-05-31 15:47:55 +02:00
Cedric Roux 655e48c5dc enable legacy RRC info/error/warning by default in enb.c
can be deactivated on the command line or in the gui
2016-05-27 18:40:09 +02:00
Cedric Roux d9202e43f7 add RRC traces to the RRC view in enb.c 2016-05-27 18:39:40 +02:00
Cedric Roux 2e6c04cd3f add T traces to rrc_eNB.c 2016-05-27 18:38:56 +02:00
Cedric Roux f6bfd8a397 bugfix: T_ENB_RRC_CONNECTION_RECONFIGURATION was done at the wrong place 2016-05-27 18:38:25 +02:00
Cedric Roux cc67ce6dcc add RRC messages to T_messages.txt 2016-05-27 18:35:43 +02:00
Cedric Roux 4a80fd3704 add includes so that oaisim compiles with the T 2016-05-27 18:35:08 +02:00
Cedric Roux fc1c621a18 better colors in enb.c 2016-05-27 17:27:43 +02:00
Cedric Roux eeefd61433 let's print nanosecond in times of textlog instead of closest millisecond 2016-05-27 17:26:29 +02:00
Cedric Roux 32302fc233 add legacy logs to enb.c 2016-05-25 17:59:13 +02:00
Cedric Roux 0feda7fdfe add some RRC logs
- adding T macros here and there
- modify the T_messages.txt
- modify enb.c to trace them in the RRC view
2016-05-25 17:38:44 +02:00
Cedric Roux 2138a47e41 more work on enb.c
plus add rrc connection setup complete tracing
2016-05-25 16:51:33 +02:00
Cedric Roux 45728df27c bugfix: wrong index 2016-05-25 16:47:43 +02:00
Cedric Roux 2e64d54e9e the tracee (lte-softmodem) now sends the content of T_messages.txt
as special events.

If we store all received events to a file, this dump is now
self-contained. Helps to analyze traces.

Some functions have also been factorized in the process, too much
duplication.

(Also tracer/Makefile was forgotten in previous commit, included
in this one...)
2016-05-25 14:15:47 +02:00
Cedric Roux 806b6a9595 remove remote_old.c 2016-05-25 13:55:37 +02:00
Cedric Roux 187e7906cb use Xft to draw strings 2016-05-25 10:30:25 +02:00
Cedric Roux 120951d732 minor color change in enb.c 2016-05-24 17:02:38 +02:00
Cedric Roux b36c45b20d minor: gui/image.c log paint 2016-05-24 16:25:49 +02:00
Cedric Roux 9cedfbcf1b add openair logo to enb.c 2016-05-24 15:43:55 +02:00
Cedric Roux d08a2b1a60 image widget
many assumptions about X backed were made, to be refined if does not
work properly in some setups
2016-05-24 15:38:44 +02:00
Cedric Roux 50c00218c7 space widget, to add some space in the gui 2016-05-23 16:18:00 +02:00
Cedric Roux 25546ae920 cleanup: better to on/off traces outside of gui creation 2016-05-20 16:49:58 +02:00
Cedric Roux c24855b229 reverse button 1 and 3 to start and stop autoscroll in view/time.c
it seems more natural to stop autoscroll with button 3 and start it
with button 1
2016-05-20 16:17:24 +02:00
Cedric Roux 1814707287 add groups VCD_VARIABLE and VCD_FUNCTION 2016-05-20 16:15:37 +02:00
Cedric Roux 5dec2748ec add a basic VCD plotter 2016-05-20 16:11:44 +02:00
Cedric Roux f38476aee4 import VCD into the T 2016-05-20 15:27:14 +02:00
Cedric Roux 131b1bda23 remove dead code 2016-05-20 14:57:07 +02:00
Cedric Roux 55a4b2cef4 scroll view/time.c if control+mouse wheel 2016-05-19 18:01:06 +02:00
Cedric Roux 392a818b7b view/time.c autoscroll and zoom 2016-05-19 17:37:28 +02:00
Cedric Roux 34e3945249 bugfix - one needs to translate to local coordinates 2016-05-19 17:23:28 +02:00
Cedric Roux e4fd229641 gui/timeline.c click event 2016-05-19 16:00:10 +02:00
Cedric Roux 5c5f54709c gui/timeline.c scroll up/down event to include x, y, key_modifiers 2016-05-19 15:47:40 +02:00
Cedric Roux 4511fe7778 add key modifiers to button event 2016-05-19 15:28:28 +02:00