Received: from eggs.gnu.org ([2001:4830:134:3::10]:52090) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zn79P-0000wJ-L2 for qemu-devel@nongnu.org; Fri, 16 Oct 2015 11:42:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zn79K-0001zL-LK for qemu-devel@nongnu.org; Fri, 16 Oct 2015 11:42:35 -0400 Received: from roura.ac.upc.es ([147.83.33.10]:56465) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zn79K-0001wh-AX for qemu-devel@nongnu.org; Fri, 16 Oct 2015 11:42:30 -0400 From: =?utf-8?Q?Llu=C3=ADs_Vilanova?= References: <20151013171020.21325.27626.stgit@localhost> <20151013171107.21325.37133.stgit@localhost> <20151016091929.GG7432@stefanha-thinkpad.redhat.com> Date: Fri, 16 Oct 2015 17:42:26 +0200 In-Reply-To: <20151016091929.GG7432@stefanha-thinkpad.redhat.com> (Stefan Hajnoczi's message of "Fri, 16 Oct 2015 11:19:29 +0200") Message-ID: <87oafyzuot.fsf@fimbulvetr.bsc.es> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCHv18/8] trace: [tcg] Add per-vCPU tracing states for events with the 'vcpu' property List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: Stefan Hajnoczi , qemu-devel@nongnu.org, Markus Armbruster , Gerd Hoffmann , Andreas =?utf-8?Q?F=C3=A4rber?= Stefan Hajnoczi writes: > On Tue, Oct 13, 2015 at 07:11:07PM +0200, Llu=C3=ADs Vilanova wrote: >> diff --git a/trace/control-internal.h b/trace/control-internal.h >> index 70e55df..b4069e3 100644 >> --- a/trace/control-internal.h >> +++ b/trace/control-internal.h >> @@ -12,6 +12,12 @@ >>=20 >> #include >>=20 >> +#include "qemu-common.h" >> +/* GTK headers conflict with QOM's '_' */ >> +#if !defined(TRACE_CPU_INCLUDE_HACK) >> +#include "qom/cpu.h" >> +#endif >> + >>=20 >> extern TraceEvent trace_events[]; >>=20 >> @@ -63,11 +69,16 @@ static inline bool trace_event_get_state_dynamic(Tra= ceEvent *ev) >> return ev->dstate; >> } >>=20 >> -static inline void trace_event_set_state_dynamic(TraceEvent *ev, bool s= tate) >> +static inline bool trace_event_get_cpu_state_dynamic(CPUState *cpu, >> + TraceEvent *ev) >> { >> +#if !defined(TRACE_CPU_INCLUDE_HACK) >> + assert(cpu !=3D NULL); >> assert(ev !=3D NULL); >> - assert(trace_event_get_state_static(ev)); >> - ev->dstate =3D state; >> + return cpu->tb_phys_idx & (((unsigned long)1) << ev->cpu_id); >> +#else >> + abort(); >> +#endif >> } > What exactly is the header conflict? To be honest, I will try recompiling without that specific patch for the ne= xt version (and document why is that necessary), since I had them lying around= for a long time and only checked if they compiled and run as supposed. Thanks, Lluis --=20 "And it's much the same thing with knowledge, for whenever you learn something new, the whole world becomes that much richer." -- The Princess of Pure Reason, as told by Norton Juster in The Phantom Tollbooth