1e41f4b71Sopenharmony_ci# hwi 2e41f4b71Sopenharmony_ci 3e41f4b71Sopenharmony_ci 4e41f4b71Sopenharmony_ci## Command Function 5e41f4b71Sopenharmony_ci 6e41f4b71Sopenharmony_ciThis command is used to query information about interrupts. 7e41f4b71Sopenharmony_ci 8e41f4b71Sopenharmony_ci 9e41f4b71Sopenharmony_ci## Syntax 10e41f4b71Sopenharmony_ci 11e41f4b71Sopenharmony_cihwi 12e41f4b71Sopenharmony_ci 13e41f4b71Sopenharmony_ci 14e41f4b71Sopenharmony_ci## Parameters 15e41f4b71Sopenharmony_ci 16e41f4b71Sopenharmony_ciNone. 17e41f4b71Sopenharmony_ci 18e41f4b71Sopenharmony_ci 19e41f4b71Sopenharmony_ci## Usage Guidelines 20e41f4b71Sopenharmony_ci 21e41f4b71Sopenharmony_ci- Run **hwi** to display the interrupt IDs, count of interrupts, and registered interrupt names of the system. 22e41f4b71Sopenharmony_ci 23e41f4b71Sopenharmony_ci- If **LOSCFG_CPUP_INCLUDE_IRQ** is enabled, the interrupt handling time (ATime), CPU usage, and type of each interrupt are also displayed. 24e41f4b71Sopenharmony_ci 25e41f4b71Sopenharmony_ci 26e41f4b71Sopenharmony_ci## Example 27e41f4b71Sopenharmony_ci 28e41f4b71Sopenharmony_ciRun **hwi**. 29e41f4b71Sopenharmony_ci 30e41f4b71Sopenharmony_ci 31e41f4b71Sopenharmony_ci## Output 32e41f4b71Sopenharmony_ci 33e41f4b71Sopenharmony_ci- Interrupt information (**LOSCFG_CPUP_INCLUDE_IRQ** disabled): 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- Interrupt information (**LOSCFG_CPUP_INCLUDE_IRQ** enabled): 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**Table 1** Output description 110e41f4b71Sopenharmony_ci 111e41f4b71Sopenharmony_ci| Parameter| Description| 112e41f4b71Sopenharmony_ci| -------- | -------- | 113e41f4b71Sopenharmony_ci| InterruptNo | Interrupt number.| 114e41f4b71Sopenharmony_ci| Count | Number of interrupts.| 115e41f4b71Sopenharmony_ci| Name | Registered interrupt name.| 116e41f4b71Sopenharmony_ci| ATime | Interrupt handling time.| 117e41f4b71Sopenharmony_ci| CPUUSE | CPU usage.| 118e41f4b71Sopenharmony_ci| CPUUSE10s | CPU usage in the last 10s.| 119e41f4b71Sopenharmony_ci| CPUUSE1s | CPU usage in the last 1s.| 120e41f4b71Sopenharmony_ci| mode | Interrupt type, which can be any of the following:<br>- **normal**: non-shared interrupt.<br>- **shared**: shared interrupt.| 121