Received: from eggs.gnu.org ([2001:4830:134:3::10]:34089) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXmxF-0006nD-7D for qemu-devel@nongnu.org; Thu, 11 Aug 2016 06:11:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bXmxA-0003Tp-Ug for qemu-devel@nongnu.org; Thu, 11 Aug 2016 06:11:12 -0400 Received: from roura.ac.upc.es ([147.83.33.10]:56103) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXmxA-0003TR-JJ for qemu-devel@nongnu.org; Thu, 11 Aug 2016 06:11:08 -0400 From: =?utf-8?Q?Llu=C3=ADs_Vilanova?= References: <1470756748-18933-1-git-send-email-berrange@redhat.com> <1470756748-18933-61-git-send-email-berrange@redhat.com> <87shucr8vo.fsf@fimbulvetr.bsc.es> <20160810145125.GP13393@redhat.com> <87eg5wppsj.fsf@fimbulvetr.bsc.es> <20160811081317.GA27458@redhat.com> Date: Thu, 11 Aug 2016 12:11:06 +0200 In-Reply-To: <20160811081317.GA27458@redhat.com> (Daniel P. Berrange's message of "Thu, 11 Aug 2016 09:13:18 +0100") Message-ID: <87ziojlio5.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 60/60] trace: update docs to reflect new code generation approach 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 Wed, Aug 10, 2016 at 06:11:24PM +0200, Llu=C3=ADs Vilanova wrote: >> Daniel P Berrange writes: >>=20 >> > On Wed, Aug 10, 2016 at 04:33:47PM +0200, Llu=C3=ADs Vilanova wrote: >> >> Daniel P Berrange writes: [...] >> >> For example, first we concatenate /trace-events, /io/trace-events and >> >> /hw/usb/trace-events into /trace-events-all to produce: >> >>=20 >> >> @group core >> >> @dir / >> >> # contents of /trace-events >> >> @group io >> >> @dir /io >> >> # contents of /io/trace-events >> >> @group hw_usb >> >> @dir /hw/usb >> >> # contents of /hw/usb/trace-events >> >>=20 >> >> Then we can use /trace-events-all to generate all the per-directory t= race.h >> >> files while ensuring a perfectly flat event identifier space (a single >> >> generated-events.c is used). >> >>=20 >> >> This should minimize changes to tracing code and avoid further restri= ctions >> >> (like the "top-level vcpu" one). >>=20 >> > That means when any individual trace file is changed, we re-generate t= he >> > world, which is exactly what this series is designed to avoid. >>=20 >> Nope. We re-generate /trace-events-all, but each individual file generat= ed >> afterwards (taken from the "@dir" directive) will change only if its new >> contents do (the Makefile uses cmp to check if files need updating from = their >> corresponding timestamp file). > The contents will still need to change too if we have a global numbering > space as your suggestion requires. The event groups are the only way to > avoid that. Aha, that's true. I didn't think of that, sorry. Cheers, Lluis