summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2009-05-01 11:27:32 +0100
committerRichard W.M. Jones <rjones@redhat.com>2009-05-01 11:27:32 +0100
commit8c60f5c681b5d7cf90bc798fcaf94cd4e242e27f (patch)
treede454f599ef753d29bcd46b71f2cfd051032c03d /src
parent9222136ac9b2e404dba128b1ac74dacaa8bf1038 (diff)
downloadlibguestfs-8c60f5c681b5d7cf90bc798fcaf94cd4e242e27f.tar.gz
libguestfs-8c60f5c681b5d7cf90bc798fcaf94cd4e242e27f.tar.xz
libguestfs-8c60f5c681b5d7cf90bc798fcaf94cd4e242e27f.zip
Added dmesg command.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/generator.ml14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/generator.ml b/src/generator.ml
index 2ffe19da..92da3817 100755
--- a/src/generator.ml
+++ b/src/generator.ml
@@ -1752,6 +1752,20 @@ Setting C<whattodrop> to 3 should drop everything.
This automatically calls L<sync(2)> before the operation,
so that the maximum guest memory is freed.");
+ ("dmesg", (RString "kmsgs", []), 91, [],
+ [InitEmpty, TestRun (
+ [["dmesg"]])],
+ "return kernel messages",
+ "\
+This returns the kernel messages (C<dmesg> output) from
+the guest kernel. This is sometimes useful for extended
+debugging of problems.
+
+Another way to get the same information is to enable
+verbose messages with C<guestfs_set_verbose> or by setting
+the environment variable C<LIBGUESTFS_DEBUG=1> before
+running the program.");
+
]
let all_functions = non_daemon_functions @ daemon_functions