1 Star 0 Fork 4.9K

fish / docs

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

hwi

Command Function

This command is used to query information about the current interrupts.

Syntax

hwi

Parameter Description

None

Usage

  • Enter hwi to display the current interrupt ID, count of interrupts, and registered interrupt name.
  • If LOSCFG_CPUP_INCLUDE_IRQ is enabled, the processing time (cycles), CPU usage, and interrupt type of each interrupt are displayed.

Example

Enter hwi.

Output

  1. Interrupt information (with LOSCFG_CPUP_INCLUDE_IRQ disabled)

  2. Interrupt information (with LOSCFG_CPUP_INCLUDE_IRQ enabled)

    Table 1 Output description

    Parameter

    Description

    InterruptNo

    Indicates the interrupt ID.

    Count

    Indicates the count of interrupts.

    Name

    Indicates the registered interrupt name.

    CYCLECOST

    Indicates the interrupt processing time (cycles).

    CPUUSE

    Indicates the CPU usage.

    CPUUSE10s

    Indicates CPU usage within the last 10 seconds.

    CPUUSE1s

    Indicates CPU usage within the last 1 second.

    mode

    Indicates the interrupt mode.

    • normal: non-shared interrupt.
    • shared: shared interrupt.
1
https://gitee.com/fish_neil/docs.git
git@gitee.com:fish_neil/docs.git
fish_neil
docs
docs
master

搜索帮助