V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
feather12315
V2EX  ›  Linux

自己写的 blog 分享: Linux Kernel 代码中的异常检测与日志类 API

  •  
  •   feather12315 · Dec 5, 2020 · 1842 views
    This topic created in 1969 days ago, the information mentioned may be changed or developed.

    周末在家对 Linux Kernel 一些异常检测、日志输出相关的 API 进行了总(考)结(古),分享给有需要的人哈。印象中不允许直接黏贴所有内容,那我就抛出个背景给个链接了:-)

    Linux Kernel 的代码中存在一些异常检测、日志输出相关的 API,也存在用于 debug 字段的内核参数。聚焦:

    1. 编译时用于静态检查 API 的种类与作用
    2. 运行时日志输出类的 API 与相关的内核参数
    3. 运行时异常检测与处理 API

    其中 2 包含三部分:

    • 内核参数kernel.print与启动参数loglevel / quiet / debug
    • Dynamic Debug
    • 日志类 API 的主要种类

    Linux Kernel 代码中的异常检测与日志类 API

    1 replies    2020-12-07 10:00:10 +08:00
    tkl
        1
    tkl  
       Dec 7, 2020
    硬核 可以
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   6067 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 02:07 · PVG 10:07 · LAX 19:07 · JFK 22:07
    ♥ Do have faith in what you're doing.