X-Git-Url: http://git.annexia.org/?p=virt-mem.git;a=blobdiff_plain;f=lib%2Fvirt_mem_types.ml;h=556a3c7be5f44110f0092e4a2d5338ec7cef151c;hp=293d2de2ab64ca7c506ef2bf0464bb6144997370;hb=2e1de51e35bea53ebece1a6fd6d6970534f4cbe9;hpb=cf4669f31197abcfb14dee874a4b738c9c2e6483 diff --git a/lib/virt_mem_types.ml b/lib/virt_mem_types.ml index 293d2de..556a3c7 100644 --- a/lib/virt_mem_types.ml +++ b/lib/virt_mem_types.ml @@ -41,18 +41,40 @@ type image = { } type utsname = { - kernel_name : string; - nodename : string; - kernel_release : string; - kernel_version : string; - machine : string; - domainname : string; + uts_kernel_name : string; + uts_nodename : string; + uts_kernel_release : string; + uts_kernel_version : string; + uts_machine : string; + uts_domainname : string; +} + +type task = { + task_state : int64; + task_prio : int64; + task_normal_prio : int64; + task_static_prio : int64; + task_comm : string; + task_pid : int64; +} + +type net_device = { + netdev_name : string; + netdev_dev_addr : string; } type kdata = { ksyms : ksymmap option; utsname : utsname option; - tasks : Virt_mem_mmap.addr option; + tasks : task list option; + net_devices : net_device list option; +} + +exception ParseError of string * string * string + +type fieldsig = { + field_available : bool; + field_offset : int; } (* This is the maximum we can download in one go over the libvirt