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 高强 <mrgao.buff...@gmail.com>: > 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 <wei.l...@citrix.com>: > >> 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