CamX 判断kernel是否有发生丢帧

在CamX中,如何判断kernel是否有发生丢帧?

日志过滤关键词

可以在dmesg中搜索skip,如果有 Skip Frame 打印则表示丢帧了

dmesg |grep -iE "Skip Frame"

或者

logcat -b kernel |grep -iE "Skip Frame"

示例输出:

[ 1837.189967] CAM_INFO: CAM-CRM: __cam_req_mgr_find_dev_name: 227 Skip Frame: req: 395 not ready on link: 0x860108 for pd: 2 dev: cam-sensor open_req count: 2
[ 1840.487870] CAM_INFO: CAM-CRM: __cam_req_mgr_find_dev_name: 227 Skip Frame: req: 493 not ready on link: 0x860108 for pd: 2 dev: cam-sensor open_req count: 2
[ 1841.054185] CAM_INFO: CAM-CRM: __cam_req_mgr_find_dev_name: 227 Skip Frame: req: 509 not ready on link: 0x860108 for pd: 2 dev: cam-sensor open_req count: 2
[ 1845.151650] CAM_INFO: CAM-CRM: __cam_req_mgr_find_dev_name: 227 Skip Frame: req: 631 not ready on link: 0x860108 for pd: 2 dev: cam-sensor open_req count: 2
[ 1848.516084] CAM_INFO: CAM-CRM: __cam_req_mgr_find_dev_name: 227 Skip Frame: req: 731 not ready on link: 0x860108 for pd: 2 dev: cam-sensor open_req count: 1
[ 1850.181998] CAM_INFO: CAM-CRM: __cam_req_mgr_find_dev_name: 227 Skip Frame: req: 780 not ready on link: 0x860108 for pd: 2 dev: cam-sensor open_req count: 2
[ 1850.314912] CAM_INFO: CAM-CRM: __cam_req_mgr_find_dev_name: 227 Skip Frame: req: 783 not ready on link: 0x860108 for pd: 2 dev: cam-sensor open_req count: 2

上面的日志表示,sensor没有及时收到用户空间送Request下来而导致Kernel丢帧。

赞(2)
未经允许不得转载:极客笔记 » CamX 判断kernel是否有发生丢帧

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址