Commit Graph
30 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
francescomani 1e1679b668 memleak 2024-04-09 16:44:56 +02:00
Cedric Roux 1f81b3f1a2 T tracer: textlog: remove GUI code
textlog is, well, text log. The GUI part is totally useless.
Let's remove it.
2024-02-28 16:19:32 +01: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 8a2a5015e6 T tracer tools: fix memory leaks, clang warnings
- Fix memory leaks detected by ASan
- Initialize variables that are flagged by compiler
- C struct initializer: x:y needs to be .x=y
2023-07-13 10:29:33 +02:00
Raphael Defosseux a82342298e changed back some cppcheck "fixes" and updated the cppcheck suppression list
Signed-off-by: Raphael Defosseux <raphael.defosseux@eurecom.fr>
2019-02-20 14:42:17 +01:00
Raphael Defosseux 9aab83c509 Fixing a few last cppcheck errors/warnings
Signed-off-by: Raphael Defosseux <raphael.defosseux@eurecom.fr>
2019-02-19 17:42:27 +01:00
Cedric Roux a46443b2a9 T: textlog: add option to dump 'raw time'
'raw time' is the tv_sec element in the struct tm
as returned by 'localtime'.

This can be useful to extract events from a dump based on their time.
2018-10-31 12:07:16 +01:00
Cedric Roux f6f6570d6e T: minor: don't abort() in textlog.c
This leads to some logs missing in some situations.
Plus it's not user-friendly.
2018-10-23 18:05:40 +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 6a809e84de add option -full to textlog.c to display full content of buffers 2016-06-22 16:13:47 +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 1f389ec019 cleanup: rename PHY traces (and update code to reflect the changes) 2016-06-16 12:16:20 +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 df5afaa93d store received time in events for later processing 2016-05-12 13:00:19 +02:00
Cedric Roux e5689a5bd1 introducing a generic logger "class" 2016-05-12 10:59:59 +02:00
Cedric Roux d8ec913bcd minor bugfix - forgot an ifdef 2016-05-11 18:33:40 +02:00
Cedric Roux aacb2ff7c2 send time in events
this calls clock_gettime for each active T macro, hopefully it
does not eat too much CPU

can be deactivated by commenting one line in T_defs.h
2016-05-11 18:26:30 +02:00
Cedric Roux 8cca28b3e7 put textlog.[ch] in logger/ and rename remote.c to textlog.c 2016-05-04 10:31:42 +02:00
Cedric Roux f0d32a8611 smaller event selector window 2016-05-02 16:55:17 +02:00
Cedric Roux c3e59b16b3 some work on event selector 2016-05-01 22:43:36 +02:00
Cedric Roux 2df85ee84a cleanup 2016-04-28 16:36:03 +02:00
Cedric Roux ca945b53de first version of textlog with GUI
introducing generic "view" with two instantiations: stdout and textlist
2016-04-28 15:02:01 +02:00
Cedric Roux e15a809458 first version of a textlog remote logger 2016-04-27 18:31:34 +02:00