加入收藏
举报
02-14 20:03
#0
文件名称:
hwi.md
所在目录:
Openharmony v1.0 / docs / docs-en / kernel
文件大小:
5.17 KB
下载地址:
fenwii/OpenHarmony
   
免责声明:本网站仅提供指向 GitHub 上的文件的链接,所有文件的版权归原作者所有,本网站不对文件内容的合法性、准确性或安全性承担任何责任。
文本预览:
# hwi
## Command Function
This command is used to query information about the current interrupts.
## Syntax
hwi
## Parameter Description
None
## Usage
- Enter **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
1. Interrupt information \(with **LOSCFG\_CPUP\_INCLUDE\_IRQ** disabled\)
![](figures/en-us_image_0000001053826366.png)
2. Interrupt information \(with **LOSCFG\_CPUP\_INCLUDE\_IRQ** enabled\)
![](figures/en-us_image_0000001052810304.png)
**Table 1** Output description






























Parameter


Description


InterruptNo


Indicates the interrupt ID.


Count


Indicates the count of interrupts.


Name


Indicates the registered interrupt name.


CYCLECOST


Indicates the interrupt processing time (cycles).


CPUUSE


Indicates the CPU usage.


CPUUSE10s


Indicates CPU usage within the last 10 seconds.


CPUUSE1s


Indicates CPU usage within the last 1 second.


mode


Indicates the interrupt mode.


  • normal: non-shared interrupt.
  • shared: shared interrupt.

点赞 回复
回帖
支持markdown部分语法 ?