summaryrefslogtreecommitdiff
path: root/cesar/ce/rx/inc
diff options
context:
space:
mode:
authorJérémy Dufour2011-01-06 16:42:28 +0100
committerJérémy Dufour2011-01-17 14:25:31 +0100
commit05588cb2a5611a82640a8880d7feb1f05e19948a (patch)
treef6d9c7b4e3440df7e3faa55143e11c6cf0b8bf42 /cesar/ce/rx/inc
parent70e1c9bdb36a44caec27bce3fee72e104007a6a8 (diff)
cesar/ce/rx: improve trace of ce rx, closes #2199
This commit includes: - rewrite of some traces for better understanding, - support of timestamps, - new traces to detect the reason for making the ce restart.
Diffstat (limited to 'cesar/ce/rx/inc')
-rw-r--r--cesar/ce/rx/inc/trace.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/cesar/ce/rx/inc/trace.h b/cesar/ce/rx/inc/trace.h
index 484ca2feaf..d418596b9c 100644
--- a/cesar/ce/rx/inc/trace.h
+++ b/cesar/ce/rx/inc/trace.h
@@ -20,10 +20,14 @@
* Shortcut for tracing inside CE RX.
*/
#define CE_RX_TRACE(id, args...) \
- TRACE_SHORT (CE_RX_TRACE_, &ce_rx->trace, id, ## args)
+ TRACE_SHORT (CE_RX_TRACE_, &ce_rx->trace, id, phy_date (), ## args)
+
+#define CE_RX_TRACE_N(id, args, nb_args) \
+ TRACE_N_SHORT (CE_RX_TRACE_, &ce_rx->trace, id, args, nb_args)
#define CE_RX_TRACE_VERBOSE(id, args...) \
- TRACE_FAST_SHORT (CE_RX_TRACE_, &ce_rx->trace_verbose, id, ## args)
+ TRACE_FAST_SHORT (CE_RX_TRACE_, &ce_rx->trace_verbose, id, phy_date (), \
+ ## args)
#if CONFIG_TRACE
@@ -37,11 +41,12 @@ enum
CE_RX_TRACE_SEND_TONEMAP,
CE_RX_TRACE_SEND_TONEMAP_REFRESH,
CE_RX_TRACE_FSM_FROM_TO,
- CE_RX_TRACE_FSM_HANDLING_EVENT,
- CE_RX_TRACE_TONEMAP_INITIAL,
+ CE_RX_TRACE_TONEMAP,
CE_RX_TRACE_INITIAL_WORSE_THAN_ROBO,
- CE_RX_TRACE_RESTART_CE,
+ CE_RX_TRACE_RESTART_FORCED,
CE_RX_TRACE_PB_ERR_RATE_HIGH,
+ CE_RX_TRACE_RESTART_PB_ERR,
+ CE_RX_TRACE_RESTART_BER,
};
BEGIN_DECLS