qualcomm How to enable camera logs on Android builds?

Question : How to enable camera logs on Android builds?
Answer: User space, kernel space and Qualcomm camera HAL logs can be enabled as follows:
1. To enable user space logs, change camera_dbg.h file under vendor\qcom\proprietary\mm-camera\common folder as like below or define MM_DEBUG in Android.mk located invendor\qcom\proprietary\mm-camera folder. 
#define LOG_DEBUG 
#undef CDBG
#ifndef LOG_DEBUG
#define CDBG(fmt, args...) do{}while(0)
#else
<snipped>
#endif
#endif /* __CAMERA_DBG_H__ */


After “#define LOG_DEBUG”, set 1 for the #define from the list below to enable corresponding 3A logs.
#define CAM3A_AWB_DEBUG 0
#define CAM3A_AEC_DEBUG 0
#define CAM3A_AF_DEBUG0
#define CAM3A_SD_DEBUG0

2. To enable kernel logs, change camera.h file under kernel\arch\arm\mach-msm\include\mach folder. 
<snipped>
#define CONFIG_MSM_CAMERA_DEBUG

#ifdef CONFIG_MSM_CAMERA_DEBUG
#define CDBG(fmt, args...) printk(KERN_INFO "msm_camera: " fmt, ##args)
#else
#define CDBG(fmt, args...) do { } while (0)
#endif
3. To enable Qualcomm Camera HAL logs, edit the QualcommCameraHardware.cpp file as follows:
case1 : If using cupcake/donut build, the file is located under \hardware\msm7k\libcamera folder.
case2 : If using eclair build, the file is located under \vendor\qcom\android-open\libcamera2 folder. 
#define LOG_NDEBUG 0
#define LOG_NIDEBUG 0
#define LOG_NDDEBUG 0
#define LOG_TAG "QualcommCameraHardware" 
#include <utils/Log.h>
<snipped>

4. Capturing the logs to the log files:
Please refer to solution#00018580 as well if you use MSM7x30/8x55/8x60 before staring to capture camera logs of kernel spaceThe solution describes the way to use dynamic logging method for the chip sets. 

- To save userspace logs : adb logcat -v time > USER_SPACE_LOG_FILE_NAME 
- To save kernel logs : adb shell cat /proc/kmsg > KERNEL_SPACE_LOG_FILE_NAME
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值