1 Star 0 Fork 5K

黄承耿 / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
dfx-7.md 1.78 KB
一键复制 编辑 原始数据 按行查看 历史
NEEN 提交于 2021-03-12 17:59 . !197 Docs Update version 1.0.1

DFX

Design for X (DFX) refers to the software design that aims to improve the quality attributes in OpenHarmony. It mainly consists of two parts: design for reliability (DFR) and design for testability (DFT).

The DFX subsystem provides the following functions:

  • HiLog: Implements the logging function. It is applicable to Mini-System Devices (reference memory ≥ 128 KB), Small-System Devices (reference memory ≥ 1 MB), and Large-System Devices (reference memory ≥ 1 GB).

Basic Concepts

Logging

Logging means to record the log information generated during system running so you can understand the running process and status of the system or applications.

Distributed call chain tracing

In a distributed system, a service may traverse multiple software modules, with control commands and data transmitted over intra-process, inter-process, and inter-device communication interfaces. To help you understand such complex communication processes and locate service faults efficiently, the DFX subsystem provides a distributed call chain tracing framework.

Thread suspension detection

If a thread is trapped in an infinite loop or the kernel state (for example, Uninterruptable Sleep, Traced, Zombie, or synchronous wait) when it is running, the thread cannot respond to normal service requests and cannot detect and recover from faults by itself. To detect and locate this type of faults, the DFX subsystem provides a simple watchdog mechanism by inserting detection probes to the process nodes that are prone to suspension. This ensures that suspension faults can be detected and logs can be collected.

1
https://gitee.com/hcg-96/docs.git
git@gitee.com:hcg-96/docs.git
hcg-96
docs
docs
master

搜索帮助