From nobody Sun May 19 00:47:40 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.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; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1568824756; cv=none; d=zoho.com; s=zohoarc; b=ARL8B6OOGsak8uCzAhW4F1cZ6Wkd1LshYBTx6sWXxl0hZea5U7Pz5q60Yya3H+pgnEyGL3vY5nEPa8oWpywnFs0B/YkH5p6BbT3Vzzqzc8+nRQmuyWLJAlqmAK5p6gaWed1kde26/mwegy1jBOfKfxJXmYftpyuQupTDd7Su9VI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1568824756; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To:ARC-Authentication-Results; bh=Nw6PVinSAUrcIMGIAvVonphLXCK81yYui4fSQKYKk34=; b=cTqt7BDVnBkdBGDk8E0jyKoWHtEQRvJPDrYBCVACUpUY0415pkFJmNJimOw0gNoYjWDHBwIQ7tF7mBcQ8lJXGS2pNKXNIUQU1YJlrTZnoqCqimeXkPUpQi5uVBnZNI/S1Jm6HyZTktIHhEuyXnkpHeCryDWOSDGXFpZLXulIlD8= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 15688247566421007.727852283013; Wed, 18 Sep 2019 09:39:16 -0700 (PDT) Received: from localhost ([::1]:60798 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iAcz5-0006Mu-3I for importer@patchew.org; Wed, 18 Sep 2019 12:39:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51355) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iAbyJ-0004It-VN for qemu-devel@nongnu.org; Wed, 18 Sep 2019 11:34:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iAbyI-0002O9-EZ for qemu-devel@nongnu.org; Wed, 18 Sep 2019 11:34:23 -0400 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]:37675) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iAbyI-0002NM-4t for qemu-devel@nongnu.org; Wed, 18 Sep 2019 11:34:22 -0400 Received: by mail-wm1-x343.google.com with SMTP id f16so574210wmb.2 for ; Wed, 18 Sep 2019 08:34:22 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id g1sm5199698wrv.68.2019.09.18.08.34.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Sep 2019 08:34:20 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 68DD11FF87; Wed, 18 Sep 2019 16:34:19 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Nw6PVinSAUrcIMGIAvVonphLXCK81yYui4fSQKYKk34=; b=v9ZHGN5XYk/54c177sVnFKjbEPkLxncglg7jsdAcsu22tqJ+RxztVVzU99jX/ARyrd j8Iv6/hi3IoJwFHhqZ2sWP6l9nLdrs8xJpwZAbZBiwDBjyBNH8I/r+U0b7mzCD9c1qgx xuENWXFtjPL4n0JUsiBYJfi2iB6ByZEgF+eWsspKgsscMry1J1h+LgSC/aISg9GoN37S 1Fkt0a1Be77NA10HE0gs4B3U7xoBwXeDm+iFnbT7RUw7Miw1F3JcVOP0GLvEtHxItICx QPBbXdDfhDEnVbAJX1XnOcDzup+miOZh2HylW5iIrq93biH1ZxY7sK65F4qPzFEK4Ao9 ohQA== 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:mime-version :content-transfer-encoding; bh=Nw6PVinSAUrcIMGIAvVonphLXCK81yYui4fSQKYKk34=; b=I6Je9vEsdRNDn8N5QWljR1LXIaN3CjGUxe19mDjcXdP730hR05oZ9QyNcvvkjwx7mN VVncMG3hyeZgRXQfq3ftFHd9MDR+JR+n+MdSEMQJ61pDqerlDeXn+mZKVrG5klCZqES2 p3zANKxFXzx2Do9zmQkRUnblQQ8P6eUHZsBxoUtDzDemchYsregOD7xso56Yy4dTca1N ns/3AEyBs361LOtQ8f1z0mJoxxcVbOBCLsHBQ23LiUJwuGAwsvXjsAFQP8y1JoZT2o3s CGUI5lLD37d0ARf2bs22EDz8sfWkdOfP1OzR2Uue46ECPTlCKJejeKcFMilB6ruFew3a W61Q== X-Gm-Message-State: APjAAAW4onnRIL28uiF84k2myeWVMUtKdqLCQM6D3+mmXiE8UXzHwP55 AZwM0kJRwhoqfz4pv9FjUorHeg== X-Google-Smtp-Source: APXvYqxeMjaSv9noz3Ge8jCt7NSLGZ448kl2U1xp4tRHmzqkrp5abidEFYFNhFvyzdVn4yTHKq+a/Q== X-Received: by 2002:a05:600c:252:: with SMTP id 18mr3133293wmj.4.1568820860786; Wed, 18 Sep 2019 08:34:20 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Date: Wed, 18 Sep 2019 16:33:35 +0100 Message-Id: <20190918153335.20797-1-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::343 Subject: [Qemu-devel] [PATCH] tests/tcg: add simple record/replay smoke test for aarch64 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: Pavel Dovgalyuk , "open list:ARM TCG CPUs" , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Peter Maydell Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) 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=C3=A9e Cc: Pavel Dovgalyuk --- tests/tcg/aarch64/Makefile.softmmu-target | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) 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+=3D-DCHECK_UNALIGNED=3D1 =20 # Running QEMU_OPTS+=3D-M virt -cpu max -display none -semihosting-config enable=3Do= n,target=3Dnative,chardev=3Doutput -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=3D$<.out$(COMMA)id=3Doutput \ + -icount shift=3D5$(COMMA)rr=3Drecord$(COMMA)rrfile=3Drecord.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=3D$<.out$(COMMA)id=3Doutput \ + -icount shift=3D5$(COMMA)rr=3Dreplay$(COMMA)rrfile=3Drecord.bin \ + $(QEMU_OPTS) memory, \ + "$< on $(TARGET_NAME)") + +TESTS+=3Dmemory-record memory-replay --=20 2.20.1