Skip to content

Commit 731c0d4

Browse files
lyan3jren1
authored andcommitted
DM:tools: add README.rst for acrnlog tool
Signed-off-by: Yan, Like <like.yan@intel.com> Reviewed-by: Zhao Yakui <yakui.zhao@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
1 parent a1c07bb commit 731c0d4

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

devicemodel/tools/acrnlog/README.rst

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
ACRNLOG
2+
#######
3+
4+
DESCRIPTION
5+
###########
6+
acrnlog is a userland tool to capture ACRN hypervisor log, it runs as an
7+
SOS service at boot. It captures two kinds of logs:
8+
- log of current running;
9+
- log of last running if crashed and logs remaining.
10+
11+
The path to save log files is /tmp/acrnog/, so the log files would be lost
12+
after reset.
13+
14+
USAGE
15+
#####
16+
The acrnlog tool is launched as a service at boot, with 4 1MB log files limited.
17+
To change the log file limitation:
18+
19+
- temporary change
20+
Stop the acrnlog service:
21+
22+
# systemctl disable acrnlog
23+
24+
Restart acrnlog running at backgroud with size and number of files.
25+
For example:
26+
27+
# acrnlog -n 8 -s 4 &
28+
29+
Use get_loglevel/set_loglevel to query and change the hypervisor loglevel.
30+
The mem_loglevel controls log to be saved using acrnlog, while
31+
console_loglevel controls log to output to console. For example:
32+
ACRN:\>get_loglevel
33+
console_loglevel: 2, mem_loglevel: 4
34+
ACRN:\>set_loglevel 2 5
35+
ACRN:\>get_loglevel
36+
console_loglevel: 2, mem_loglevel: 5
37+
38+
- permanent chagne
39+
Edit /usr/lib/systemd/system/acrnlog.service to attached the -n and -s options to
40+
the ExecStart cmd, and restart the service. For example:
41+
42+
ExecStart=/usr/bin/acrnlog -n 8 -s 4
43+
44+
BUILD&INSTALLATION
45+
##################
46+
# make
47+
copy acrnlog to /usr/bin/ and copy acrnlog.service to /usr/lib/systemd/system/

0 commit comments

Comments
 (0)