msm: adsprpc: Verbose logging in case of dma attachment failures
When dma attachment fails during mmap_create, status of HLOS memory is logged with sizes occupied by heap and non heap buffers mapped in fl maps. The purpose of this data is to get a snapshot of memory usage. Change-Id: Ie913702a743a8572d9f68c9b58233d28541167b9 Signed-off-by: Ansa Ahmed <quic_ansa@quicinc.com>
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

parent
543b55072d
commit
15b180fee9
@@ -827,6 +827,13 @@ struct fastrpc_dspsignal {
|
||||
int state;
|
||||
};
|
||||
|
||||
struct memory_snapshot {
|
||||
/* Total size of heap buffers allocated in userspace */
|
||||
size_t heap_bufs_size;
|
||||
/* Total size of non-heap buffers allocated in userspace */
|
||||
size_t nonheap_bufs_size;
|
||||
};
|
||||
|
||||
struct fastrpc_file {
|
||||
struct hlist_node hn;
|
||||
spinlock_t hlock;
|
||||
@@ -844,6 +851,8 @@ struct fastrpc_file {
|
||||
struct fastrpc_buf *pers_hdr_buf;
|
||||
/* Pre-allocated buffer divided into N chunks */
|
||||
struct fastrpc_buf *hdr_bufs;
|
||||
/* Store snapshot of memory occupied by different buffers */
|
||||
struct memory_snapshot mem_snap;
|
||||
|
||||
struct fastrpc_session_ctx *secsctx;
|
||||
uint32_t mode;
|
||||
|
Reference in New Issue
Block a user