X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Finclude%2Fpalacios%2Fvmm_inspector.h;h=ee0f70d29e38220b7f7996a89e31a8d63b3f14cc;hb=0a7690f54cb5bda83780dac26ce433ad24b1d766;hp=a24ca1c0652af062b82d9ac83d4df22ae020ae60;hpb=374b2d6d22a0e0dc6ed8d3d628e635ab935072e0;p=palacios-OLD.git diff --git a/palacios/include/palacios/vmm_inspector.h b/palacios/include/palacios/vmm_inspector.h index a24ca1c..ee0f70d 100644 --- a/palacios/include/palacios/vmm_inspector.h +++ b/palacios/include/palacios/vmm_inspector.h @@ -21,6 +21,7 @@ #ifndef __VMM_INSPECTOR_H__ #define __VMM_INSPECTOR_H__ +#include typedef void v3_inspect_node_t; @@ -65,18 +66,24 @@ v3_inspect_node_t * v3_inspect_add_subtree(v3_inspect_node_t * root, char * name struct v3_inspection_value { char * name; unsigned char * value; - unsigned long long size; + unsigned long long size; // Size of 0 means this is a subtree root unsigned char flags; }; -int v3_get_inspection_value(v3_inspect_node_t * node, char * name, +int v3_find_inspection_value(v3_inspect_node_t * node, char * name, struct v3_inspection_value * value); +struct v3_inspection_value v3_inspection_value(v3_inspect_node_t * node); + + + v3_inspect_node_t * v3_get_inspection_root(struct v3_vm_info * vm); v3_inspect_node_t * v3_get_inspection_subtree(v3_inspect_node_t * root, char * name); + v3_inspect_node_t * v3_inspection_node_next(v3_inspect_node_t * node); +v3_inspect_node_t * v3_inspection_first_child(v3_inspect_node_t * root); #endif