mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-08-13 13:56:19 +00:00
Updated per feedback
Signed-off-by: Amy Reyes <amy.reyes@intel.com>
This commit is contained in:
parent
8fe695c8b3
commit
f38a50a874
@ -39,16 +39,16 @@ To build the ``ACRN-Crashlog``, run:
|
|||||||
|
|
||||||
.. code-block:: none
|
.. code-block:: none
|
||||||
|
|
||||||
$ cd acrn-crashlog
|
cd misc/debug_tools/acrn_crashlog
|
||||||
$ make
|
make
|
||||||
|
|
||||||
To remove all generated files and return the folder to its clean state,
|
To remove all generated files and return the folder to its clean state,
|
||||||
use:
|
use:
|
||||||
|
|
||||||
.. code-block:: none
|
.. code-block:: none
|
||||||
|
|
||||||
$ cd acrn-crashlog
|
cd misc/debug_tools/acrn_crashlog
|
||||||
$ make clean
|
make clean
|
||||||
|
|
||||||
Installing
|
Installing
|
||||||
**********
|
**********
|
||||||
@ -57,8 +57,8 @@ To install the build:
|
|||||||
|
|
||||||
.. code-block:: none
|
.. code-block:: none
|
||||||
|
|
||||||
$ cd acrn-crashlog
|
cd misc/debug_tools/acrn_crashlog
|
||||||
$ sudo make install
|
sudo make install
|
||||||
|
|
||||||
Enabling/Disabling
|
Enabling/Disabling
|
||||||
******************
|
******************
|
||||||
@ -67,7 +67,7 @@ To enable this tool:
|
|||||||
|
|
||||||
.. code-block:: none
|
.. code-block:: none
|
||||||
|
|
||||||
$ sudo crashlogctl enable
|
sudo crashlogctl enable
|
||||||
|
|
||||||
Then it will show:
|
Then it will show:
|
||||||
|
|
||||||
@ -86,13 +86,13 @@ Follow the hints to reboot the system:
|
|||||||
|
|
||||||
.. code-block:: none
|
.. code-block:: none
|
||||||
|
|
||||||
$ sudo reboot
|
sudo reboot
|
||||||
|
|
||||||
To disable this tool:
|
To disable this tool:
|
||||||
|
|
||||||
.. code-block:: none
|
.. code-block:: none
|
||||||
|
|
||||||
$ sudo crashlogctl disable
|
sudo crashlogctl disable
|
||||||
|
|
||||||
Then it will show:
|
Then it will show:
|
||||||
|
|
||||||
@ -108,15 +108,15 @@ Follow the hints to reboot the system:
|
|||||||
|
|
||||||
.. code-block:: none
|
.. code-block:: none
|
||||||
|
|
||||||
$ sudo reboot
|
sudo reboot
|
||||||
|
|
||||||
To check the status of this tool:
|
To check the status of this tool:
|
||||||
|
|
||||||
.. code-block:: none
|
.. code-block:: none
|
||||||
|
|
||||||
$ sudo crashlogctl is-active
|
sudo crashlogctl is-active
|
||||||
|
|
||||||
It will show the status of the related services like:
|
It will show the status of the related services. Example:
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
@ -135,7 +135,7 @@ process information:
|
|||||||
|
|
||||||
.. code-block:: none
|
.. code-block:: none
|
||||||
|
|
||||||
$ debugger <pid>
|
debugger <pid>
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
@ -157,15 +157,14 @@ The source code structure:
|
|||||||
└── usercrash
|
└── usercrash
|
||||||
└── include
|
└── include
|
||||||
|
|
||||||
- ``acrnprobe``: to gather all the crash and event logs on the platform, and
|
- ``acrnprobe``: to gather all the crash and event logs on the platform. For
|
||||||
probe on telemetrics-client. For the hypervisor, the log is collected with
|
the hypervisor, the log is collected with ``acrnlog``. For the Service VM, the
|
||||||
``acrnlog``. For the Service VM, the userspace crash log is collected with
|
userspace crash log is collected with ``usercrash``, and the kernel crash log
|
||||||
``usercrash``, and the kernel crash log is collected with the inherent
|
is collected with the inherent mechanism, such as ``ipanic`` or ``pstore``.
|
||||||
mechanism
|
For the AaaG, the log is collected by monitoring the change of related folders
|
||||||
like ``ipanic``, ``pstore``, etc. For the AaaG, the log is collected by
|
on the Service VM image, such as ``/data/logs/``. ``acrnprobe`` also provides
|
||||||
monitoring the change of related folders on the Service VM image, like
|
a flexible way to configure which crash or event to collect, by using an XML
|
||||||
``/data/logs/``. ``acrnprobe`` also provides a flexible way to
|
configuration file.
|
||||||
configure which crash or event to collect, by using an XML configuration file.
|
|
||||||
- ``common``: some utils for logs, command and string.
|
- ``common``: some utils for logs, command and string.
|
||||||
- ``data``: configuration file, service files and shell script.
|
- ``data``: configuration file, service files and shell script.
|
||||||
- ``usercrash``: to implement the tool that gets the crash information for the
|
- ``usercrash``: to implement the tool that gets the crash information for the
|
||||||
@ -176,8 +175,7 @@ Acrnprobe
|
|||||||
|
|
||||||
The ``acrnprobe`` tool detects all critical events on the platform and collects
|
The ``acrnprobe`` tool detects all critical events on the platform and collects
|
||||||
specific information for debug purposes. The information is saved as
|
specific information for debug purposes. The information is saved as
|
||||||
logs, and the log path is delivered to telemetrics-client as a record if
|
logs.
|
||||||
telemetrics-client exists on the system.
|
|
||||||
For more details on ``acrnprobe``, see :ref:`acrnprobe_doc`.
|
For more details on ``acrnprobe``, see :ref:`acrnprobe_doc`.
|
||||||
|
|
||||||
Usercrash
|
Usercrash
|
||||||
|
Loading…
Reference in New Issue
Block a user