From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34281) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cRTms-0003yN-2E for qemu-devel@nongnu.org; Wed, 11 Jan 2017 20:02:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cRTmo-0000uh-Ub for qemu-devel@nongnu.org; Wed, 11 Jan 2017 20:02:42 -0500 Received: from roura.ac.upc.edu ([147.83.33.10]:48349 helo=roura.ac.upc.es) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cRTmo-0000uJ-IV for qemu-devel@nongnu.org; Wed, 11 Jan 2017 20:02:38 -0500 From: =?utf-8?Q?Llu=C3=ADs_Vilanova?= References: <20170106155543.12827-1-berrange@redhat.com> <20170106155543.12827-3-berrange@redhat.com> <20170110163713.GA19869@stefanha-x1.localdomain> <20170111171202.GG9269@stefanha-x1.localdomain> <20170111171646.GR12072@redhat.com> <6d64c194-bb64-9ac2-3281-9a9329f6a52b@redhat.com> <20170111174045.GT12072@redhat.com> <6ff77c17-5516-e967-27ec-6fb3bf2160d4@redhat.com> Date: Thu, 12 Jan 2017 02:02:36 +0100 In-Reply-To: <6ff77c17-5516-e967-27ec-6fb3bf2160d4@redhat.com> (Paolo Bonzini's message of "Wed, 11 Jan 2017 19:05:00 +0100") Message-ID: <87fukpf5ub.fsf@ac.upc.edu> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v2 02/47] trace: switch io/ directory to modular trace.h file List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: "Daniel P. Berrange" , qemu-devel@nongnu.org, Stefan Hajnoczi Paolo Bonzini writes: [...] > A weird idea: what about doing > -DGENERATED_TRACERS_H=\"hw/scsi/generated-tracers.h\" > and then having > #ifdef GENERATED_TRACE_H > #include GENERATED_TRACE_H > #endif > in include/trace.h? > Then you can use full include path for special cases such as > include/hw/xen/xen_common.h, but the common case is handled directly > with just > #include "trace.h" > which refers to $(srcdir)/include/trace.h? (Take the above with a grain > of salt because I haven't reviewed the patches closely). Feels like too much black magic to me for the benefit of a bit less typing. Cheers, Lluis