dfc: add stall recovery timer
Add watchdog timer to recover potential data stall when data is not going to the expected DRB and no DFC indication is received. Change-Id: Iaa4b4814967cf9400c36115a083922376d23928d Acked-by: Weiyi Chen <weiyic@qti.qualcomm.com> Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
This commit is contained in:
22
core/dfc.h
22
core/dfc.h
@@ -292,6 +292,28 @@ TRACE_EVENT(dfc_adjust_grant,
|
||||
__entry->rx_bytes, __entry->inflight, __entry->a_grant)
|
||||
);
|
||||
|
||||
TRACE_EVENT(dfc_watchdog,
|
||||
|
||||
TP_PROTO(u8 mux_id, u8 bearer_id, u8 event),
|
||||
|
||||
TP_ARGS(mux_id, bearer_id, event),
|
||||
|
||||
TP_STRUCT__entry(
|
||||
__field(u8, mux_id)
|
||||
__field(u8, bearer_id)
|
||||
__field(u8, event)
|
||||
),
|
||||
|
||||
TP_fast_assign(
|
||||
__entry->mux_id = mux_id;
|
||||
__entry->bearer_id = bearer_id;
|
||||
__entry->event = event;
|
||||
),
|
||||
|
||||
TP_printk("mid=%u bid=%u event=%u",
|
||||
__entry->mux_id, __entry->bearer_id, __entry->event)
|
||||
);
|
||||
|
||||
#endif /* _TRACE_DFC_H */
|
||||
|
||||
/* This part must be outside protection */
|
||||
|
Reference in New Issue
Block a user