Hello I trying for usage object "stats.dirty_count" in file "sched_credit.c" but despite I added library "domctl.h" still have error "sched_credit.c:11:24: fatal error: xen/domctl.h: No such file or directory" can someone help me? Adel Amani M.Sc. Candidate@Computer Engineering Department, University of Isfahan Email: A.Amani@eng.ui.ac.ir _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
Dario Faggioli
2013-Dec-05 09:32 UTC
Re: fatal error: xen/domctl.h: No such file or directory
On gio, 2013-12-05 at 01:19 -0800, Adel Amani wrote:> Hello >Hi,> I trying for usage object "stats.dirty_count" in file "sched_credit.c" > but despite I added library "domctl.h" still have error > "sched_credit.c:11:24: fatal error: xen/domctl.h: No such file or > directory" >So, can you explain what it is that you are trying to achieve here? It''s going to be a lot easier to help if we know what we''re talking about. (And if you perhaps have already said this and rely on us remembering without giving even some small context, please, don''t do that either. Developers are renowned for their terrible attention span and memory! :-P)> can someone help me? >Even without context, I don''t think that including domctl.h in sched_credit.c, and then trying to use xen_domctl_shadow_op_stats there makes much sense. You''re better off looking at d->arch.paging.log_dirty.dirty_count. grep (or cscope) could probably have been of help. $ grep dirty_count xen/* -R xen/arch/x86/asm-offsets.s: .string "dirty_count" xen/arch/x86/mm/paging.c: d->arch.paging.log_dirty.dirty_count++; xen/arch/x86/mm/paging.c: d->arch.paging.log_dirty.dirty_count); xen/arch/x86/mm/paging.c: sc->stats.dirty_count = d->arch.paging.log_dirty.dirty_count; xen/arch/x86/mm/paging.c: d->arch.paging.log_dirty.dirty_count = 0; xen/include/asm-x86/domain.h: unsigned int dirty_count; xen/include/public/domctl.h: uint32_t dirty_count; xen/include/asm/domain.h: unsigned int dirty_count; Regards, Dario -- <<This happens because I choose it to happen!>> (Raistlin Majere) ----------------------------------------------------------------- Dario Faggioli, Ph.D, http://about.me/dario.faggioli Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK) _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
Hello Mr Faggioli I use "d->arch.paging.log_dirty.dirty_count" or "xc_shadow_op_stats_t stats;" in function of code csched_credit.c, trying to give dirty_count every round. But I cant compile this code and error in domctl.h "unknown type name ''uint16_t'' " or error "expected specifier-qualifier-list before ''uint64_t'' " !!! I don''t know really problem where?! :-| Adel Amani M.Sc. Candidate@Computer Engineering Department, University of Isfahan Email: A.Amani@eng.ui.ac.ir _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
Dario Faggioli
2013-Dec-14 18:03 UTC
Re: fatal error: xen/domctl.h: No such file or directory
On sab, 2013-12-14 at 09:48 -0800, Adel Amani wrote:> Hello Mr Faggioli > I use "d->arch.paging.log_dirty.dirty_count" or "xc_shadow_op_stats_t > stats;" in function of code csched_credit.c, trying to give > dirty_count every round. >You use one _or_ the other? What does that mean? Actually, can you show us the code (better if in the form of a patch)? It''s really hard to figure out what''s going on basing only on the information above...> But I cant compile this code and error in domctl.h > "unknown type name ''uint16_t'' " > or error > "expected specifier-qualifier-list before ''uint64_t'' " !!! >Mmm... Likewise, show us the complete error message, by cutting and pasting a bit more of the terminal output when compiling. Regards, Dario -- <<This happens because I choose it to happen!>> (Raistlin Majere) ----------------------------------------------------------------- Dario Faggioli, Ph.D, http://about.me/dario.faggioli Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK) _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel