Received: from eggs.gnu.org ([2001:4830:134:3::10]:45653) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkA6h-0005mE-MK for qemu-devel@nongnu.org; Wed, 14 Sep 2016 09:20:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bkA6c-0007pO-HF for qemu-devel@nongnu.org; Wed, 14 Sep 2016 09:20:06 -0400 Received: from roura.ac.upc.edu ([147.83.33.10]:41617 helo=roura.ac.upc.es) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkA6c-0007oy-6E for qemu-devel@nongnu.org; Wed, 14 Sep 2016 09:20:02 -0400 From: =?utf-8?Q?Llu=C3=ADs_Vilanova?= References: <1470756748-18933-1-git-send-email-berrange@redhat.com> <87vay6ed9t.fsf@fimbulvetr.bsc.es> <20160908134305.GL30602@redhat.com> <87y431bai0.fsf@fimbulvetr.bsc.es> <20160909120838.GJ25802@redhat.com> <87bmzxb4cd.fsf@fimbulvetr.bsc.es> <20160913175307.GE30949@redhat.com> Date: Wed, 14 Sep 2016 15:20:00 +0200 In-Reply-To: <20160913175307.GE30949@redhat.com> (Daniel P. Berrange's message of "Tue, 13 Sep 2016 18:53:08 +0100") Message-ID: <8737l2k48v.fsf@fimbulvetr.bsc.es> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH for-2.8 v1 00/60] Modular build of trace event files List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Daniel P. Berrange" Cc: qemu-devel@nongnu.org, Stefan Hajnoczi Daniel P Berrange writes: > On Fri, Sep 09, 2016 at 03:16:50PM +0200, Llu=C3=ADs Vilanova wrote: >> > The various _DSTATE variables are still arbitrarily scattered in >> > memory, as opposed to in a contiguous cache friendly array, which >> > is one of the goals of Paolo's original change. >>=20 >> > That said, I'm unclear on how much of the performance win from >> > Paolo's change came from eliminating the struct field de-reference, >> > vs having the contiguous array. I'm guessing most of the win is >> > from the former, the latter only being important if we hit multiple >> > related tracepoints on close succession. >>=20 >> The latter can also be achieved by packing them all together in a single >> section, but I don't know if that's acceptable within portable QEMU code= . For >> example: >>=20 >> bool ___TRACE_EVENTNAME_DSTATE __attribute__((section("dstate_array"))) > Acutally, it should be sufficient if we just generate all the dstate > variables in one place in the .c file - the compiler isn't going to > scatter a set of variables declared one after each other. That should work. Lluis