From patchwork Mon Oct 31 14:13:25 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Paolo Bonzini X-Patchwork-Id: 80178 Delivered-To: patch@linaro.org Received: by 10.140.97.247 with SMTP id m110csp141695qge; Mon, 31 Oct 2016 07:19:52 -0700 (PDT) X-Received: by 10.55.87.70 with SMTP id l67mr23417230qkb.298.1477923592546; Mon, 31 Oct 2016 07:19:52 -0700 (PDT) Return-Path: Received: from lists.gnu.org (lists.gnu.org. [208.118.235.17]) by mx.google.com with ESMTPS id 2si17721816qkb.172.2016.10.31.07.19.52 for (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 31 Oct 2016 07:19:52 -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]:35923 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c1DRI-0005S1-2i for patch@linaro.org; Mon, 31 Oct 2016 10:19:52 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33331) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c1DLQ-000056-4P for qemu-devel@nongnu.org; Mon, 31 Oct 2016 10:13:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c1DLP-0002qz-Bi for qemu-devel@nongnu.org; Mon, 31 Oct 2016 10:13:48 -0400 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]:33489) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c1DLP-0002qj-4y for qemu-devel@nongnu.org; Mon, 31 Oct 2016 10:13:47 -0400 Received: by mail-wm0-x241.google.com with SMTP id m83so18600004wmc.0 for ; Mon, 31 Oct 2016 07:13:47 -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=NbEar32d0dd0T0UgJnDBLYQboRjEaulC4RftQyOJnQ4=; b=pOGIfTxfhy01SaYVwAJwxx6E/nmfoLm17R0S95nQqzI9BFxmLgghoUmVgbIBXWQMJ2 kmNlgOjiaJBQtYrTOoXFIh0EBvP2AXTMzz7wkLQh5X/vpYxI+d7uv80Sw9dYzdszAnlE c8Jn3vlNTAc/N0UINP1Qmqcsya1KOTu/jec6xH+Tg/7jim/IEjIxehuXiXOKBPR4CjYE 8EoQzROTCBNvksDQ8rmvd2/AIdoIIC8GwTgy5IxF3KJ7rIsNaioeeGzucbIB/bNFwI0W EYybmMJCRER1QbBXcmJxREgH87cXFtLy+k5SIMDifIUipMnRaoO+QVBx+ERvMWPqh3kv h2kQ== 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=NbEar32d0dd0T0UgJnDBLYQboRjEaulC4RftQyOJnQ4=; b=YKTylCEn+FwqxJDDA2w6gqc6N/tYretu2Awd1GsHMN7mUESW0XDTT0CvXCJYcXJ4bM 6IYwKc/HEJpWTHosRCW/4DKTjw5TDpcJHDntNWYJFlueOGJz8MDI/KKybp2PKhvD8DCV uobA0VYcHEBZ+RA934xJsK+rv9glVrvcBK6EGq3/luo/T05NZLVbuKNoPCUDjkDBTIbj jEarBR4a/GDMwRpIxw/4O0QlLzeq5YUoplVgKfUzEZTbQF5PG38q/Uzgg4q/NvsMf71t 6oRMHx1f/KPZiEnoQKxZPaZvjPmZdRBqreseFz+3IUyegU7XbI1HOQiBqzy7lpJSLo/V I1FQ== X-Gm-Message-State: ABUngvf5hb1fCDWDuzl0W8UFYlYIjAJi5Dzk7FUf+vo4lYSbEsWoE97GXmV0BDDBckiX6Q== X-Received: by 10.194.35.170 with SMTP id i10mr27494122wjj.232.1477923226080; Mon, 31 Oct 2016 07:13:46 -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.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 31 Oct 2016 07:13:45 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Mon, 31 Oct 2016 15:13:25 +0100 Message-Id: <1477923215-30323-5-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::241 Subject: [Qemu-devel] [PULL 04/14] cpu-exec: include cpu_index in CPU_LOG_EXEC messages 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 Even more important when debugging MTTCG is seeing which vCPU is currently executing. Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson Message-Id: <20161027151030.20863-5-alex.bennee@linaro.org> Signed-off-by: Paolo Bonzini --- cpu-exec.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) -- 2.7.4 diff --git a/cpu-exec.c b/cpu-exec.c index c999793..4879c7d 100644 --- a/cpu-exec.c +++ b/cpu-exec.c @@ -143,8 +143,9 @@ static inline tcg_target_ulong cpu_tb_exec(CPUState *cpu, TranslationBlock *itb) uint8_t *tb_ptr = itb->tc_ptr; qemu_log_mask_and_addr(CPU_LOG_EXEC, itb->pc, - "Trace %p [" TARGET_FMT_lx "] %s\n", - itb->tc_ptr, itb->pc, lookup_symbol(itb->pc)); + "Trace %p [%d: " TARGET_FMT_lx "] %s\n", + itb->tc_ptr, cpu->cpu_index, itb->pc, + lookup_symbol(itb->pc)); #if defined(DEBUG_DISAS) if (qemu_loglevel_mask(CPU_LOG_TB_CPU)