Skip to contentSkip to conversation

fatal error: xen/domctl.h: No such file or directory

DISCUSSION Adel Amani 2 participants 4 messages Dec 5, 2013 – Dec 14, 2013 3 messages not in the archive

lore
Share & tools
lore

Adel Amani

author
#0 lore raw

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: [email protected]

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#1 lore raw
Quoted 2 lines · Adel Amani

Hello

Hi,

Quoted 5 lines

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)

Quoted 2 lines

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

Signature · 4 lines
<<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
[email protected]
http://lists.xen.org/xen-devel

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): 1386323704.5338.576.camel@Solace

A message that is not in the archive (sent off-list or not yet received): [email protected]

author
#5 lore raw

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: [email protected]

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#6 lore raw
Quoted 5 lines · Adel Amani

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

Quoted 5 lines

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

Signature · 4 lines
<<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
[email protected]
http://lists.xen.org/xen-devel