aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxl/xl_cmdtable.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2010-05-26 07:45:51 +0100
committerKeir Fraser <keir.fraser@citrix.com>2010-05-26 07:45:51 +0100
commit4024bae739cc3bd34fec4bc8e65979f56259f810 (patch)
tree500e2c4b74f9cd240503be81f23f8adb812884f4 /tools/libxl/xl_cmdtable.c
parente5fd1f6505c43440bc2450253c79c80174b693bc (diff)
downloadxen-4024bae739cc3bd34fec4bc8e65979f56259f810.tar.gz
xen-4024bae739cc3bd34fec4bc8e65979f56259f810.tar.bz2
xen-4024bae739cc3bd34fec4bc8e65979f56259f810.zip
xl: Add subcommand 'xl dmesg'
Can be used to read and/or clear dmesg buffer. Signed-off-by: Yu Zhiguo <yuzg@cn.fujitsu.com>
Diffstat (limited to 'tools/libxl/xl_cmdtable.c')
-rw-r--r--tools/libxl/xl_cmdtable.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/libxl/xl_cmdtable.c b/tools/libxl/xl_cmdtable.c
index e1caca9db0..22c3feada1 100644
--- a/tools/libxl/xl_cmdtable.c
+++ b/tools/libxl/xl_cmdtable.c
@@ -191,6 +191,12 @@ struct cmd_spec cmd_table[] = {
"Send debug keys to Xen",
"<Keys>",
},
+ { "dmesg",
+ &main_dmesg,
+ "Read and/or clear dmesg buffer",
+ "[-c]",
+ " -c Clear dmesg buffer as well as printing it",
+ },
{ "top",
&main_top,
"Monitor a host and the domains in real time",