13 Commits
Author SHA1 Message Date
Robert Schmidt ed89498c4f Use standard C initializer list syntax
Fix clang warning

  warning: use of GNU old-style field designator extension [-Wgnu-designator]
2024-04-18 14:16:09 +02:00
Robert Schmidt f099ff59eb Rename T files to avoid name clashes
There is already common/utils/config.h. This file(name) is hardcoded as
it is included into asn1c, and cannot be renamed. To avoid a name clash
and confusing, we rename T's config.h/c to configuration.h/c.
2023-08-01 13:49:25 +02:00
Cedric Roux 52cf61de97 T tracer: don't depend on T_BUFFER_MAX anymore in the tracers
Whenever the value T_BUFFER_MAX changes, the tracers had to
be recompiled. The only reason why it was needed is because we
used some fixed size buffers to read events. This commit removes
this restriction.

Also, with the basic simulator, this value T_BUFFER_MAX now comes
with an #ifdef which would have required some special hackish-level
tricks in the tracers, which is not good.

Let's just allocate memory when needed.
2018-05-02 12:11:34 +02:00
Cedric Roux 9d49702639 cleanup: put DEFAULT_REMOTE_IP and DEFAULT_REMOTE_PORT in utils.h 2016-06-17 11:14:14 +02:00
Cedric Roux 88c44ef9fe rename store_config_file load_config_file 2016-06-05 17:54:38 +02:00
Cedric Roux 1a9d614f0e take care of SIGPIPE received when writing a dead socket
write() on a socket with the other end closed throws a SIGPIPE.
Let's ignore this signal. write() will return an error anyway...
2016-06-05 17:42:44 +02:00
Cedric Roux 83350a807f reading a socket does not abort anymore
fullread has been changed, so get_event too, and the callers also
for the moment the callers crash, enb.c will be a bit more clever,
the others to see...
2016-06-05 17:39:06 +02:00
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 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 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 25546ae920 cleanup: better to on/off traces outside of gui creation 2016-05-20 16:49:58 +02:00
Cedric Roux 5dec2748ec add a basic VCD plotter 2016-05-20 16:11:44 +02:00