Skip to content

Commit fa7eb1f

Browse files
lauxinwdbkinder
authored andcommitted
tools:acrn-crashlog: Document of configuration file
This document explains all fields in acrnprobe.xml. User could use it to control acrnprobe's behavior and configure their own events. Tracked-On: #1024 Signed-off-by: Liu, Xinwu <xinwu.liu@intel.com> Reviewed-by: David B. Kinder <david.b.kinder@intel.com> Acked-by: Chen Gang <gang.c.chen@intel.com> Acked-by: Geoffroy Van Cutsem <geoffroy.vancutsem@intel.com>
1 parent 12c1687 commit fa7eb1f

File tree

2 files changed

+437
-6
lines changed

2 files changed

+437
-6
lines changed

tools/acrn-crashlog/acrnprobe/README.rst

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ To see the version of ``acrnprobe``.
3939
Architecture
4040
************
4141

42-
Syntax
43-
======
42+
Terms
43+
=====
4444

4545
- channel :
4646
Channel represents a way of detecting the system's events. There are 3
@@ -50,6 +50,19 @@ Syntax
5050
+ polling: run a detecting job with fixed time interval.
5151
+ inotify: monitor the change of file or dir.
5252

53+
- trigger :
54+
Essentially, trigger represents one section of content. It could be
55+
a file's content, a directory's content, or a memory's content which can be
56+
obtained. By monitoring it ``acrnprobe`` could detect certain events which
57+
happened in the system.
58+
59+
- crash :
60+
A subtype of event. It often corresponds to a crash of programs, system, or
61+
hypervisor. ``acrnprobe`` detects it and reports it as ``CRASH``.
62+
63+
- info :
64+
A subtype of event. ``acrnprobe`` detects it and reports it as ``INFO``.
65+
5366
- event queue :
5467
There is a global queue to receive all events detected.
5568
Generally, events are enqueued in channel, and dequeued in event handler.
@@ -136,15 +149,15 @@ Source files
136149
- main.c
137150
Entry of ``acrnprobe``.
138151
- channel.c
139-
The implementation of *channel* (see `Syntax`_).
152+
The implementation of *channel* (see `Terms`_).
140153
- crash_reclassify.c
141154
Analyzing the detailed types for crash event.
142155
- probeutils.c
143156
Provide some utils ``acrnprobe`` needs.
144157
- event_queue.c
145-
The implementation of *event queue* (see `Syntax`_).
158+
The implementation of *event queue* (see `Terms`_).
146159
- event_handler.c
147-
The implementation of *event handler* (see `Syntax`_).
160+
The implementation of *event handler* (see `Terms`_).
148161
- history.c
149162
There is a history_event file to manage all logs that ``acrnprobe`` archived.
150163
"history.c" provides the interfaces to modify the file in fixed format.
@@ -154,7 +167,7 @@ Source files
154167
The ``acrnprobe`` needs to know some HW/SW properties, such as board version,
155168
build version. These properties are managed centrally in this file.
156169
- sender.c
157-
The implementation of *sender* (see `Syntax`_).
170+
The implementation of *sender* (see `Terms`_).
158171
- startupreason.c
159172
This file provides the function to get system reboot reason from kernel
160173
command line.
@@ -175,4 +188,6 @@ Configuration files
175188

176189
Custom configuration file that ``acrnprobe`` reads.
177190

191+
For details about configuration file, please refer to :ref:`acrnprobe-conf`.
192+
178193
.. _`telemetrics-client`: https://github.com/clearlinux/telemetrics-client

0 commit comments

Comments
 (0)