Commit Graph
13 Commits
Author SHA1 Message Date
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
frtabu 824d2b478a new set of cppcheck fixes 2019-02-12 10:12:07 +01:00
Cedric Roux fdd4366daf T: add a 'multi' tracer
This tracer allows the connection of several tracers to one tracee.

To use the multi tracer:
- run the tracee as usual, eg. ./lte-softmodem -O xxxx.conf --T_stdout 0
- run the multi tracer: ./multi -d ../T_messages.txt
- connect other tracers to the multi tracer:
   - ./enb -d ../T_messages.txt -p 2022
   - ./textlog -d ../T_messages.txt -p 2022
   - etc.

By default the multi tracer connects to the tracee to the port 2021,
as for any other tracer.

Then it accepts connections from other tracers on the port 2022.

This can be changed with parameters on the command line.

The tracee and the other tracers can be stopped/started at any time.
2018-08-08 15:41:39 +02:00
Cedric Roux 031a72de7d T: new function 'bps'
This function is used to print rates (say '1kb/s' or '16Mb/s').
2016-12-05 15:08:27 +01:00
Cedric Roux 088db3cf37 new function PUTX2 to display an int as an 8 bits hexadecimal 2016-06-22 16:10:32 +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 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 f38476aee4 import VCD into the T 2016-05-20 15:27:14 +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 ca945b53de first version of textlog with GUI
introducing generic "view" with two instantiations: stdout and textlist
2016-04-28 15:02:01 +02:00