From patchwork Thu Oct 27 15:09:59 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 79707 Delivered-To: patch@linaro.org Received: by 10.80.142.83 with SMTP id 19csp699654edx; Thu, 27 Oct 2016 08:13:36 -0700 (PDT) X-Received: by 10.129.49.69 with SMTP id x66mr5706071ywx.154.1477581215944; Thu, 27 Oct 2016 08:13:35 -0700 (PDT) Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id e132si2863913ybc.224.2016.10.27.08.13.35 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 27 Oct 2016 08:13:35 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:42208 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bzmN5-00060N-3x for patch@linaro.org; Thu, 27 Oct 2016 11:13:35 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42463) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bzmKh-0004aB-NM for qemu-devel@nongnu.org; Thu, 27 Oct 2016 11:11:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bzmKd-0007bW-Qt for qemu-devel@nongnu.org; Thu, 27 Oct 2016 11:11:07 -0400 Received: from mail-wm0-x22b.google.com ([2a00:1450:400c:c09::22b]:35931) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1bzmKd-0007at-Jc for qemu-devel@nongnu.org; Thu, 27 Oct 2016 11:11:03 -0400 Received: by mail-wm0-x22b.google.com with SMTP id b80so40023812wme.1 for ; Thu, 27 Oct 2016 08:11:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=nOD7RtNiEBk59OUkRTxvVwJNHXLij3fTf+i0yN2+b0w=; b=DsDz+iOzqnQ/J+ihaNdmYQ6AMZZNUY85mAmHTlh9mbVOwVwYj7vTO7xeypZvqLebEn xd4W9aHAWqFMxo6bswErEM5MhcIo8iDRmj0vA2Vxjb5Hs/RhdpLPHlyjLTubosCt9IHb uJzbulKzC2aUGCaO0Uk4oTM/3TYdZ1JC5uG1Y= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=nOD7RtNiEBk59OUkRTxvVwJNHXLij3fTf+i0yN2+b0w=; b=Rdqlw1Z/EkIPy/GTyTwu9cvBEZ/q1pXPlbq/CtY28QoyoUIl5RI57rlogCQsCUub0F Nl6aysGmSU4MTjsluQYAza1dtygo/lSErnClY77+rQpfg5/ZQLJwmyiT/0LhkN9qRVQl xtMGCBLh9cqMTzRBUns658mBuQYz3T5yutOpshjfng42YUvciK/La3aOheFkrDNUuQ6Q 1kWmqKe8JaNd1gsqkt0FaCQjpBxqXaJuhEAfw40CdsCkKpjvrSSchGIGDqhj3fo7qwSS 1P3yUdSyUTnjYRua2DS1a6fssjE0zRJfaHu13r+4x3e+9t/AuRrElJJykgqL1DSfdlWF 8+pQ== X-Gm-Message-State: ABUngvfEUBoSZupXyHeISBfwKUsGZrYXlzvygm0sMddYPHzqr8oSZz1XDOYpQSby1IrDGFXm X-Received: by 10.28.165.214 with SMTP id o205mr222909wme.38.1477581062049; Thu, 27 Oct 2016 08:11:02 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id 135sm3796117wmq.8.2016.10.27.08.10.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Oct 2016 08:11:01 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 3AA9E3E01C6; Thu, 27 Oct 2016 16:10:59 +0100 (BST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: pbonzini@redhat.com Date: Thu, 27 Oct 2016 16:09:59 +0100 Message-Id: <20161027151030.20863-3-alex.bennee@linaro.org> X-Mailer: git-send-email 2.10.1 In-Reply-To: <20161027151030.20863-1-alex.bennee@linaro.org> References: <20161027151030.20863-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::22b Subject: [Qemu-devel] [PATCH v5 02/33] translate_all: DEBUG_FLUSH -> DEBUG_TB_FLUSH X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mttcg@listserver.greensocs.com, peter.maydell@linaro.org, claudio.fontana@huawei.com, nikunj@linux.vnet.ibm.com, Peter Crosthwaite , jan.kiszka@siemens.com, mark.burton@greensocs.com, a.rigo@virtualopensystems.com, qemu-devel@nongnu.org, cota@braap.org, serge.fdrv@gmail.com, bobby.prani@gmail.com, rth@twiddle.net, =?UTF-8?q?Alex=20Benn=C3=A9e?= , fred.konrad@greensocs.com Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Make the debug define consistent with the others. The flush operation is all about invalidating TranslationBlocks on flush events. Also fix up the commenting on the other DEBUG for the benefit of checkpatch. Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson --- translate-all.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) -- 2.10.1 diff --git a/translate-all.c b/translate-all.c index 4200869..8907302 100644 --- a/translate-all.c +++ b/translate-all.c @@ -56,10 +56,10 @@ #include "qemu/timer.h" #include "exec/log.h" -//#define DEBUG_TB_INVALIDATE -//#define DEBUG_FLUSH +/* #define DEBUG_TB_INVALIDATE */ +/* #define DEBUG_TB_FLUSH */ /* make various TB consistency checks */ -//#define DEBUG_TB_CHECK +/* #define DEBUG_TB_CHECK */ #if !defined(CONFIG_USER_ONLY) /* TB consistency checks only implemented for usermode emulation. */ @@ -848,7 +848,7 @@ static void do_tb_flush(CPUState *cpu, void *data) goto done; } -#if defined(DEBUG_FLUSH) +#if defined(DEBUG_TB_FLUSH) printf("qemu: flush code_size=%ld nb_tbs=%d avg_tb_size=%ld\n", (unsigned long)(tcg_ctx.code_gen_ptr - tcg_ctx.code_gen_buffer), tcg_ctx.tb_ctx.nb_tbs, tcg_ctx.tb_ctx.nb_tbs > 0 ?