hi,all I want to modify the xen source code and test something, but where can I print the debug info? I found and try this : #define HVM_DBG_LOG(level, _f, _a...) \ do { \ if ( unlikely((level) & opt_hvm_debug_level) ) \ printk("[HVM:%d.%d] <%s> " _f "\n", \ current->domain->domain_id, current->vcpu_id, __func__, \ ## _a); \ } while (0) but I use dmesg and cat /var/log/xen/* , find nothing -- ---------------------------------------------------------- regards, yandong _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
> but I use dmesg and cat /var/log/xen/* , find nothing >Since you are using printk in the hypervisor you should do "xl dmesg" (or "xm dmesg") to get the messages. Shakeel
thank you, by the way, except printk, are there any other methods I can use to debug? 2013/5/7 Shakeel Butt <shakeel.butt@gmail.com>> > but I use dmesg and cat /var/log/xen/* , find nothing > > > Since you are using printk in the hypervisor you should do "xl dmesg" > (or "xm dmesg") to get the messages. > > Shakeel >-- ---------------------------------------------------------- regards, yandong _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel