[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] fatal error: xen/domctl.h: No such file or directory

On gio, 2013-12-05 at 01:19 -0800, Adel Amani wrote:
> 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"
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 = 
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;


<<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)

Attachment: signature.asc
Description: This is a digitally signed message part

Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.