1e41f4b71Sopenharmony_ci# hwi
2e41f4b71Sopenharmony_ci
3e41f4b71Sopenharmony_ci
4e41f4b71Sopenharmony_ci## 命令功能
5e41f4b71Sopenharmony_ci
6e41f4b71Sopenharmony_cihwi命令查询当前中断信息
7e41f4b71Sopenharmony_ci
8e41f4b71Sopenharmony_ci
9e41f4b71Sopenharmony_ci## 命令格式
10e41f4b71Sopenharmony_ci
11e41f4b71Sopenharmony_cihwi
12e41f4b71Sopenharmony_ci
13e41f4b71Sopenharmony_ci
14e41f4b71Sopenharmony_ci## 参数说明
15e41f4b71Sopenharmony_ci
16e41f4b71Sopenharmony_ci17e41f4b71Sopenharmony_ci
18e41f4b71Sopenharmony_ci
19e41f4b71Sopenharmony_ci## 使用指南
20e41f4b71Sopenharmony_ci
21e41f4b71Sopenharmony_ci- 输入hwi即显示当前中断号、中断次数及注册中断名称。
22e41f4b71Sopenharmony_ci
23e41f4b71Sopenharmony_ci- 若开关LOSCFG_CPUP_INCLUDE_IRQ打开,则还会显示各个中断的处理时间ATime、CPU占用率以及中断类型。
24e41f4b71Sopenharmony_ci
25e41f4b71Sopenharmony_ci
26e41f4b71Sopenharmony_ci## 使用实例
27e41f4b71Sopenharmony_ci
28e41f4b71Sopenharmony_ci举例:输入hwi
29e41f4b71Sopenharmony_ci
30e41f4b71Sopenharmony_ci
31e41f4b71Sopenharmony_ci## 输出说明
32e41f4b71Sopenharmony_ci
33e41f4b71Sopenharmony_ci- 显示中断信息(LOSCFG_CPUP_INCLUDE_IRQ关闭)
34e41f4b71Sopenharmony_ci    
35e41f4b71Sopenharmony_ci  ```
36e41f4b71Sopenharmony_ci  OHOS # hwi
37e41f4b71Sopenharmony_ci   InterruptNo     Count     Name
38e41f4b71Sopenharmony_ci          0:         0:
39e41f4b71Sopenharmony_ci          1:   1025641:
40e41f4b71Sopenharmony_ci          2:         0:
41e41f4b71Sopenharmony_ci         29:    824049:
42e41f4b71Sopenharmony_ci         37:         0:      rtc_alarm
43e41f4b71Sopenharmony_ci         38:        24:      uart_pl011
44e41f4b71Sopenharmony_ci         48:         3:      GPIO
45e41f4b71Sopenharmony_ci         59:         0:
46e41f4b71Sopenharmony_ci         62:       530:      MMC_IRQ
47e41f4b71Sopenharmony_ci         63:        70:      MMC_IRQ
48e41f4b71Sopenharmony_ci         64:       280:      ETH
49e41f4b71Sopenharmony_ci         67:        58:      tde
50e41f4b71Sopenharmony_ci         68:         0:      JPGE_0
51e41f4b71Sopenharmony_ci         69:         0:      IVE
52e41f4b71Sopenharmony_ci         70:         0:      VGS
53e41f4b71Sopenharmony_ci         72:         0:      VEDU_0
54e41f4b71Sopenharmony_ci         73:         0:      nnie0
55e41f4b71Sopenharmony_ci         74:         0:      nnie_gdc0
56e41f4b71Sopenharmony_ci         75:         0:      VPSS
57e41f4b71Sopenharmony_ci         76:         0:      VI_PROC0
58e41f4b71Sopenharmony_ci         77:         0:      JPEGD_0
59e41f4b71Sopenharmony_ci         83:     49455:      HIFB_SOFT_INT
60e41f4b71Sopenharmony_ci         87:         0:      AIO interrupt
61e41f4b71Sopenharmony_ci         88:         0:      VI_CAP0
62e41f4b71Sopenharmony_ci         89:         0:      MIPI_RX
63e41f4b71Sopenharmony_ci         90:     49455:      VO int
64e41f4b71Sopenharmony_ci         91:     49456:      HIFB Int
65e41f4b71Sopenharmony_ci         96:     17601:      MMC_IRQ
66e41f4b71Sopenharmony_ci        100:         0:      SPI_HI35XX
67e41f4b71Sopenharmony_ci        101:         0:      SPI_HI35XX
68e41f4b71Sopenharmony_ci        102:         0:      SPI_HI35XX
69e41f4b71Sopenharmony_ci  ```
70e41f4b71Sopenharmony_ci
71e41f4b71Sopenharmony_ci- 显示中断信息(LOSCFG_CPUP_INCLUDE_IRQ打开)
72e41f4b71Sopenharmony_ci    
73e41f4b71Sopenharmony_ci  ```
74e41f4b71Sopenharmony_ci  OHOS # hwi
75e41f4b71Sopenharmony_ci   InterruptNo      Count  ATime(us)   CPUUSE  CPUUSE10s  CPUUSE1s   Mode Name
76e41f4b71Sopenharmony_ci            0:          0          0     0.0        0.0       0.0  normal
77e41f4b71Sopenharmony_ci            1:     937031          0     0.1        0.1       0.1  normal
78e41f4b71Sopenharmony_ci            2:          0          0     0.0        0.0       0.0  normal
79e41f4b71Sopenharmony_ci           29:     726166          5     0.54       0.57      0.59 normal
80e41f4b71Sopenharmony_ci           37:          0          0     0.0        0.0       0.0  normal rtc_alarm
81e41f4b71Sopenharmony_ci           38:         17          5     0.0        0.0       0.0  normal uart_pl011
82e41f4b71Sopenharmony_ci           48:          3          4     0.0        0.0       0.0  normal GPIO
83e41f4b71Sopenharmony_ci           59:          0          0     0.0        0.0       0.0  normal
84e41f4b71Sopenharmony_ci           62:        531          1     0.0        0.0       0.0  normal MMC_IRQ
85e41f4b71Sopenharmony_ci           63:         69          1     0.0        0.0       0.0  normal MMC_IRQ
86e41f4b71Sopenharmony_ci           64:        292          2     0.0        0.0       0.0  normal ETH
87e41f4b71Sopenharmony_ci           67:         54         76     0.0        0.0       0.0  shared tde
88e41f4b71Sopenharmony_ci           68:          0          0     0.0        0.0       0.0  shared JPGE_0
89e41f4b71Sopenharmony_ci           69:          0          0     0.0        0.0       0.0  shared IVE
90e41f4b71Sopenharmony_ci           70:          0          0     0.0        0.0       0.0  shared VGS
91e41f4b71Sopenharmony_ci           72:          0          0     0.0        0.0       0.0  shared VEDU_0
92e41f4b71Sopenharmony_ci           73:          0          0     0.0        0.0       0.0  shared nnie0
93e41f4b71Sopenharmony_ci           74:          0          0     0.0        0.0       0.0  shared nnie_gdc0
94e41f4b71Sopenharmony_ci           75:          0          0     0.0        0.0       0.0  shared VPSS
95e41f4b71Sopenharmony_ci           76:          0          0     0.0        0.0       0.0  shared VI_PROC0
96e41f4b71Sopenharmony_ci           77:          0          0     0.0        0.0       0.0  shared JPEGD_0
97e41f4b71Sopenharmony_ci           83:      45529          8     0.5        0.5       0.5  shared HIFB_SOFT_INT
98e41f4b71Sopenharmony_ci           87:          0          0     0.0        0.0       0.0  shared AIO interrupt
99e41f4b71Sopenharmony_ci           88:          0          0     0.0        0.0       0.0  shared VI_CAP0
100e41f4b71Sopenharmony_ci           89:          0          0     0.0        0.0       0.0  shared MIPI_RX
101e41f4b71Sopenharmony_ci           90:      45534         11     0.6        0.7       0.7  shared VO int
102e41f4b71Sopenharmony_ci           91:      45533          2     0.1        0.1       0.1  shared HIFB Int
103e41f4b71Sopenharmony_ci           96:      17383          2     0.0        0.0       0.0  normal MMC_IRQ
104e41f4b71Sopenharmony_ci          100:          0          0     0.0        0.0       0.0  normal SPI_HI35XX
105e41f4b71Sopenharmony_ci          101:          0          0     0.0        0.0       0.0  normal SPI_HI35XX
106e41f4b71Sopenharmony_ci          102:          0          0     0.0        0.0       0.0  normal SPI_HI35XX
107e41f4b71Sopenharmony_ci  ```
108e41f4b71Sopenharmony_ci
109e41f4b71Sopenharmony_ci**表1** 输出说明
110e41f4b71Sopenharmony_ci  
111e41f4b71Sopenharmony_ci  | 输出 | 说明 | 
112e41f4b71Sopenharmony_ci  | -------- | -------- |
113e41f4b71Sopenharmony_ci  | InterruptNo | 中断号。 | 
114e41f4b71Sopenharmony_ci  | Count | 中断次数。 | 
115e41f4b71Sopenharmony_ci  | Name | 注册中断名称。 | 
116e41f4b71Sopenharmony_ci  | ATime | 中断的处理时间。 | 
117e41f4b71Sopenharmony_ci  | CPUUSE | CPU占用率。 | 
118e41f4b71Sopenharmony_ci  | CPUUSE10s | 最近10s CPU占用率。 | 
119e41f4b71Sopenharmony_ci  | CPUUSE1s | 最近1s CPU占用率。 | 
120e41f4b71Sopenharmony_ci  | mode | 中断类型:<br/>-&nbsp;normal:&nbsp;&nbsp;非共享中断。<br/>-&nbsp;shared:&nbsp;&nbsp;共享中断。 | 
121