Commit Graph
51 Commits
Author SHA1 Message Date
frtabu 24f8fcf346 Use common log mechanism in layer 3, mapping specific macros to common ones and extending common log utilities to support specific layer3 requirements 2018-08-24 17:43:14 +02:00
Cedric Roux 55ba99ac62 T: check consistency of T_messages.txt with VCD functions and variables traces
Since VCD has now to go through the T tracer, we enforce the consistency
of data found in common/utils/LOG/vcd_signal_dumper.[ch] with data
found in common/utils/T/T_messages.txt.

We might get completely rid of common/utils/LOG/vcd_signal_dumper.[ch] at some
point. For the moment, let's keep it.

This commit adds the program common/utils/T/check_vcd.c and necessary
modifications to enforce its use at compilation time.

If you modify common/utils/LOG/vcd_signal_dumper.[ch] but do not update
common/utils/T/T_messages.txt an error will pop up when you compile the
software. You have to keep both modules synchronized.
2018-08-17 12:24:39 +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 eb3b87d956 T: bugfix and cleanup
- bug fixed in ue and enb tracer: the socket needs to be closed
  in case of restart
- cleanup: fix spacing in T_messages.txt
2018-08-08 11:58:26 +02:00
frtabu b85cbddeec log.c simplification, fix usefull functionality which never worked, move all log code from openair2 to common 2018-07-30 20:07:22 +02:00
Cedric Roux d89009becf fix 2018-07-20 16:04:39 +02:00
Cedric Roux 42c3e6066c fix 2018-07-20 15:57:52 +02:00
Cedric Roux fa4a9a0cb9 integration fix: update T tracer: add new VCD variables 2018-04-12 11:36:31 +02:00
Cedric Roux 3a867ac767 integration fix: add T trace 2018-01-19 15:51:38 +01:00
Cedric Roux 922b5b595a Fix NFAPI integration
This commit fixes issues introduced by the previous commit.

Summary of work:
- cleanup:
  - fix LOG_XX to be less verbose
  - fix cmake_targets/CMakeLists.txt
  - fix oaienv
  - remove dead code
- bug fixes:
  - in openair1/SCHED/fapi_l1.c we had:
      eNB->pdcch_vars[subframe&1].num_dci           = number_dci;
    should be:
      eNB->pdcch_vars[subframe&1].num_dci           = 0;
    This bug let the PHY send more DCIs than what should have been
    sent because num_dci is incremented later on in the code.
    This fix may be a problem for fapi mode, to be checked.
  - add new T VCD traces
  - revert openair1/PHY/TOOLS/file_output.c to 'develop' version
  - remove thread_id in logRecord/logRecord_mt
  - revert (and adapt) configuration files
  - be careful when doing frame++, we need to % 1024
  - revert target_rx_power in openair2/LAYER2/MAC/eNB_scheduler_ulsch.c
- NFAPI:
  - the open-nFAPI code has been included in the repository. See nfapi/README.
    Maybe we should "git clone" the Cisco repository instead. We have to be
    careful of availability though.

What has been tested:
- monolithic eNB FDD 5/10MHz with one UE, iperf UDP/TCP uplink/downlink

