From patchwork Thu Jun 24 11:28:51 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Prerna Saxena X-Patchwork-Id: 107841 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o5OBT1Jr021678 for ; Thu, 24 Jun 2010 11:29:02 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754964Ab0FXL3A (ORCPT ); Thu, 24 Jun 2010 07:29:00 -0400 Received: from e28smtp05.in.ibm.com ([122.248.162.5]:46901 "EHLO e28smtp05.in.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754824Ab0FXL27 (ORCPT ); Thu, 24 Jun 2010 07:28:59 -0400 Received: from d28relay01.in.ibm.com (d28relay01.in.ibm.com [9.184.220.58]) by e28smtp05.in.ibm.com (8.14.4/8.13.1) with ESMTP id o5OBStCQ007553 for ; Thu, 24 Jun 2010 16:58:55 +0530 Received: from d28av01.in.ibm.com (d28av01.in.ibm.com [9.184.220.63]) by d28relay01.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id o5OBStHo348338 for ; Thu, 24 Jun 2010 16:58:55 +0530 Received: from d28av01.in.ibm.com (loopback [127.0.0.1]) by d28av01.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id o5OBSs5m007034 for ; Thu, 24 Jun 2010 16:58:55 +0530 Received: from zephyr ([9.124.35.39]) by d28av01.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id o5OBSsEN007031; Thu, 24 Jun 2010 16:58:54 +0530 Date: Thu, 24 Jun 2010 16:58:51 +0530 From: Prerna Saxena To: qemu-devel@nongnu.org Cc: Anthony Liguori , Stefan Hajnoczi , kvm@vger.kernel.org, Jan Kiszka , Luiz Capitulino , Maneesh Soni , Ananth Narayan Subject: [RFC v4][PATCH 1/3] Change type declarations Message-ID: <20100624165851.76e6ab48@zephyr> In-Reply-To: <20100624164930.7859b779@zephyr> References: <20100624164930.7859b779@zephyr> Organization: IBM X-Mailer: Claws Mail 3.7.5 (GTK+ 2.16.6; i586-redhat-linux-gnu) Mime-Version: 1.0 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Thu, 24 Jun 2010 11:29:02 +0000 (UTC) diff --git a/simpletrace.c b/simpletrace.c index 2fec4d3..b488380 100644 --- a/simpletrace.c +++ b/simpletrace.c @@ -19,7 +19,7 @@ static TraceRecord trace_buf[TRACE_BUF_LEN]; static unsigned int trace_idx; static FILE *trace_fp; -static void trace(TraceEvent event, unsigned long x1, +static void trace(TraceEventID event, unsigned long x1, unsigned long x2, unsigned long x3, unsigned long x4, unsigned long x5) { TraceRecord *rec = &trace_buf[trace_idx]; @@ -43,22 +43,22 @@ static void trace(TraceEvent event, unsigned long x1, } } -void trace1(TraceEvent event, unsigned long x1) { +void trace1(TraceEventID event, unsigned long x1) { trace(event, x1, 0, 0, 0, 0); } -void trace2(TraceEvent event, unsigned long x1, unsigned long x2) { +void trace2(TraceEventID event, unsigned long x1, unsigned long x2) { trace(event, x1, x2, 0, 0, 0); } -void trace3(TraceEvent event, unsigned long x1, unsigned long x2, unsigned long x3) { +void trace3(TraceEventID event, unsigned long x1, unsigned long x2, unsigned long x3) { trace(event, x1, x2, x3, 0, 0); } -void trace4(TraceEvent event, unsigned long x1, unsigned long x2, unsigned long x3, unsigned long x4) { +void trace4(TraceEventID event, unsigned long x1, unsigned long x2, unsigned long x3, unsigned long x4) { trace(event, x1, x2, x3, x4, 0); } -void trace5(TraceEvent event, unsigned long x1, unsigned long x2, unsigned long x3, unsigned long x4, unsigned long x5) { +void trace5(TraceEventID event, unsigned long x1, unsigned long x2, unsigned long x3, unsigned long x4, unsigned long x5) { trace(event, x1, x2, x3, x4, x5); } diff --git a/tracetool b/tracetool index 9ea9c08..0dc7f1b 100755 --- a/tracetool +++ b/tracetool @@ -123,13 +123,13 @@ linetoc_end_nop() linetoh_begin_simple() { cat <