在CamX中,如何控制KMD的debug log和trace打印呢?
设置要打开哪些模块的Log
首先,确定要打开哪些模块的Log,然后将这些模块的值与在一起,转换成十六进制。
然后,通过echo命令写到/sys/module/camera/parameters/debug_mdl,
比如:
adb shell "echo 0x1001030 > /sys/module/camera/parameters/debug_mdl"
具体的模块定义在:techpack/camera/drivers/cam_utils/cam_debug_util.h
/* Module IDs used for debug logging */
#define CAM_CDM (1 << 0)
#define CAM_CORE (1 << 1)
#define CAM_CPAS (1 << 2)
#define CAM_ISP (1 << 3)
#define CAM_CRM (1 << 4)
#define CAM_SENSOR (1 << 5)
#define CAM_SMMU (1 << 6)
#define CAM_SYNC (1 << 7)
#define CAM_ICP (1 << 8)
#define CAM_JPEG (1 << 9)
#define CAM_FD (1 << 10)
#define CAM_LRME (1 << 11)
#define CAM_FLASH (1 << 12)
#define CAM_ACTUATOR (1 << 13)
#define CAM_CCI (1 << 14)
#defin