From patchwork Thu Sep 19 17:10:10 2019 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: 174076 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp1305586ill; Thu, 19 Sep 2019 10:29:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqwFsEQe9LhWDtplL3ieyw7yTLlLewnOaF9rodcnNFZC4EoROQZUMj6eJ3VBa3NAB6oH4Jt2 X-Received: by 2002:a50:ec84:: with SMTP id e4mr17746486edr.193.1568914170209; Thu, 19 Sep 2019 10:29:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568914170; cv=none; d=google.com; s=arc-20160816; b=BXxFHSjFy22mbG2Yr8RGPSWAQG3FayCEqr3FMiXBYsGqGaQDR7rpICktgezYTwdfSW DUiQnNiNyUu3Nhfonolz7oP01s6vzPnc9c/mRKlYLGP9zBPnYjqR4zfq7yW3/rEUjZ5w SoTP2B7KzDXmXjqsjCbPoPUfVxq5ouiH7nMD8HH8feSLvEyeS1sUWLGNH3MqoJqjXlHh nWBetq9WCvOjfbIUuGOgEtR4kQzdlsWz+Ad6c5zbtcGZU9h7+bONKvfN9Nq8VMNJWfy8 CEEd196Twnnu8GRGOFyIeXm+c+md0q69rO644i9cYl3kEu2YCDLkYVUW34mbMUXxOoER 6gPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=Nw6PVinSAUrcIMGIAvVonphLXCK81yYui4fSQKYKk34=; b=mvlcF7VYDgG8uUu5WdXT6/dnv1nlBoKY5UjNYVSUbPMUXUOd5g5YB1QQXkn0Mg/YDN D3dzCFJ1bPiwdZHVqqj8Ynf709uSR64A1zfdSG4YYtYogJUdw/Bz+bK7iX7hYnNXVojG a3frvIX678RenGvb1IL2dQug73cCCv/ogttS0I7YN30LlHVRjnbjKUdlclsy25f3PzPc R8rjtjaFbWPKXPi3Sv7SsvAWIVk0aVQZ1LZTSeIwtASE2z/TU8sD6XWkkfDboQs/nDWy a1uC8wPcpWMDSoOs8DdI73KMdL9+n+mA+rvJvAyUe8sbEeE+S398KtfEsOTjctGlnsIQ 0eHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kbiWDEeS; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id h3si5470518edh.372.2019.09.19.10.29.30 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 19 Sep 2019 10:29:30 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kbiWDEeS; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:46956 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iB0FE-0006XE-GN for patch@linaro.org; Thu, 19 Sep 2019 13:29:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50079) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iB06q-0008Kv-I2 for qemu-devel@nongnu.org; Thu, 19 Sep 2019 13:20:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iB05o-0000Ph-3V for qemu-devel@nongnu.org; Thu, 19 Sep 2019 13:19:45 -0400 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]:55290) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iB05n-0000PM-TO for qemu-devel@nongnu.org; Thu, 19 Sep 2019 13:19:44 -0400 Received: by mail-wm1-x343.google.com with SMTP id p7so5558484wmp.4 for ; Thu, 19 Sep 2019 10:19:43 -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=Nw6PVinSAUrcIMGIAvVonphLXCK81yYui4fSQKYKk34=; b=kbiWDEeS8bEU+aWmEmLOdnmHVuNBhnaxbs48ebsvfYr5M/v6445NXOB9Ny3pkbAN+u eHjmnwLfYokPcl10SoOPq+DNfYHmYABY2elBuHcUlVT0tup0jZDkS61FTxswbzxXuIzK cAyjdw0I+Upo3Ufz90VBZGDR3X/+5f5skAaMs6wVunkE8gT48rro4G21DlTIAJdpEiJS Ze6AQqbUQVgWQJENv82ehEw8Uu9yhXUIFIdyRk8Oxu/JneUp7PHGoESwF90JjUITIb8L 0PkUHfiiwjpfkt/nN+ilhHBCjVePCNDG98xqiLejgsWg8YBDbBR3GisGg/fQ/Hpy2YWd 7Sgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Nw6PVinSAUrcIMGIAvVonphLXCK81yYui4fSQKYKk34=; b=MhZjBfaqucrbskc5WSIVTUFpI2+gol7Q1YHG4TGjgdpZUpzoONL0ozD/7syJ1s17z8 m4qz6PiW7lXDcQ+sIN9YC66ZskCVe++HyF8ytfS2nQtqGp6isvG+EnpUy4hvss3R15i7 SMRPX3PU1XY5kAoGefz9WH9d5OU7rJVeW+UAZR6wYoGXCB87eM+7dt0shrbgmJKswEq4 LmxF+ZtaCKgSKyovqDn7g7r1XO/gFdgpmG893bWT1qZl5EV5Z9npWIqCXMYKR6R79hAk NNqEsjuaDMOQiDanWmaT3hD4T2SNbpAaznYdKI7d3ibi/5eZV6Pcd+YfrT7z1y3/qzn0 zl9g== X-Gm-Message-State: APjAAAUKzIBgd/CIP08FdGtFz3DbyiY2bolio29r3hn9ubNUW6HRouHN MD4nGi/nkP7G4vPkE7ZFOKgE2A== X-Received: by 2002:a1c:99cd:: with SMTP id b196mr3629822wme.83.1568913582855; Thu, 19 Sep 2019 10:19:42 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id u10sm17485610wrg.55.2019.09.19.10.19.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Sep 2019 10:19:40 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id C9EBF1FF9B; Thu, 19 Sep 2019 18:10:16 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v2 11/16] tests/tcg: add simple record/replay smoke test for aarch64 Date: Thu, 19 Sep 2019 18:10:10 +0100 Message-Id: <20190919171015.12681-12-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190919171015.12681-1-alex.bennee@linaro.org> References: <20190919171015.12681-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::343 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, qemu-arm@nongnu.org, =?utf-8?q?Alex_Benn?= =?utf-8?b?w6ll?= , Pavel Dovgalyuk Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" This adds two new tests that re-use the memory test to check basic record replay functionality is still working. We have to define our own runners rather than using the default pattern as we want to change the test name but re-use the memory binary. We declare the test binaries as PHONY as they don't rely exist. [AJB: A better test would output some sort of timer value or other otherwise variable value so we could compare the record and replay outputs and ensure they match] Signed-off-by: Alex Bennée Cc: Pavel Dovgalyuk --- tests/tcg/aarch64/Makefile.softmmu-target | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) -- 2.20.1 diff --git a/tests/tcg/aarch64/Makefile.softmmu-target b/tests/tcg/aarch64/Makefile.softmmu-target index 4c4aaf61dd3..b4b39579634 100644 --- a/tests/tcg/aarch64/Makefile.softmmu-target +++ b/tests/tcg/aarch64/Makefile.softmmu-target @@ -32,3 +32,24 @@ memory: CFLAGS+=-DCHECK_UNALIGNED=1 # Running QEMU_OPTS+=-M virt -cpu max -display none -semihosting-config enable=on,target=native,chardev=output -kernel + +# Simple Record/Replay Test +.PHONY: memory-record +run-memory-record: memory-record memory + $(call run-test, $<, \ + $(QEMU) -monitor none -display none \ + -chardev file$(COMMA)path=$<.out$(COMMA)id=output \ + -icount shift=5$(COMMA)rr=record$(COMMA)rrfile=record.bin \ + $(QEMU_OPTS) memory, \ + "$< on $(TARGET_NAME)") + +.PHONY: memory-replay +run-memory-replay: memory-replay run-memory-record + $(call run-test, $<, \ + $(QEMU) -monitor none -display none \ + -chardev file$(COMMA)path=$<.out$(COMMA)id=output \ + -icount shift=5$(COMMA)rr=replay$(COMMA)rrfile=record.bin \ + $(QEMU_OPTS) memory, \ + "$< on $(TARGET_NAME)") + +TESTS+=memory-record memory-replay