xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Dario Faggioli <dario.faggioli@citrix.com>
To: Adel Amani <adel.amani66@yahoo.com>
Cc: George Dunlap <george.dunlap@eu.citrix.com>,
	Matthew Daley <mattjd@gmail.com>,
	Ian Campbell <Ian.Campbell@citrix.com>,
	Xen <xen-devel@lists.xen.org>
Subject: Re: fatal error: xen/domctl.h: No such file or directory
Date: Thu, 5 Dec 2013 10:32:59 +0100	[thread overview]
Message-ID: <1386235979.5338.457.camel@Solace> (raw)
In-Reply-To: <1386235148.78388.YahooMailNeo@web160205.mail.bf1.yahoo.com>


[-- Attachment #1.1: Type: text/plain, Size: 1834 bytes --]

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)


[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

  reply	other threads:[~2013-12-05  9:32 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-05  9:19 fatal error: xen/domctl.h: No such file or directory Adel Amani
2013-12-05  9:32 ` Dario Faggioli [this message]
     [not found]   ` <1386320361.63501.YahooMailNeo@web160203.mail.bf1.yahoo.com>
     [not found]     ` <1386323704.5338.576.camel@Solace>
     [not found]       ` <1386695819.26721.YahooMailNeo@web160203.mail.bf1.yahoo.com>
2013-12-14 17:48         ` Adel Amani
2013-12-14 18:03           ` Dario Faggioli
  -- strict thread matches above, loose matches on Subject: below --
2013-12-15  7:58 (no subject) Adel Amani
2013-12-15 13:05 ` fatal error: xen/domctl.h: No such file or directory Adel Amani
2013-12-16 10:17   ` Dario Faggioli

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1386235979.5338.457.camel@Solace \
    --to=dario.faggioli@citrix.com \
    --cc=Ian.Campbell@citrix.com \
    --cc=adel.amani66@yahoo.com \
    --cc=george.dunlap@eu.citrix.com \
    --cc=mattjd@gmail.com \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).