[XenAccess-devel] linux_predict_sysmap_name called twice?
Status: Beta
Brought to you by:
bdpayne
From: Daniele S. <da...@ya...> - 2006-07-18 09:12:22
|
Hi, I've recently downloaded the XenAccess library which I think is very nice and useful: I'd like to build something like an IDS for XEN using XenAccess with Libvirt ...it's only an idea for now :) I've tried to use the process_list program (modified so that it can work with any domain ID), but there are some little problems; I've put some printf at the begin and at the end of each function called and this is the resulting tree (the command is ./run ./process-list 2): xa_init begin xa_init end helper_init 1) linux_predict_sysmap_name begin linux_get_xml_info begin virConnectOpenReadOnly virDomainLookupByID virDomainFree = [0] virConnectClose = [0] linux_get_xml_info end linux_predict_sysmap_name kernel=[/boot/vmlinuz-2.6.16-xen] linux_predict_sysmap_name end sysmap=[/boot/System.map-2.6.16-xen] linux_system_map_symbol_to_address begin linux_system_map_symbol_to_address end helper_init end xa_access_kernel_symbol begin linux_access_kernel_symbol begin 2) linux_predict_sysmap_name begin linux_get_xml_info begin virConnectOpenReadOnly virDomainLookupByID (0) (null) ERROR: Failed to find Domain 2 virConnectClose = [0] linux_get_xml_info end ERROR: failed to get domain info for domain id 2 ERROR: could not get kernel name for domain id 2 linux_predict_sysmap_name end sysmap=[(null)] linux_system_map_symbol_to_address begin fopen system map [(null)] error linux_system_map_symbol_to_address end xa_access_kernel_symbol end failure failed to get process list head: Bad address I see that linux_predict_sysmap_name is called twice: when it's invoked the second time, there is a problem with virDomainLookupByID: probably it could be a libVirt error (for example a pointer not updated, I'm using the latest version which is now 0.1.3). Is it possible to save the information obtained the first time by linux_get_xml_info so that the second time it's not necessary to call it again? Probably I still don't have a clear view of all the code :) Thanks! Daniele Chiacchiera con i tuoi amici in tempo reale! http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com |