Commit Graph
12 Commits
Author SHA1 Message Date
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
Cedric Roux 5b17b036ba T: improve to_vcd tracer
Make it compatible with 'template' gtwave files as found in openair's
repository.

The type VCD_NAME was added to the VCD IDs in T_messages.txt.
The database processing code was adapted to use it.
The tracer to_vcd was adapted to use it and render the produced vcd
output compatible with the 'template' gtkwave files.

When running to_vcd, do not forget to pass -vcd to use this feature.
2018-08-08 15:42:02 +02:00
Cedric Roux 45728df27c bugfix: wrong index 2016-05-25 16:47:43 +02:00
Cedric Roux d4f5ab7745 clarify "pos" in database.c
the list of IDs is stored alphabetically so when accessing the database
with an ID one needs an indirection to get the correct record.
"pos" was not clear. "id_to_pos" is clearer.
2016-05-04 10:48:12 +02:00
Cedric Roux e54f87a00e bugfix: forgot malloc return check 2016-05-04 10:38:11 +02:00
Cedric Roux c3e59b16b3 some work on event selector 2016-05-01 22:43:36 +02:00
Cedric Roux dca2143b04 add some functions in database.c 2016-04-27 18:29:17 +02:00
Cedric Roux 7dbb2b8c3f id management / bug fixes in database 2016-04-27 14:10:47 +02:00
Cedric Roux f0a704145b add get_format to database 2016-04-27 12:13:53 +02:00
Cedric Roux 7ef7fdfa4a create database.h, all in defs.h is messy 2016-04-27 11:32:13 +02:00
Cedric Roux 092f7ce546 parse FORMAT from config file 2016-04-27 11:06:20 +02:00
Cedric Roux d37484b5aa put code in the right place for integration into openair 2016-04-11 10:20:23 +02:00