@@ -4,13 +4,13 @@ ACRN-Crashlog
4
4
Introduction
5
5
************
6
6
7
- ``ACRN-Crashlog `` is a joint name for the tools (``acrnprobe ``,
8
- ``usercrash_s ``, ``usercrash_c ``, ``debugger ``, and more). Together
9
- these tools collect logs and information after each crash or event on an
10
- ACRN platform, including the hypervisor, Service OS (SOS), and Android
11
- as a Guest (AaaG). `` ACRN-Crashlog `` provides a flexible way to
12
- configure which events are of interest, by using an XML configuration
13
- file.
7
+ ``ACRN-Crashlog `` is a collective name for various tools (``acrnprobe ``,
8
+ ``usercrash_s ``, ``usercrash_c ``, ``debugger ``, and more) and a overall
9
+ control utility called `` crashlogctl ``. Together these tools collect logs
10
+ and information after each crash or event on an ACRN platform, including
11
+ the hypervisor, Service OS (SOS), and Android as a Guest (AaaG).
12
+ `` ACRN-Crashlog `` provides a flexible way to configure which events are
13
+ of interest, by using an XML configuration file.
14
14
15
15
Building
16
16
********
@@ -61,6 +61,96 @@ To install the build:
61
61
$ cd acrn-crashlog
62
62
$ sudo make install
63
63
64
+ Enabling/Disabling
65
+ ******************
66
+
67
+ To enable this tool:
68
+
69
+ .. code-block :: none
70
+
71
+ $ sudo crashlogctl enable
72
+
73
+ Then it will show:
74
+
75
+ .. code-block :: console
76
+
77
+ ... Backup core pattern to /var/log/crashlog/default_core_pattern
78
+ '/usr/share/defaults/telemetrics/telemetrics.conf' ->
79
+ '/etc/telemetrics/telemetrics.conf'
80
+ ... Set server_delivery_enabled=false in /etc/telemetrics/telemetrics.conf
81
+ ... Set record_retention_enabled=true in /etc/telemetrics/telemetrics.conf
82
+ '/usr/share/acrn/crashlog/40-watchdog.conf' ->
83
+ '/etc/systemd/system.conf.d/40-watchdog.conf'
84
+ '/usr/share/acrn/crashlog/80-coredump.conf' ->
85
+ '/etc/sysctl.d/80-coredump.conf'
86
+ Created symlink /etc/systemd/system/hprobe.timer → /dev/null.
87
+ Created symlink /etc/systemd/system/telemd-update-trigger.service →
88
+ /dev/null.
89
+ Created symlink /etc/systemd/system/pstore-clean.service → /dev/null.
90
+ Created symlink /etc/systemd/system/pstore-probe.service → /dev/null.
91
+ Created symlink /etc/systemd/system/oops-probe.service → /dev/null.
92
+ Created symlink /etc/systemd/system/klogscanner.service → /dev/null.
93
+ Created symlink /etc/systemd/system/journal-probe.service → /dev/null.
94
+ Created symlink /etc/systemd/system/bert-probe.service → /dev/null.
95
+ Created symlink /etc/systemd/system/multi-user.target.wants/acrnprobe.service
96
+ → /usr/lib/systemd/system/acrnprobe.service.
97
+ Created symlink /etc/systemd/system/multi-user.target.wants/usercrash.service
98
+ → /usr/lib/systemd/system/usercrash.service.
99
+ *** Please reboot your system. ***
100
+
101
+ Follow the hints to reboot the system:
102
+
103
+ .. code-block :: none
104
+
105
+ $ sudo reboot
106
+
107
+ To disable this tool:
108
+
109
+ .. code-block :: none
110
+
111
+ $ sudo crashlogctl disable
112
+
113
+ Then it will show:
114
+
115
+ .. code-block :: console
116
+
117
+ Removed /etc/systemd/system/multi-user.target.wants/acrnprobe.service.
118
+ Removed /etc/systemd/system/multi-user.target.wants/usercrash.service.
119
+ Removed /etc/systemd/system/hprobe.timer.
120
+ Removed /etc/systemd/system/telemd-update-trigger.service.
121
+ Removed /etc/systemd/system/pstore-clean.service.
122
+ Removed /etc/systemd/system/pstore-probe.service.
123
+ Removed /etc/systemd/system/oops-probe.service.
124
+ Removed /etc/systemd/system/klogscanner.service.
125
+ Removed /etc/systemd/system/journal-probe.service.
126
+ Removed /etc/systemd/system/bert-probe.service.
127
+ removed '/etc/sysctl.d/80-coredump.conf'
128
+ removed '/etc/systemd/system.conf.d/40-watchdog.conf'
129
+ ... Set server_delivery_enabled=true in /etc/telemetrics/telemetrics.conf
130
+ ... Set record_retention_enabled=false in /etc/telemetrics/telemetrics.conf
131
+ *** Please reboot your system. ***
132
+
133
+ Follow the hints to reboot the system:
134
+
135
+ .. code-block :: none
136
+
137
+ $ sudo reboot
138
+
139
+ To check the status of this tool:
140
+
141
+ .. code-block :: none
142
+
143
+ $ sudo crashlogctl is-active
144
+
145
+ It will show the status of the related services like:
146
+
147
+ .. code-block :: console
148
+
149
+ telemprobd : active
150
+ telempostd : active
151
+ acrnprobe : inactive
152
+ usercrash : inactive
153
+
64
154
Usage
65
155
*****
66
156
0 commit comments