Received: from eggs.gnu.org ([140.186.70.92]:45283) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R5yy0-0000oF-Dd for qemu-devel@nongnu.org; Tue, 20 Sep 2011 07:58:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R5yxz-0001Tm-6G for qemu-devel@nongnu.org; Tue, 20 Sep 2011 07:58:24 -0400 Received: from mail-fx0-f45.google.com ([209.85.161.45]:33378) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R5yxy-0001Tf-Vf for qemu-devel@nongnu.org; Tue, 20 Sep 2011 07:58:23 -0400 Received: by fxh13 with SMTP id 13so493353fxh.4 for ; Tue, 20 Sep 2011 04:58:22 -0700 (PDT) Date: Tue, 20 Sep 2011 12:58:19 +0100 From: Stefan Hajnoczi Message-ID: <20110920115819.GC23976@stefanha-thinkpad.localdomain> References: <20110916165933.16620.4383.stgit@ginnungagap.bsc.es> <20110916165938.16620.54932.stgit@ginnungagap.bsc.es> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20110916165938.16620.54932.stgit@ginnungagap.bsc.es> Subject: Re: [Qemu-devel] [PATCH 2/3] trace: [ust] Do not use 'm' in event argument names (used by ust macros) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?iso-8859-1?Q?Llu=EDs?= Vilanova Cc: qemu-devel@nongnu.org On Fri, Sep 16, 2011 at 06:59:38PM +0200, Lluís Vilanova wrote: > Signed-off-by: Lluís Vilanova > --- > trace-events | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/trace-events b/trace-events > index 9d1fbbb..b653d70 100644 > --- a/trace-events > +++ b/trace-events > @@ -418,8 +418,8 @@ milkymist_pfpu_pulse_irq(void) "Pulse IRQ" > # hw/milkymist-softusb.c > milkymist_softusb_memory_read(uint32_t addr, uint32_t value) "addr %08x value %08x" > milkymist_softusb_memory_write(uint32_t addr, uint32_t value) "addr %08x value %08x" > -milkymist_softusb_mevt(uint8_t m) "m %d" > -milkymist_softusb_kevt(uint8_t m) "m %d" > +milkymist_softusb_mevt(uint8_t _m) "m %d" > +milkymist_softusb_kevt(uint8_t _m) "m %d" Do you also see errors with trace events that have no arguments? DECLARE_TRACE(ust_qemu_co_queue_next_bh, TP_PROTO(void), TP_ARGS()); In file included from osdep.c:48:0: trace.h: In function ‘__trace_ust_qemu_co_queue_next_bh’: trace.h:1030:195: error: ‘void’ must be the only parameter trace.h:1030:661: error: expected expression before ‘)’ token trace.h:1030:661: error: too many arguments to function ‘(void (*)(void *))__tp_it_func’ trace.h: At top level: trace.h:1030:661: error: ‘void’ must be the only parameter trace.h:1030:661: error: ‘void’ must be the only parameter On my box this can be fixed by changing the DEFINE_TRACE() like this: DECLARE_TRACE(ust_qemu_co_queue_next_bh, TP_PROTO(), TP_ARGS()); I haven't looked into the details yet but wanted to check. I suspect that different versions of libust might have different quirks here. Stefan