Received: from eggs.gnu.org ([2001:4830:134:3::10]:47700) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkACa-0008A6-6f for qemu-devel@nongnu.org; Wed, 14 Sep 2016 09:26:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bkACW-00010v-3z for qemu-devel@nongnu.org; Wed, 14 Sep 2016 09:26:12 -0400 Received: from roura.ac.upc.edu ([147.83.33.10]:49051 helo=roura.ac.upc.es) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkACV-00010I-Q0 for qemu-devel@nongnu.org; Wed, 14 Sep 2016 09:26:08 -0400 From: =?utf-8?Q?Llu=C3=ADs_Vilanova?= References: <1470756748-18933-1-git-send-email-berrange@redhat.com> <87vay6ed9t.fsf@fimbulvetr.bsc.es> <20160913170804.GD30949@redhat.com> <877faffxzq.fsf@fimbulvetr.bsc.es> <20160914082500.GB28399@redhat.com> Date: Wed, 14 Sep 2016 15:26:06 +0200 In-Reply-To: <20160914082500.GB28399@redhat.com> (Daniel P. Berrange's message of "Wed, 14 Sep 2016 09:25:00 +0100") Message-ID: <87mvjaipe9.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 Tue, Sep 13, 2016 at 08:36:25PM +0200, Llu=C3=ADs Vilanova wrote: >> Daniel P Berrange writes: >>=20 >> > On Thu, Sep 08, 2016 at 03:23:26PM +0200, Llu=C3=ADs Vilanova wrote: >> >> Daniel P Berrange writes: >> >>=20 >> >> > I previously split the global trace-events file up into one file >> >> > per-subdirectory to avoid merge conflict hell. >> >> [...] >> >>=20 >> >> Sorry, I could not find the message where the infrastructure is modif= ied to >> >> provide this. But I think there's a more efficient way to provide mod= ular >> >> auto-generated tracing code without the hierarchical indexing you pro= posed. >>=20 >> > NB, the simpletrace backend requires a globally unique 32-bit integer = ID >> > to be assigned to each trace event, so even with the approach you sugg= est >> > below we still need to be able to assign a global ID for each event. >>=20 >> > So while your suggest below avoids having to pass around the dstate >> > arrays, which is nice, we still have to assign event id offsets to >> > each trace-event file in some manner TBD. >>=20 >> Corect me if I'm wrong, but if we only require these consecutive IDs for >> simpletrace, they don't need to be visible to the tracing headers (these= IDs are >> only used in "trace/generated-tracers.c"). Therefore, we can get them fr= om the >> trace-events-all file, and minimize the complexity of the changes to tra= cetool. > The IDs need to be present in the generated tracers files which are split > up. I'm not sure if I'm just missing what you mean. Changing any of the trace-events files will trigger a recompilation of the = .c files specific to the simpletrace backend, but won't trigger a recompile of= all QEMU files including any of the tracing headers (just the files including t= he "trace.h" corresponding to the modified "trace-events"). Cheers, Lluis