1 Star 0 Fork 4.9K

丛林 / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
kernel-small-debug-shell-cmd-hwi.md 4.63 KB
一键复制 编辑 原始数据 按行查看 历史
duangavin123 提交于 2022-04-02 15:21 . 纯净版

hwi

命令功能

hwi命令查询当前中断信息

命令格式

hwi

参数说明

无。

使用指南

  • 输入hwi即显示当前中断号、中断次数及注册中断名称。

  • 若开关LOSCFG_CPUP_INCLUDE_IRQ打开,则还会显示各个中断的处理时间ATime、CPU占用率以及中断类型。

使用实例

举例:输入hwi

输出说明

  • 显示中断信息(LOSCFG_CPUP_INCLUDE_IRQ关闭)

    OHOS # hwi
     InterruptNo     Count     Name
            0:         0:
            1:   1025641:
            2:         0:
           29:    824049:
           37:         0:      rtc_alarm
           38:        24:      uart_pl011
           48:         3:      GPIO
           59:         0:
           62:       530:      MMC_IRQ
           63:        70:      MMC_IRQ
           64:       280:      ETH
           67:        58:      tde
           68:         0:      JPGE_0
           69:         0:      IVE
           70:         0:      VGS
           72:         0:      VEDU_0
           73:         0:      nnie0
           74:         0:      nnie_gdc0
           75:         0:      VPSS
           76:         0:      VI_PROC0
           77:         0:      JPEGD_0
           83:     49455:      HIFB_SOFT_INT
           87:         0:      AIO interrupt
           88:         0:      VI_CAP0
           89:         0:      MIPI_RX
           90:     49455:      VO int
           91:     49456:      HIFB Int
           96:     17601:      MMC_IRQ
          100:         0:      SPI_HI35XX
          101:         0:      SPI_HI35XX
          102:         0:      SPI_HI35XX
  • 显示中断信息(LOSCFG_CPUP_INCLUDE_IRQ打开)

    OHOS # hwi
     InterruptNo      Count  ATime(us)   CPUUSE  CPUUSE10s  CPUUSE1s   Mode Name
              0:          0          0     0.0        0.0       0.0  normal
              1:     937031          0     0.1        0.1       0.1  normal
              2:          0          0     0.0        0.0       0.0  normal
             29:     726166          5     0.54       0.57      0.59 normal
             37:          0          0     0.0        0.0       0.0  normal rtc_alarm
             38:         17          5     0.0        0.0       0.0  normal uart_pl011
             48:          3          4     0.0        0.0       0.0  normal GPIO
             59:          0          0     0.0        0.0       0.0  normal
             62:        531          1     0.0        0.0       0.0  normal MMC_IRQ
             63:         69          1     0.0        0.0       0.0  normal MMC_IRQ
             64:        292          2     0.0        0.0       0.0  normal ETH
             67:         54         76     0.0        0.0       0.0  shared tde
             68:          0          0     0.0        0.0       0.0  shared JPGE_0
             69:          0          0     0.0        0.0       0.0  shared IVE
             70:          0          0     0.0        0.0       0.0  shared VGS
             72:          0          0     0.0        0.0       0.0  shared VEDU_0
             73:          0          0     0.0        0.0       0.0  shared nnie0
             74:          0          0     0.0        0.0       0.0  shared nnie_gdc0
             75:          0          0     0.0        0.0       0.0  shared VPSS
             76:          0          0     0.0        0.0       0.0  shared VI_PROC0
             77:          0          0     0.0        0.0       0.0  shared JPEGD_0
             83:      45529          8     0.5        0.5       0.5  shared HIFB_SOFT_INT
             87:          0          0     0.0        0.0       0.0  shared AIO interrupt
             88:          0          0     0.0        0.0       0.0  shared VI_CAP0
             89:          0          0     0.0        0.0       0.0  shared MIPI_RX
             90:      45534         11     0.6        0.7       0.7  shared VO int
             91:      45533          2     0.1        0.1       0.1  shared HIFB Int
             96:      17383          2     0.0        0.0       0.0  normal MMC_IRQ
            100:          0          0     0.0        0.0       0.0  normal SPI_HI35XX
            101:          0          0     0.0        0.0       0.0  normal SPI_HI35XX
            102:          0          0     0.0        0.0       0.0  normal SPI_HI35XX

    表1 输出说明

    输出 说明
    InterruptNo 中断号。
    Count 中断次数。
    Name 注册中断名称。
    ATime 中断的处理时间。
    CPUUSE CPU占用率。
    CPUUSE10s 最近10s CPU占用率。
    CPUUSE1s 最近1s CPU占用率。
    mode 中断类型:
    - normal:  非共享中断。
    - shared:  共享中断。
1
https://gitee.com/jungle8023/docs.git
git@gitee.com:jungle8023/docs.git
jungle8023
docs
docs
master

搜索帮助