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:
Alok Chauhan
2020-05-25 19:25:02 +05:30
parent 3da4eff78a
commit 23fc6a670c
3 changed files with 8 additions and 0 deletions

View File

@@ -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;
};
/**