endif
ifdef V3_CONFIG_EXT_INSPECTOR
- v3vee-objs += palacios-debugfs.o
+ v3vee-objs += palacios-inspector.o
endif
ifdef V3_CONFIG_VNET
+++ /dev/null
-/*
- * DebugFS interface
- * (c) Jack Lange, 2011
- */
-
-#include "palacios.h"
-
-int palacios_init_debugfs( void );
-int palacios_deinit_debugfs( void );
-
-
-
-int dfs_register_vm(struct v3_guest * guest);
-
#include "palacios-packet.h"
#ifdef V3_CONFIG_EXT_INSPECTOR
-#include "palacios-debugfs.h"
+#include "palacios-inspector.h"
#endif
MODULE_LICENSE("GPL");
palacios_init_console();
#endif
-#ifdef V3_CONFIG_INSPECTOR
- palacios_init_debugfs();
+#ifdef V3_CONFIG_EXT_INSPECTOR
+ palacios_init_inspector();
#endif
#ifdef V3_CONFIG_SOCKET
#ifdef V3_CONFIG_EXT_INSPECTOR
- palacios_deinit_debugfs();
+ palacios_deinit_inspector();
#endif
#ifdef V3_CONFIG_FILE
struct dentry * v3_dir = NULL;
-int palacios_init_debugfs( void ) {
+int palacios_init_inspector( void ) {
v3_dir = debugfs_create_dir("v3vee", NULL);
}
-int palacios_deinit_debugfs( void ) {
+int palacios_deinit_inspector( void ) {
debugfs_remove(v3_dir);
return 0;
}
}
-int dfs_register_vm(struct v3_guest * guest) {
+int inspect_vm(struct v3_guest * guest) {
v3_inspect_node_t * root = v3_get_inspection_root(guest->v3_ctx);
+ struct dentry * guest_dir = NULL;
+
if (root == NULL) {
printk("No inspection root found\n");
return -1;
}
- dfs_register_tree(v3_dir, root);
+ guest_dir = debugfs_create_dir(guest->name, v3_dir);
+
+ if (IS_ERR(guest_dir)) {
+ printk("Error Creating inspector tree for VM \"%s\"\n", guest->name);
+ return -1;
+ }
+
+ dfs_register_tree(guest_dir, root);
return 0;
}
--- /dev/null
+/*
+ * DebugFS interface
+ * (c) Jack Lange, 2011
+ */
+
+#include "palacios.h"
+
+int palacios_init_inspector( void );
+int palacios_deinit_inspector( void );
+
+
+
+int inspect_vm(struct v3_guest * guest);
+
#endif
#ifdef V3_CONFIG_EXT_INSPECTOR
-#include "palacios-debugfs.h"
+#include "palacios-inspector.h"
#endif
#if V3_CONFIG_EXT_INSPECTOR
- dfs_register_vm(guest);
+ inspect_vm(guest);
#endif