From patchwork Thu Aug 11 15:24:00 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: 73763 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp167923qga; Thu, 11 Aug 2016 08:31:06 -0700 (PDT) X-Received: by 10.55.67.138 with SMTP id q132mr11381642qka.64.1470929466339; Thu, 11 Aug 2016 08:31:06 -0700 (PDT) Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id t63si519741qkb.270.2016.08.11.08.31.06 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 11 Aug 2016 08:31:06 -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]:49165 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXrwn-0001GQ-RZ for patch@linaro.org; Thu, 11 Aug 2016 11:31:05 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57286) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXrqO-0003ZM-Ux for qemu-devel@nongnu.org; Thu, 11 Aug 2016 11:24:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bXrqN-0006YO-0S for qemu-devel@nongnu.org; Thu, 11 Aug 2016 11:24:27 -0400 Received: from mail-wm0-x232.google.com ([2a00:1450:400c:c09::232]:38642) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXrqM-0006YD-Pr for qemu-devel@nongnu.org; Thu, 11 Aug 2016 11:24:26 -0400 Received: by mail-wm0-x232.google.com with SMTP id o80so3109069wme.1 for ; Thu, 11 Aug 2016 08:24:26 -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=/SmksSvuf9YwURlOftRcDuk8ToWRUbALXshKB8S1S1o=; b=Taox3XjzJQxRct3w3Kd7pPJSREbWhJsRte9fFFCqxgQTU+DdKL9ycTV6BGm5Stew6L s85EprW/c3XiZ01oT6qlJUtXjE9LsQ4emL+6KhNRsUsUDqmT9TgmNquTIASIbBulNOM+ ZvHzck1SHFlgUsqUndWp7OwFC/ItVelRCZLzw= 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=/SmksSvuf9YwURlOftRcDuk8ToWRUbALXshKB8S1S1o=; b=bp3nTtWEV/HYC19uAs2XZPnppUb1XHOS8TaUNQ8DS4vX0JNo1RfBhaiSUwDuzABep/ Xgi3ZqeO9LnEJRhexS/Uu/adFmFWPdzmzC9jl/ghZ2uVCvRfQ1t1hDCbhDGMRVTjhRPo fcKETCvytWHQEngNcgfa3l9Il8TsvmKrXlg0txTb6MEEL/zfj+deJC8XRCAMnQAA1N99 WnwBdrQlsuYsRj9YfCYhHE+BCO4hiOjCWue6eE+/t7OWFu3ePIFhPVITWDvPauLlnekS /EWORBNhbcY083wCQ32AqbjVp5kGyyQdEDeJSJnQ41RGod/HUcYq2gyvb53ZzY+d81Rp prOw== X-Gm-Message-State: AEkoousjetdNWvn1LM7HdXmAFnOZdBCs/evMm3n0ZkM2wwG/QECQwDb9FfH+V8t2OoOZR6Xh X-Received: by 10.28.169.82 with SMTP id s79mr10170466wme.87.1470929066099; Thu, 11 Aug 2016 08:24:26 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id 3sm331188wms.1.2016.08.11.08.24.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Aug 2016 08:24:24 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 26C0C3E0251; Thu, 11 Aug 2016 16:24:30 +0100 (BST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: mttcg@listserver.greensocs.com, qemu-devel@nongnu.org, fred.konrad@greensocs.com, a.rigo@virtualopensystems.com, cota@braap.org, bobby.prani@gmail.com, nikunj@linux.vnet.ibm.com Date: Thu, 11 Aug 2016 16:24:00 +0100 Message-Id: <1470929064-4092-5-git-send-email-alex.bennee@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1470929064-4092-1-git-send-email-alex.bennee@linaro.org> References: <1470929064-4092-1-git-send-email-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::232 Subject: [Qemu-devel] [RFC v4 04/28] 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: peter.maydell@linaro.org, claudio.fontana@huawei.com, Peter Crosthwaite , jan.kiszka@siemens.com, mark.burton@greensocs.com, serge.fdrv@gmail.com, pbonzini@redhat.com, =?UTF-8?q?Alex=20Benn=C3=A9e?= , rth@twiddle.net Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Even more important when debugging MTTCG is seeing which vCPU is currently executing. Signed-off-by: Alex Bennée --- 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 f8cfdbd..f8fbf0d 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)) {