diff --git a/en/device-dev/subsystems/subsys-dfx-hisysevent-tool.md b/en/device-dev/subsystems/subsys-dfx-hisysevent-tool.md index 0d49c091c88a1d711bd34990a86ce15b3d9e0c2b..af83b877ff99c161c69fcc8c6bf3d9221d885ee5 100644 --- a/en/device-dev/subsystems/subsys-dfx-hisysevent-tool.md +++ b/en/device-dev/subsystems/subsys-dfx-hisysevent-tool.md @@ -1,38 +1,102 @@ # HiSysEvent Tool Usage +- [Overview](#section1886702718521) +- [Subscribing to Real-Time System Events](#section1210623418527) +- [Querying Historical System Events](#section1210623418539) + ## Overview -The HiSysEvent tool is a command line tool preconfigured in the system. You can specify search criteria to query system events that meet your requirement. Using this tool, you can debug event logging during development or query system events for fault locating. +The HiSysEvent tool is a command line tool preconfigured in the **/system/bin** directory of the system. You can use this tool to subscribe to real-time system events or query historical system vents. + +## Subscribing to Real-Time System Events + +- Command for subscribing to real-time system events: + + ``` + hisysevent -r + ``` -## Usage + Description of command options: -1. Run the HiSysEvent tool. + | Option| Description| + | -------- | --------- | + | -r  | Subscribes to real-time system events based on the default settings. When this option is specified, any real-time system event will be printed on the console.| - The tool is preconfigured in the **/system/bin** directory. You can run the following command in any directory: +- Command for enabling the debugging mode: ``` - hisysevent [-r | -l [-s