From patchwork Mon Oct 31 14:13:23 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Paolo Bonzini X-Patchwork-Id: 80182 Delivered-To: patch@linaro.org Received: by 10.140.97.247 with SMTP id m110csp142142qge; Mon, 31 Oct 2016 07:20:55 -0700 (PDT) X-Received: by 10.55.64.80 with SMTP id n77mr26470195qka.173.1477923655408; Mon, 31 Oct 2016 07:20:55 -0700 (PDT) Return-Path: Received: from lists.gnu.org (lists.gnu.org. [208.118.235.17]) by mx.google.com with ESMTPS id s39si8247474qte.140.2016.10.31.07.20.55 for (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 31 Oct 2016 07:20:55 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org Received: from localhost ([::1]:35924 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c1DSI-0006HA-Tw for patch@linaro.org; Mon, 31 Oct 2016 10:20:54 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33328) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c1DLP-00004t-Pf for qemu-devel@nongnu.org; Mon, 31 Oct 2016 10:13:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c1DLM-0002pW-SD for qemu-devel@nongnu.org; Mon, 31 Oct 2016 10:13:47 -0400 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]:33484) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c1DLM-0002ol-Mk for qemu-devel@nongnu.org; Mon, 31 Oct 2016 10:13:44 -0400 Received: by mail-wm0-x243.google.com with SMTP id m83so18599706wmc.0 for ; Mon, 31 Oct 2016 07:13:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=uEOVnDqbuzBRYfJiXlQe8Fq0P6MZLKAnKB9rVrFnaxI=; b=BugsvAGN2A4VRVc8zRoL/mlYn6lKHUgfkKydh+u+fMdz48CCVHQoVadJGam/7nYms8 dzWaNdC5T6BLFML3GobpXu8VAawrYHAOWuXPynsoQGD0ddjqnIB8PSIe5VmwGHCY7ua5 gFqLYgB6cnaAJlxgnK/sTfFvbh30lIoBXUkRlCRpAIEoxbNIZVPY3/hjzZbuNcesqPDN dwuAqhH7t+ITKgEyv/FfemL9PLp+sHhF4o2Zfeo4DXfLRN8bAndr9G03Wfb8lmoe8jjN mjd2Y2p/RMCUfmKxGUuEfIFPnWLCODb0YgsW1NjdmfGa9DlVk4R1Oz2VX8LBItfsOhU8 8Ccw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=uEOVnDqbuzBRYfJiXlQe8Fq0P6MZLKAnKB9rVrFnaxI=; b=Vv64xtNzNDMylvOJjXJN02obIrytGQjOP2cduWyAUlo5g1cfjjjHDba5migBg213Gm byNyKit8mHcadmg9Kpq96EzRWui1k48cdcDeJw8TYw/Nzi+/NFbP1pEg8kNCJ9w4ne/N kjg4SzaZC3PBkEsIPT3KrUbNwWgmNsNFmGlFAaoC6QxVE+BKcmwau4UPFzHIfDcrUS4W axdssV0UaSb9F2DICpwjhnzPFVTyIqdC4eD/mxpssf1QJkG7scNUBpeLyfuPvK1gS9TZ +uLs1GHOEQUI8yYfiWn9ZlsTlsup3T6WF65hg77LoR6wA6OfHyRCTvQ1QUZBLIbufGyK koIA== X-Gm-Message-State: ABUngvcMoKovv4rJu1f/cTGh6ZxcFHSwzOV6FEo+oh82S5m96g5iWR6uNjDvTNC3G1yR/A== X-Received: by 10.28.69.91 with SMTP id s88mr5011182wma.18.1477923223446; Mon, 31 Oct 2016 07:13:43 -0700 (PDT) Received: from donizetti.lan (dynamic-adsl-78-12-246-178.clienti.tiscali.it. [78.12.246.178]) by smtp.gmail.com with ESMTPSA id p13sm25052133wmd.20.2016.10.31.07.13.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 31 Oct 2016 07:13:42 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Mon, 31 Oct 2016 15:13:23 +0100 Message-Id: <1477923215-30323-3-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1477923215-30323-1-git-send-email-pbonzini@redhat.com> References: <1477923215-30323-1-git-send-email-pbonzini@redhat.com> 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::243 Subject: [Qemu-devel] [PULL 02/14] 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: =?UTF-8?q?Alex=20Benn=C3=A9e?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Alex Bennée 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 Message-Id: <20161027151030.20863-3-alex.bennee@linaro.org> Signed-off-by: Paolo Bonzini --- translate-all.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) -- 2.7.4 diff --git a/translate-all.c b/translate-all.c index 76fc18c..f35522e 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. */ @@ -869,7 +869,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 ?