Re: [Xen-devel] help for python log in xen-4.4.1
Please don't top-post. On Tue, Oct 20, 2015 at 10:58:56AM +0800, 高强 wrote: > Hi, > > If you know, could you tell me the call relationship of command "xl save". > Example, when I execute "xl save",which function will be called first,and > then call which function? I mainly want to know which python function will > be called. > No python code will be called if you're using xl toolstack. The code for xl and the underly library libxl is in tools/libxl directory. Most of the time, you should be able to get the call chain by simply inspecting the code. Wei. ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
[Xen-devel] help for python log in xen-4.4.1
Hi,alls There are some python code in xen-4.4.1,and in the python code there are lots debug information such as log.debug("***"),log.exception("***"),XendError("*")and so on. I want to get this kind of information but I don't know where to get them. Can someone tell me? else,I try to use the followed method to tracing program execution process: import sys f=open("/home/*/python.log","a+") print >> f, "Save.py is start\n" f.close() But,I can't find the file python.log while executed end,who can tell me why? Thanks! ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
Re: [Xen-devel] help for python log in xen-4.4.1
On Mon, Oct 19, 2015 at 10:22:52AM +0800, 高强 wrote: > Hi,alls > > > There are some python code in xen-4.4.1,and in the python code there are > lots debug information such as > log.debug("***"),log.exception("***"),XendError("*")and so on. > > I want to get this kind of information but I don't know where to get them. > Can someone tell me? > > else,I try to use the followed method to tracing program execution process: > > import sys > f=open("/home/*/python.log","a+") > print >> f, "Save.py is start\n" > f.close() > > But,I can't find the file python.log while executed end,who can tell me why? > Xen 4.4 is using xl toolstack. Xend is not used so no wonder you couldn't find any logs. If you describe your end goal we might provide more concrete suggestions. Wei. > Thanks! > ___ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
Re: [Xen-devel] help for python log in xen-4.4.1
Hi, If you know, could you tell me the call relationship of command "xl save". Example, when I execute "xl save",which function will be called first,and then call which function? I mainly want to know which python function will be called. Thanks 2015-10-20 10:22 GMT+08:00 高强: > Hi, > > Thank you for your help! > > I'm modifying the source code of xen-4.4.1,I hope throurh printing debug > information to track the execution order of functions and check the value > of some variables. This is my ultimate goal. > > But I don't know how to do it in the python code. I tried to print debug > information into files,but I couldn't find the file I created. > > Thanks > > 2015-10-19 17:04 GMT+08:00 Wei Liu : > >> On Mon, Oct 19, 2015 at 10:22:52AM +0800, 高强 wrote: >> > Hi,alls >> > >> > >> > There are some python code in xen-4.4.1,and in the python code there are >> > lots debug information such as >> > log.debug("***"),log.exception("***"),XendError("*")and so >> on. >> > >> > I want to get this kind of information but I don't know where to get >> them. >> > Can someone tell me? >> > >> > else,I try to use the followed method to tracing program execution >> process: >> > >> > import sys >> > f=open("/home/*/python.log","a+") >> > print >> f, "Save.py is start\n" >> > f.close() >> > >> > But,I can't find the file python.log while executed end,who can tell me >> why? >> > >> >> Xen 4.4 is using xl toolstack. Xend is not used so no wonder you >> couldn't find any logs. >> >> If you describe your end goal we might provide more concrete >> suggestions. >> >> >> Wei. >> >> > Thanks! >> >> > ___ >> > Xen-devel mailing list >> > Xen-devel@lists.xen.org >> > http://lists.xen.org/xen-devel >> >> > ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
Re: [Xen-devel] help for python log in xen-4.4.1
Hi, Thank you for your help! I'm modifying the source code of xen-4.4.1,I hope throurh printing debug information to track the execution order of functions and check the value of some variables. This is my ultimate goal. But I don't know how to do it in the python code. I tried to print debug information into files,but I couldn't find the file I created. Thanks 2015-10-19 17:04 GMT+08:00 Wei Liu: > On Mon, Oct 19, 2015 at 10:22:52AM +0800, 高强 wrote: > > Hi,alls > > > > > > There are some python code in xen-4.4.1,and in the python code there are > > lots debug information such as > > log.debug("***"),log.exception("***"),XendError("*")and so > on. > > > > I want to get this kind of information but I don't know where to get > them. > > Can someone tell me? > > > > else,I try to use the followed method to tracing program execution > process: > > > > import sys > > f=open("/home/*/python.log","a+") > > print >> f, "Save.py is start\n" > > f.close() > > > > But,I can't find the file python.log while executed end,who can tell me > why? > > > > Xen 4.4 is using xl toolstack. Xend is not used so no wonder you > couldn't find any logs. > > If you describe your end goal we might provide more concrete > suggestions. > > > Wei. > > > Thanks! > > > ___ > > Xen-devel mailing list > > Xen-devel@lists.xen.org > > http://lists.xen.org/xen-devel > > ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel