qcacmn: Add stats in Spectral report processing path

Add the following stats.
 - Number of Spectral events received from the target
 - Number of consume_spectral_report() invocations
 - Number of fill_samp_msg() invocations
 - Number of SAMP messages that are ready to be sent to the user-space
 - Number of SAMP messages queued to the user-space

Change-Id: I53fda4b309620043a77bc2bc87573941d7fb0bcb
CRs-Fixed: 3156151
This commit is contained in:
Shiva Krishna Pittala
2022-03-22 14:27:51 +05:30
committed by Madan Koyyalamudi
parent 4759d79767
commit aeb2ffde14
4 changed files with 35 additions and 1 deletions

View File

@@ -469,6 +469,23 @@ struct spectral_cp_request {
};
};
/**
* struct spectral_data_stats - Spectral data stats
* @spectral_rx_events: Number of Spectral rx events
* @consume_spectral_calls: Number of consume_spectral_report() invocations
* @fill_samp_msg_calls: Number of fill_samp_msg() invocations
* @msgs_ready_for_user: Number of SAMP messages that are ready to be sent to
* user-space
* @msgs_queued_to_user: Number of SAMP messages queued to the user-space
*/
struct spectral_data_stats {
uint32_t spectral_rx_events;
uint32_t consume_spectral_calls;
uint32_t fill_samp_msg_calls;
uint32_t msgs_ready_for_user;
uint32_t msgs_queued_to_user;
};
#ifndef __KERNEL__
static inline int16_t