1# hwi 2 3## Command Function<a name="section445335110416"></a> 4 5This command is used to query information about interrupts. 6 7## Syntax<a name="section1795712553416"></a> 8 9hwi 10 11## Parameters<a name="section92544592410"></a> 12 13None 14 15## Usage<a name="section104151141252"></a> 16 17- Run **hwi** to display the interrupt IDs, count of interrupts, and registered interrupt names of the system. 18- If **LOSCFG\_CPUP\_INCLUDE\_IRQ** is enabled, the interrupt handling time \(ATime\), CPU usage, and type of each interrupt are also displayed. 19 20## Example<a name="section11545171957"></a> 21 22Run **hwi**. 23 24## Output<a name="section075617368542"></a> 25 26- Interrupt information \(**LOSCFG\_CPUP\_INCLUDE\_IRQ** disabled\): 27 28 ``` 29 OHOS # hwi 30 InterruptNo Count Name 31 0: 0: 32 1: 1025641: 33 2: 0: 34 29: 824049: 35 37: 0: rtc_alarm 36 38: 24: uart_pl011 37 48: 3: GPIO 38 59: 0: 39 62: 530: MMC_IRQ 40 63: 70: MMC_IRQ 41 64: 280: ETH 42 67: 58: tde 43 68: 0: JPGE_0 44 69: 0: IVE 45 70: 0: VGS 46 72: 0: VEDU_0 47 73: 0: nnie0 48 74: 0: nnie_gdc0 49 75: 0: VPSS 50 76: 0: VI_PROC0 51 77: 0: JPEGD_0 52 83: 49455: HIFB_SOFT_INT 53 87: 0: AIO interrupt 54 88: 0: VI_CAP0 55 89: 0: MIPI_RX 56 90: 49455: VO int 57 91: 49456: HIFB Int 58 96: 17601: MMC_IRQ 59 100: 0: SPI_HI35XX 60 101: 0: SPI_HI35XX 61 102: 0: SPI_HI35XX 62 ``` 63 64- Interrupt information \(**LOSCFG\_CPUP\_INCLUDE\_IRQ** enabled\): 65 66 ``` 67 OHOS # hwi 68 InterruptNo Count ATime(us) CPUUSE CPUUSE10s CPUUSE1s Mode Name 69 0: 0 0 0.0 0.0 0.0 normal 70 1: 937031 0 0.1 0.1 0.1 normal 71 2: 0 0 0.0 0.0 0.0 normal 72 29: 726166 5 0.54 0.57 0.59 normal 73 37: 0 0 0.0 0.0 0.0 normal rtc_alarm 74 38: 17 5 0.0 0.0 0.0 normal uart_pl011 75 48: 3 4 0.0 0.0 0.0 normal GPIO 76 59: 0 0 0.0 0.0 0.0 normal 77 62: 531 1 0.0 0.0 0.0 normal MMC_IRQ 78 63: 69 1 0.0 0.0 0.0 normal MMC_IRQ 79 64: 292 2 0.0 0.0 0.0 normal ETH 80 67: 54 76 0.0 0.0 0.0 shared tde 81 68: 0 0 0.0 0.0 0.0 shared JPGE_0 82 69: 0 0 0.0 0.0 0.0 shared IVE 83 70: 0 0 0.0 0.0 0.0 shared VGS 84 72: 0 0 0.0 0.0 0.0 shared VEDU_0 85 73: 0 0 0.0 0.0 0.0 shared nnie0 86 74: 0 0 0.0 0.0 0.0 shared nnie_gdc0 87 75: 0 0 0.0 0.0 0.0 shared VPSS 88 76: 0 0 0.0 0.0 0.0 shared VI_PROC0 89 77: 0 0 0.0 0.0 0.0 shared JPEGD_0 90 83: 45529 8 0.5 0.5 0.5 shared HIFB_SOFT_INT 91 87: 0 0 0.0 0.0 0.0 shared AIO interrupt 92 88: 0 0 0.0 0.0 0.0 shared VI_CAP0 93 89: 0 0 0.0 0.0 0.0 shared MIPI_RX 94 90: 45534 11 0.6 0.7 0.7 shared VO int 95 91: 45533 2 0.1 0.1 0.1 shared HIFB Int 96 96: 17383 2 0.0 0.0 0.0 normal MMC_IRQ 97 100: 0 0 0.0 0.0 0.0 normal SPI_HI35XX 98 101: 0 0 0.0 0.0 0.0 normal SPI_HI35XX 99 102: 0 0 0.0 0.0 0.0 normal SPI_HI35XX 100 ``` 101 102 **Table 1** Output 103 104 <a name="table809mcpsimp"></a> 105 <table><thead align="left"><tr id="row814mcpsimp"><th class="cellrowborder" valign="top" width="50%" id="mcps1.2.3.1.1"><p id="p816mcpsimp"><a name="p816mcpsimp"></a><a name="p816mcpsimp"></a>Parameter</p> 106 </th> 107 <th class="cellrowborder" valign="top" width="50%" id="mcps1.2.3.1.2"><p id="p818mcpsimp"><a name="p818mcpsimp"></a><a name="p818mcpsimp"></a>Description</p> 108 </th> 109 </tr> 110 </thead> 111 <tbody><tr id="row20360171311398"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.2.3.1.1 "><p id="p172391401402"><a name="p172391401402"></a><a name="p172391401402"></a>InterruptNo</p> 112 </td> 113 <td class="cellrowborder" valign="top" width="50%" headers="mcps1.2.3.1.2 "><p id="p42381940174013"><a name="p42381940174013"></a><a name="p42381940174013"></a>Interrupt ID</p> 114 </td> 115 </tr> 116 <tr id="row262535153913"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.2.3.1.1 "><p id="p1823824014402"><a name="p1823824014402"></a><a name="p1823824014402"></a>Count</p> 117 </td> 118 <td class="cellrowborder" valign="top" width="50%" headers="mcps1.2.3.1.2 "><p id="p14237040144018"><a name="p14237040144018"></a><a name="p14237040144018"></a>Number of interrupts</p> 119 </td> 120 </tr> 121 <tr id="row9683953153916"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.2.3.1.1 "><p id="p6236124084018"><a name="p6236124084018"></a><a name="p6236124084018"></a>Name</p> 122 </td> 123 <td class="cellrowborder" valign="top" width="50%" headers="mcps1.2.3.1.2 "><p id="p18235164014401"><a name="p18235164014401"></a><a name="p18235164014401"></a>Registered interrupt name</p> 124 </td> 125 </tr> 126 <tr id="row85721136402"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.2.3.1.1 "><p id="p1123434017409"><a name="p1123434017409"></a><a name="p1123434017409"></a>ATime</p> 127 </td> 128 <td class="cellrowborder" valign="top" width="50%" headers="mcps1.2.3.1.2 "><p id="p2023424094014"><a name="p2023424094014"></a><a name="p2023424094014"></a>Interrupt handling time</p> 129 </td> 130 </tr> 131 <tr id="row19180126151415"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.2.3.1.1 "><p id="p6233040164020"><a name="p6233040164020"></a><a name="p6233040164020"></a>CPUUSE</p> 132 </td> 133 <td class="cellrowborder" valign="top" width="50%" headers="mcps1.2.3.1.2 "><p id="p5232840104015"><a name="p5232840104015"></a><a name="p5232840104015"></a>CPU usage</p> 134 </td> 135 </tr> 136 <tr id="row511517331702"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.2.3.1.1 "><p id="p14231040164014"><a name="p14231040164014"></a><a name="p14231040164014"></a>CPUUSE10s</p> 137 </td> 138 <td class="cellrowborder" valign="top" width="50%" headers="mcps1.2.3.1.2 "><p id="p1323011409405"><a name="p1323011409405"></a><a name="p1323011409405"></a>CPU usage within the last 10 seconds</p> 139 </td> 140 </tr> 141 <tr id="row1868124415413"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.2.3.1.1 "><p id="p9681144414114"><a name="p9681144414114"></a><a name="p9681144414114"></a>CPUUSE1s</p> 142 </td> 143 <td class="cellrowborder" valign="top" width="50%" headers="mcps1.2.3.1.2 "><p id="p76814443417"><a name="p76814443417"></a><a name="p76814443417"></a>CPU usage within the last 1 second</p> 144 </td> 145 </tr> 146 <tr id="row7681164454112"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.2.3.1.1 "><p id="p1968124412411"><a name="p1968124412411"></a><a name="p1968124412411"></a>mode</p> 147 </td> 148 <td class="cellrowborder" valign="top" width="50%" headers="mcps1.2.3.1.2 "><p id="p268134415419"><a name="p268134415419"></a><a name="p268134415419"></a>Interrupt type, which can be any of the following:</p> 149 <a name="ul682912412419"></a><a name="ul682912412419"></a><ul id="ul682912412419"><li><strong id="b35357873733839"><a name="b35357873733839"></a><a name="b35357873733839"></a>normal</strong>: non-shared interrupt.</li><li><strong id="b209107492433839"><a name="b209107492433839"></a><a name="b209107492433839"></a>shared</strong>: shared interrupt.</li></ul> 150 </td> 151 </tr> 152 </tbody> 153 </table> 154 155 156