hwi
Command Function
This command is used to query information about the interrupts.
Syntax
hwi
Parameters
None
Usage
- Run 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
-
Interrupt information (LOSCFG_CPUP_INCLUDE_IRQ disabled)
![](figure/en-us_image_0000001179967527.png)
-
Interrupt information (LOSCFG_CPUP_INCLUDE_IRQ enabled)
![](figure/en-us_image_0000001133848164.png)
Table 1 Output
Output
|
Description
|
InterruptNo
|
Interrupt ID
|
Count
|
Count of interrupts
|
Name
|
Registered interrupt name
|
CYCLECOST
|
Interrupt processing time (in cycles)
|
CPUUSE
|
CPU usage
|
CPUUSE10s
|
CPU usage within the last 10 seconds
|
CPUUSE1s
|
CPU usage within the last 1 second
|
mode
|
Interrupt mode, which can be any of the following:
- normal: non-shared interrupt.
- shared: shared interrupt.
|