Welcome to the Linux Foundation Forum!

How to Parse ioctl's arg Parameter for clCreateBuffer on Qualcomm and MediaTek

gmike
gmike Posts: 4

To analyze the memory peak of the project, I hooked memory-related function calls, including ioctl. On the Qualcomm (qcom) and MediaTek (mtk) mobile platforms, I found that clCreateBuffer allocates memory through ioctl. Furthermore, the ioctl request value for Qualcomm is 3224373573, and for MediaTek, it is 3225452603. However, I don't know the structure of the third parameter, arg. Could you advise how to parse arg for the Qualcomm and MediaTek platforms?

The related hook code is located at https://github.com/Gao-HaoYuan/dmabuffer_alloc_trace

Categories

Upcoming Training