msm: camera: memmgr: Set name for dma buffer to help profiling

For dma buffer profiling,we don't konw the owner of one dma
buffer. So we add it's name to show it's owner.
If you use v1 struct to alloc/map dma buffer it will use
default buffer name "UNKNOWN". For v2 struct you can set dma
buffer name at UMD side.

CRs-Fixed: 3131442
Change-Id: I24ce6aa1d97cd9fc26d9bd8796ab2367607008f6
Signed-off-by: Fengjie Chen <quic_fengjiec@quicinc.com>
Этот коммит содержится в:
Fengjie Chen
2021-12-14 17:55:15 +08:00
коммит произвёл Camera Software Integration
родитель 2e6c254487
Коммит cf223fa7b3
6 изменённых файлов: 170 добавлений и 12 удалений

Просмотреть файл

@@ -139,7 +139,7 @@ struct cam_mem_table_mini_dump {
*
* @return Status of operation. Negative in case of error. Zero otherwise.
*/
int cam_mem_mgr_alloc_and_map(struct cam_mem_mgr_alloc_cmd *cmd);
int cam_mem_mgr_alloc_and_map(struct cam_mem_mgr_alloc_cmd_v2 *cmd);
/**
* @brief: Releases a buffer reference
@@ -157,7 +157,7 @@ int cam_mem_mgr_release(struct cam_mem_mgr_release_cmd *cmd);
*
* @return Status of operation. Negative in case of error. Zero otherwise.
*/
int cam_mem_mgr_map(struct cam_mem_mgr_map_cmd *cmd);
int cam_mem_mgr_map(struct cam_mem_mgr_map_cmd_v2 *cmd);
/**
* @brief: Perform cache ops on the buffer