看书上说是 -b <buffer>;请求不同的环形缓冲区
main
radio
events还请详细解释下,多谢;

解决方案 »

  1.   

    从我打出的log来看,main是默认的选项,应该跟直接adb logcat 效果一样
    radio打出来的log和音频信息相关
    而events打出来的log和android中keyevent,motionevent等响应事情有关
      

  2.   

    这里有个-b 和 -d 的区别:
    adb logcat -v time -b radio   // 打印缓冲区内的radio 日志,是时时更新的,只要串口没断adb logcat -v time -d radio  // 打印从开机到此时的缓冲区内的radio 日志
      

  3.   

    struct logger_log {
        unsigned char       *buffer;/* the ring buffer itself */
        struct miscdevice   misc;   /* misc device representing the log */
        wait_queue_head_t   wq; /* wait queue for readers */
        struct list_head    readers; /* this log's readers */
        struct mutex        mutex;  /* mutex protecting buffer */
        size_t          w_off;  /* current write head offset */
        size_t          head;   /* new readers start here */
        size_t          size;   /* size of the log */
    };
    这是android内核中logger总最基本的结构,链表且首尾相连,系统中有4个这样的环形结构分别是main,events,radio,system。
      

  4.   

    events 响应事件也是指手机上的按钮事件么?