msm: camera: common: Define debugflag to allocate usecase info
Define debug flag to allocate usecase info for debug purpose. This flag can be used to get usecase buffer index at issue time. CRs-Fixed: 2707314 Change-Id: Iffacdb48f77ec6907b8070d4c19eb1c56be30f14 Signed-off-by: Alok Chauhan <alokc@codeaurora.org>
This commit is contained in:
@@ -71,6 +71,7 @@ struct cam_mem_buf_queue {
|
||||
* @bufq: array of buffers
|
||||
* @dentry: Debugfs entry
|
||||
* @alloc_profile_enable: Whether to enable alloc profiling
|
||||
* @dbg_buf_idx: debug buffer index to get usecases info
|
||||
*/
|
||||
struct cam_mem_table {
|
||||
struct mutex m_lock;
|
||||
@@ -79,6 +80,7 @@ struct cam_mem_table {
|
||||
struct cam_mem_buf_queue bufq[CAM_MEM_BUFQ_MAX];
|
||||
struct dentry *dentry;
|
||||
bool alloc_profile_enable;
|
||||
size_t dbg_buf_idx;
|
||||
};
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user