From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:44778) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1Gfv-0006Iw-3d for qemu-devel@nongnu.org; Tue, 14 Aug 2012 08:56:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T1Gfu-0005pw-9P for qemu-devel@nongnu.org; Tue, 14 Aug 2012 08:56:47 -0400 Received: from e06smtp17.uk.ibm.com ([195.75.94.113]:35031) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1Gft-0005pT-Vq for qemu-devel@nongnu.org; Tue, 14 Aug 2012 08:56:46 -0400 Received: from /spool/local by e06smtp17.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 14 Aug 2012 13:56:45 +0100 Received: from d06av09.portsmouth.uk.ibm.com (d06av09.portsmouth.uk.ibm.com [9.149.37.250]) by b06cxnps4076.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q7ECuXSo17432824 for ; Tue, 14 Aug 2012 12:56:33 GMT Received: from d06av09.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av09.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q7ECudK1010095 for ; Tue, 14 Aug 2012 06:56:39 -0600 From: Stefan Hajnoczi Date: Tue, 14 Aug 2012 13:56:25 +0100 Message-Id: <1344948988-8627-4-git-send-email-stefanha@linux.vnet.ibm.com> In-Reply-To: <1344948988-8627-1-git-send-email-stefanha@linux.vnet.ibm.com> References: <1344948988-8627-1-git-send-email-stefanha@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH 3/6] trace: drop unused TraceBufferRecord->next_tbuf_idx field List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Harsh Prateek Bora , qemu-devel@nongnu.org, Stefan Hajnoczi From: Harsh Prateek Bora Signed-off-by: Harsh Prateek Bora Signed-off-by: Stefan Hajnoczi --- trace/simple.c | 2 -- trace/simple.h | 1 - 2 files changed, 3 deletions(-) diff --git a/trace/simple.c b/trace/simple.c index a0e0f05..4fed07f 100644 --- a/trace/simple.c +++ b/trace/simple.c @@ -231,8 +231,6 @@ int trace_record_start(TraceBufferRecord *rec, TraceEventID event, size_t datasi } idx = old_idx % TRACE_BUF_LEN; - /* To check later if threshold crossed */ - rec->next_tbuf_idx = new_idx % TRACE_BUF_LEN; rec_off = idx; rec_off = write_to_buffer(rec_off, &event, sizeof(event)); diff --git a/trace/simple.h b/trace/simple.h index 7e521c1..2ab96a8 100644 --- a/trace/simple.h +++ b/trace/simple.h @@ -29,7 +29,6 @@ void st_flush_trace_buffer(void); typedef struct { unsigned int tbuf_idx; - unsigned int next_tbuf_idx; unsigned int rec_off; } TraceBufferRecord; -- 1.7.10.4