From nobody Wed Nov 27 04:52:31 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1701809015; cv=none; d=zohomail.com; s=zohoarc; b=Sttj5nEzqistG4xedqgnX1HM+jRyEGF5qWC+7Ek6O3uwfSsB/PF1tpOnFcGs6igioelSceWukBCeZ1kH2/WQbO8ICQer71+uGKLlz3UW1xQwg59Bw/IdUM7SYVDyR+Yl9hywgDyVmx+jqQyr/g1zrMBLIf5+c75lm/VSasarF50= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1701809015; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=D71TFDBoZSdjXR+fUZGSwmpZbsB3q4P2AJtXODOh0vA=; b=S9o4zZJrhqJ9SelDAW6aB4ta4690L4VQIVFD/X02fcF962LB42trTPE7vSsw1hFCqHvKL+Pu29b+zol7b8r+OoqfEW+phKZIDvRhejWv6kNswh9VBfBD4M7sSGTZer1gxRSPJvH4KNAXLCcIBljXliZu+ltXtZyGW82ouZsZ6o8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1701809015299474.0460829476177; Tue, 5 Dec 2023 12:43:35 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rAcED-0007OG-0B; Tue, 05 Dec 2023 15:41:13 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rAcEB-0007Nc-Gh for qemu-devel@nongnu.org; Tue, 05 Dec 2023 15:41:11 -0500 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rAcE8-0002EA-PZ for qemu-devel@nongnu.org; Tue, 05 Dec 2023 15:41:11 -0500 Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-40b595bf5d2so65698105e9.2 for ; Tue, 05 Dec 2023 12:41:08 -0800 (PST) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id h15-20020a05600c314f00b004083a105f27sm23057211wmo.26.2023.12.05.12.41.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 12:41:06 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 5BE1A5FBBF; Tue, 5 Dec 2023 20:41:06 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701808867; x=1702413667; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=D71TFDBoZSdjXR+fUZGSwmpZbsB3q4P2AJtXODOh0vA=; b=CfhvIoLvm6C4u8JYHJkEo9h8OZLpydaCw8nutPNe+2enYO/SVX1MyEdXXGIndiZo3D c60p5g5J3nJSkDaFkjTAoqxTogkIvYjmDBGCs6hdp0xBMACFTg3+LxUs5m0nBHJVI1CH 9QjDVC64ayw5lBIUNiO0piuC2sPMVsJTltSRkY3G7H+CVgP1eFgB5OySXbUHQI1tDu2F kcPhSkNi9UrC0w5J5NGNO/4axHJwOh0lSQtKbgriGmAfjqlq3XtbShHfJC02vPRSReKI i752FpP9OZIGom3GsTmKDft8lrKd2W1GdxkiYnimhroIZKRa0zFe917cTat0B5Khut/x pPKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701808867; x=1702413667; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=D71TFDBoZSdjXR+fUZGSwmpZbsB3q4P2AJtXODOh0vA=; b=riLz9iOMF24sQIKKaNZFIojAQKaJXsBIz0e2EDhLVKqX3GIH2rIibAkWEnfi1FlbR5 AUwFENGC+68mou/FrxbtWwAS1bu8CNVyF7TSBM/WVTdhHMvEkGTIPgfOOWGRtcIZwguY hb53FmzycjN1g3ht476VwDesGy11QPckD7ffyWGZVeuWUwiH7hAjLY+4pa7793npNife zV1FImy5UC6QgntJACtlmoo07027oYAjZGV4UbXm5IfF/3ODm1xC75VrmZcj6GvlqlKb aCeK+MVFwjKdQx+SkYl5Fbg12Gy83MeDkdB8gbOhH4fQ1h9dqDZN/bpO8M0aopkXODXu Bktg== X-Gm-Message-State: AOJu0Yyc3qbDPpwE9R85Cp5aGvBrsK3b7wXvvNLw22UpPCh0ilmQb5jc imc0IRh9HWQXCwY/WW8dIklXJQ== X-Google-Smtp-Source: AGHT+IHxEj5vlrVRGgfPHHAl4A8Z0zJluadJIz8SgvfdQ9SP3Kzygy2jQPUtZdFMLVahlNBmiOh74A== X-Received: by 2002:a05:600c:d7:b0:40c:9d4:4bd9 with SMTP id u23-20020a05600c00d700b0040c09d44bd9mr615321wmm.237.1701808867219; Tue, 05 Dec 2023 12:41:07 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Cleber Rosa , Beraldo Leal , Eduardo Habkost , Richard Henderson , Wainer dos Santos Moschetta , Paolo Bonzini , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , John Snow , Pavel Dovgalyuk , =?UTF-8?q?Alex=20Benn=C3=A9e?= Subject: [PATCH 04/11] scripts/replay_dump: track total number of instructions Date: Tue, 5 Dec 2023 20:40:59 +0000 Message-Id: <20231205204106.95531-5-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231205204106.95531-1-alex.bennee@linaro.org> References: <20231205204106.95531-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::32f; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1701809017431100001 This will help in tracking where we are in the stream when debugging. Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Pavel Dovgalyuk Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Richard Henderson --- scripts/replay-dump.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/replay-dump.py b/scripts/replay-dump.py index 8b9f914534..2212b09322 100755 --- a/scripts/replay-dump.py +++ b/scripts/replay-dump.py @@ -150,10 +150,13 @@ def decode_async(eid, name, dumpfile): =20 return call_decode(async_decode_table, async_event_kind, dumpfile) =20 +total_insns =3D 0 =20 def decode_instruction(eid, name, dumpfile): + global total_insns ins_diff =3D read_dword(dumpfile) - print_event(eid, name, "0x%x" % (ins_diff)) + total_insns +=3D ins_diff + print_event(eid, name, "+ %d -> %d" % (ins_diff, total_insns)) return True =20 def decode_char_write(eid, name, dumpfile): --=20 2.39.2