Anything else may fail to work, especially the FAPI mode, which has not
been tested at all.
2018-01-15 15:24:50 +01:00
Cedric Roux 4b9f58c085 T tracer: fix traces (add/remove to be in synch with VCD module) 2017-10-23 17:40:58 +02:00
Cedric Roux e6936f1b7c update T tracer
not finished, UE may not work, many things bad/to fix properly
2017-09-27 17:59:08 +02:00
Cedric Roux 761bf3c4c2 T: fix VCD traces 2017-08-29 17:18:23 +02:00
Cedric Roux 0daf79bfc8 T: add some new traces
- ENB_PHY_OUTPUT_SIGNAL to trace output signal
- ENB_MAC_SCHEDULING_REQUEST to trace scheduling requests
2017-08-29 10:23:06 +02:00
Cedric Roux 8625a8672a T: improve trace ENB_PHY_ULSCH_UE_DCI 2017-05-19 16:17:56 +02:00
Cedric Roux 2d8ae33544 T: remove ENB_MAC_UE_UL_PDU_WITH_DATA from group HEAVY
we want those traces in the logs people send to us and
the group HEAVY is disabled in the wiki instructions.
2017-01-30 17:25:43 +01:00
Cedric Roux 03bf3a6dc5 put UE T messages above VCD ones
looks better
2017-01-30 17:24:44 +01:00
Cedric Roux bb903e8d4f add/remove T traces to be up to date with current software 2017-01-30 17:24:08 +01:00
hbilel a1f25f073c [OAI-UE] T-tracer for UE, more traces 2016-12-22 11:09:57 +01:00
hbilel 619d34d781 [OAI-UE] UE T-tracer updates part 2 2016-12-19 18:05:59 +01:00
hbilel 15a1af31db [OAI-UE] adapt T-tracer to support OAI-UE 2016-12-19 17:34:27 +01:00
Cedric Roux 66c292b95b integration fix: update T messages 2016-12-19 11:19:05 +01:00
Chia-Yu Chang 7f4c961d82 add T messages for FLEXRAN and fix a complication error in FLEXRAN 2016-12-12 18:41:26 +01:00
Cedric Roux d7831c1f57 T: add TBS to ENB_PHY_DLSCH_UE_DCI 2016-12-05 14:52:12 +01:00
Cedric Roux 7adc4703be T: update traces
- add mcs to ENB_PHY_DLSCH_UE_DCI
- add mcs, round, first_rb, nb_rb, TBS to ENB_PHY_ULSCH_UE_DCI
2016-11-30 16:29:14 +01:00
Cedric Roux b526ef7b47 T: update a trace
add ndi to trace ENB_MAC_UE_DL_SDU
2016-11-22 12:04:06 +01:00
Cedric Roux 43df291374 T: add some traces
- Msg3 allocation
- initiation of Random Access procedure
2016-11-22 10:17:22 +01:00
Cedric Roux c03f13c07b T: add a trace for PHICH 2016-11-18 10:29:48 +01:00
Cedric Roux 634ac5fc75 T: update T_message.txt and T_defs.h for VCD traces
The VCD traces have changed. This commit gets in synch
with current status.
2016-10-18 18:02:34 +02:00
Cedric Roux b07efe7a01 add trace ENB_MAC_UE_DL_PDU_WITH_DATA to trace downlink pdu 2016-07-27 11:36:35 +02:00
Cedric Roux bb0816cdeb 2 new T logs: MAC PDU/SDU with buffer data 2016-06-23 12:38:59 +02:00
Cedric Roux c5b126f598 update format of trace ENB_PHY_PUSCH_IQ to include N_RB_UL and symbols_per_tti 2016-06-20 10:02:40 +02:00
Cedric Roux 126be3fea6 synchronize VCD data in the T 2016-06-16 17:13:32 +02:00
Cedric Roux d0a33fac6c cleanup: rename legacy groups warning/info/error/xxx 2016-06-16 12:36:29 +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 416491821d add mac/rlc/pdcp messages' definitions to T_messages.txt
to be refined, it's rough
2016-06-10 10:44:42 +02:00
Cedric Roux c27e69f633 add harq_pid to some T traces
- update T_messages.txt
- update call sites of the T for thoses traces
2016-06-09 10:44:47 +02:00
Cedric Roux e268281233 add T log ENB_MASTER_TICK 2016-06-09 10:40:53 +02:00
Cedric Roux b87405ad7c add PHY uplink dci/retrans/ack/nack T traces 2016-06-06 11:40:46 +02:00
Cedric Roux cc67ce6dcc add RRC messages to T_messages.txt 2016-05-27 18:35:43 +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 1814707287 add groups VCD_VARIABLE and VCD_FUNCTION 2016-05-20 16:15:37 +02:00
Cedric Roux f38476aee4 import VCD into the T 2016-05-20 15:27:14 +02:00
Cedric Roux 0e03381016 log ack/nack at phy level (process_harq_feedback) 2016-05-17 18:48:11 +02:00
Cedric Roux b0ee0f4c82 add UE downlink DCI logging 2016-05-17 18:10:36 +02:00
Cedric Roux bc3aa8581f add group ENB to T_messages.txt 2016-05-17 17:36:08 +02:00
Cedric Roux 5822e94e5f starting work on DL/UL DCI graphical logging 2016-05-17 17:33:45 +02:00
Cedric Roux 87acde28f7 - change group names in T_messages.txt for legacy logs
- add group ALL
2016-05-04 11:28:32 +02:00
Cedric Roux 42d9180532 add FORMAT to legacy logs 2016-04-26 16:34:15 +02:00