X-Git-Url: http://git.annexia.org/?p=virt-mem.git;a=blobdiff_plain;f=dmesg%2Fvirt_dmesg.ml;h=0931e91f04a82c5774b05f8f72c3ee36ace7088c;hp=10d231f54cbe82fa4a4eea9635450aacc564188d;hb=b70c967911e197b74d6d7ad98e3df9240d82572f;hpb=6a4bf18801508eb18520b7b1ec13325fd4101764 diff --git a/dmesg/virt_dmesg.ml b/dmesg/virt_dmesg.ml index 10d231f..0931e91 100644 --- a/dmesg/virt_dmesg.ml +++ b/dmesg/virt_dmesg.ml @@ -23,20 +23,7 @@ open Virt_mem_gettext.Gettext open Virt_mem_utils open Virt_mem_mmap -let usage = s_"NAME - virt-dmesg - dmesg command for virtual machines - -SUMMARY - virt-dmesg [-options] [domains] - -DESCRIPTION - virt-dmesg prints the kernel messages for virtual machines running - under libvirt. The output is similar to the ordinary dmesg command - run inside the virtual machine." - -let verbose, images = Virt_mem.start usage - -let () = +let run debug images = List.iter ( fun (name, arch, mem, lookup_ksym) -> try @@ -86,3 +73,11 @@ let () = eprintf (f_"%s: could not find kernel log buffer in kernel image\n") name ) images + +let summary = s_"display kernel messages" +let description = s_"\ +virt-dmesg prints the kernel messages for virtual machines running +under libvirt. The output is similar to the ordinary dmesg command +run inside the virtual machine." + +let () = Virt_mem.register "dmesg" summary description true run