msm: adsprpc: add variable to store interrupted ts

Currently no debug information of when ctx interrupted,
restored. This make ioctl hang/high invoke time issues
hard to debug. Add variables to store interrupted, restore
timestamp in pending ctx and gmsg_log.

Change-Id: I32226e96c54acb5878f2b8d37110bae7f65d49f3
Signed-off-by: nishant chaubey <quic_chaubey@quicinc.com>
This commit is contained in:
nishant chaubey
2023-02-09 16:28:27 +05:30
committed by Gerrit - the friendly Code Review server
부모 4024c08023
커밋 c31f7a037d
2개의 변경된 파일63개의 추가작업 그리고 13개의 파일을 삭제

파일 보기

@@ -737,6 +737,8 @@ struct fastrpc_tx_msg {
int transport_send_err; /* transport error */
int64_t ns; /* Timestamp (in ns) of msg */
uint64_t xo_time_in_us; /* XO Timestamp (in us) of sent message */
uint64_t xo_time_in_us_interrupted; /* XO Timestamp (in us) of interrupted ctx */
uint64_t xo_time_in_us_restored; /* XO Timestamp (in us) of restored ctx */
};
struct fastrpc_rx_msg {
@@ -829,6 +831,9 @@ struct smq_invoke_ctx {
uint32_t sc_interrupted;
struct fastrpc_file *fl_interrupted;
uint32_t handle_interrupted;
uint64_t xo_time_in_us_interrupted; /* XO Timestamp (in us) of interrupted ctx */
uint64_t xo_time_in_us_restored; /* XO Timestamp (in us) of restored ctx */
int tx_index; /* index of current ctx in channel gmsg_log array */
};
struct fastrpc_ctx_lst {