From 709b09ff43102e18fbaf5a850e4d62d7d43d6704 Mon Sep 17 00:00:00 2001 From: shawn_he Date: Mon, 21 Feb 2022 18:04:28 +0800 Subject: [PATCH] update docs Signed-off-by: shawn_he --- .../subsystems/subsys-dfx-hisysevent-tool.md | 94 ++++++++++++++++--- .../subsystems/subsys-dfx-hisysevent.md | 4 +- 2 files changed, 82 insertions(+), 16 deletions(-) diff --git a/en/device-dev/subsystems/subsys-dfx-hisysevent-tool.md b/en/device-dev/subsystems/subsys-dfx-hisysevent-tool.md index 0d49c091c88..af83b877ff9 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