From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46011) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cRjtL-0006Rf-BT for qemu-devel@nongnu.org; Thu, 12 Jan 2017 13:14:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cRjtG-0007QG-MM for qemu-devel@nongnu.org; Thu, 12 Jan 2017 13:14:26 -0500 Received: from roura.ac.upc.edu ([147.83.33.10]:59387 helo=roura.ac.upc.es) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cRjtG-0007Q6-8T for qemu-devel@nongnu.org; Thu, 12 Jan 2017 13:14:22 -0500 From: =?utf-8?Q?Llu=C3=ADs_Vilanova?= References: <148295045448.19871.9819696634619157347.stgit@fimbulvetr.bsc.es> <148295046527.19871.6610919709371885230.stgit@fimbulvetr.bsc.es> <6c1d8806-bb65-8be6-fb95-faf2f0633e21@twiddle.net> Date: Thu, 12 Jan 2017 19:14:19 +0100 In-Reply-To: <6c1d8806-bb65-8be6-fb95-faf2f0633e21@twiddle.net> (Richard Henderson's message of "Tue, 10 Jan 2017 12:08:33 -0800") Message-ID: <87fukoywlg.fsf@ac.upc.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v6 2/7] trace: Make trace_get_vcpu_event_count() inlinable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Richard Henderson Cc: qemu-devel@nongnu.org, Eduardo Habkost , Stefan Hajnoczi Richard Henderson writes: > On 12/28/2016 10:41 AM, Llu=C3=ADs Vilanova wrote: >> @@ -82,6 +83,10 @@ static inline bool trace_event_get_vcpu_state_dynamic= (CPUState *vcpu, >> return trace_event_get_vcpu_state_dynamic_by_vcpu_id(vcpu, vcpu_id); >> } >>=20 >> +static inline uint32_t trace_get_vcpu_event_count(void) >> +{ >> + return trace_next_vcpu_id; >> +} > ... >> @@ -237,7 +237,7 @@ char *trace_opt_parse(const char *optarg); >> * >> * Return the number of known vcpu-specific events >> */ >> -uint32_t trace_get_vcpu_event_count(void); >> +static uint32_t trace_get_vcpu_event_count(void); > This second declaration should be removed. I don't think so. "trace/control.h" contains declarations and documentation, while "trace/control-internal.h" contains inlined implementations (something followed by many other functions there). Thanks, Lluis