From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dario Faggioli Subject: Re: fatal error: xen/domctl.h: No such file or directory Date: Thu, 5 Dec 2013 10:32:59 +0100 Message-ID: <1386235979.5338.457.camel@Solace> References: <1386235148.78388.YahooMailNeo@web160205.mail.bf1.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5695157081594879487==" Return-path: In-Reply-To: <1386235148.78388.YahooMailNeo@web160205.mail.bf1.yahoo.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Adel Amani Cc: George Dunlap , Matthew Daley , Ian Campbell , Xen List-Id: xen-devel@lists.xenproject.org --===============5695157081594879487== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-IRNnvaVroTn0Epj3g6Ig" --=-IRNnvaVroTn0Epj3g6Ig Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On gio, 2013-12-05 at 01:19 -0800, Adel Amani wrote: > Hello >=20 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" >=20 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? >=20 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_co= unt); xen/arch/x86/mm/paging.c: sc->stats.dirty_count =3D d->arch.paging.log_d= irty.dirty_count; xen/arch/x86/mm/paging.c: d->arch.paging.log_dirty.dirty_count =3D 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 --=20 <> (Raistlin Majere) ----------------------------------------------------------------- Dario Faggioli, Ph.D, http://about.me/dario.faggioli Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK) --=-IRNnvaVroTn0Epj3g6Ig Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.15 (GNU/Linux) iEYEABECAAYFAlKgSEsACgkQk4XaBE3IOsQprACglF5T4q2ah2tvsddV5Y7qqT8u nw0An0IvNnjlu2EEBRq1yisdnGT9p6jg =Rz97 -----END PGP SIGNATURE----- --=-IRNnvaVroTn0Epj3g6Ig-- --===============5695157081594879487== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --===============5695157081594879487==--