zoukankan      html  css  js  c++  java
  • Android Kernel集锦

    1.Storage

    1.1 如何添加守护进程(daemon process)

    :在init.rc添加相关服务进程,

    example,

    ## Daemon processes to be run by init.
    ##
    service ueventd /system/bin/ueventd
        class core
        critical
        seclabel u:r:ueventd:s0
        shutdown critical

    service flash_recovery /system/bin/install-recovery.sh
        class main
        oneshot

    service console /system/bin/sh
        class core
        console
        disabled
        user shell
        group shell log readproc
        seclabel u:r:shell:s0
        setenv HOSTNAME console

    service kmsg_log /system/bin/kmsg.sh
        class late_start

    service syslog /system/bin/logcat -f /data/log/system.log -r 10240 -v time
         user root
         group system
         oneshot

    2.Performance

    3.Stability

    4.common

    4.1 Android kernel 函数调用堆栈打印:

    举例:

    #include <linux/stacktrace.h>

    ...

    if(off == POWER_SUPPLY_PROP_CHARGE_FULL_DESIGN)
    {
            dev_dbg(dev, "store power supply property dumpstrace begin! ");
            dump_stack();
            dev_dbg(dev, "store power supply property dumpstrace end! ");
    }
    ...
  • 相关阅读:
    docker 学习
    grpc 学习
    ubuntu 完全干净的卸载docker
    numpy学习
    2020年假期sql excel文件 获取
    (a2b_hex)binascii.Error: Non-hexadecimal digit found
    数据库索引学习
    网络基础之网络协议
    Day11 进程相关
    基于socket套接字的网络通讯
  • 原文地址:https://www.cnblogs.com/rainey-forrest/p/11202647.html
Copyright © 2011-2022 走看看