From patchwork Tue Jul 4 14:48:52 2017 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: 106980 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp1089181qge; Tue, 4 Jul 2017 07:48:56 -0700 (PDT) X-Received: by 10.55.59.66 with SMTP id i63mr32000449qka.15.1499179736759; Tue, 04 Jul 2017 07:48:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1499179736; cv=none; d=google.com; s=arc-20160816; b=GLvMskR+wvpL6yMOESKUfGLebl8NgAsQPbx0jPUSBciaeS3VLNHW8F+1a4xPUNP32H Al9EidKx+U3Pd14Zo64o7FICZUEYXZL4gQkbTEMwPHpwgYhfncp6pyNO6ez85HJ3WNx+ lRNsVBlBwvp8Sn29CQ+8ERm63biiLeEazjW2m7OMWSUvVPjqPfxforss+Pwjeda29uUK TddICSo9IesjTThX0mXZx7FS0PACCro183FgidJ/2LMiv46SMkIkdOCvVFRLIgLomvhN +9L9YcBaQLKr9M9Vo1Lx/rDUlpZDNf1IFBkquPSjyze2hvrUvgQ/ePqT0fcS75esWSlq gEeQ== 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:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=ccxEC857UVq1T4+aZ0Ssasv7IVckYMJq5w7nEe8SDKU=; b=nocVde0q6xCz/e17F1ONK5S3a9+/wEnXCpE6JV2i+JTiDXE6b9qrt12TjQpCcY1RMP OdgQHSR9RJ8XXpNksBjNyte/tVajTkM9Tkuyn6HOcK9fd8LTDUZuyzHD9VWK2aqv6fSd eO4V2cbzSFlULhskXhuXe0auVFv0l2fRcUqRb6JerWfEZxgPDWvGnYVildD9uKkMz9vB eU36naZDHq3xfeyNYbyZc6g98fJuuTiXvFjE2bzgtYuqox2Ia5fWX5VcbyJNbV1+vq9h jPLSs1GRL2VbkSrWfrDYlrbb0aT72EuLa/qRwAUPd2lSYi+M9M7y6r6XYbR+/nYrEg/k igZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.b=RZ/ThJss; 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 sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id 46si9809qtb.24.2017.07.04.07.48.56 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 04 Jul 2017 07:48:56 -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 header.b=RZ/ThJss; 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 sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:41761 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dSP8H-0008Fy-SN for patch@linaro.org; Tue, 04 Jul 2017 10:48:53 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35645) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dSP7h-0008Dd-Qi for qemu-devel@nongnu.org; Tue, 04 Jul 2017 10:48:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dSP7g-000167-D1 for qemu-devel@nongnu.org; Tue, 04 Jul 2017 10:48:17 -0400 Received: from mail-wr0-x22c.google.com ([2a00:1450:400c:c0c::22c]:33575) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dSP7g-00015T-6Y for qemu-devel@nongnu.org; Tue, 04 Jul 2017 10:48:16 -0400 Received: by mail-wr0-x22c.google.com with SMTP id r103so250407626wrb.0 for ; Tue, 04 Jul 2017 07:48:16 -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=ccxEC857UVq1T4+aZ0Ssasv7IVckYMJq5w7nEe8SDKU=; b=RZ/ThJsscRC9ENmyVLPCEwgvl/SZ1KqkS+pLYojQ13DAoTLM+vN1HoNb6fW860eltp bTmteTusT7ytgIWMEg92uIWFBEWQdNqGeBiv7iBntWeuAqAtLV9TflVQOdyMVhb56SnN DYJ1I8bUdWp+aZLyIzYVedL1mIoTyGtrF3k6I= 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=ccxEC857UVq1T4+aZ0Ssasv7IVckYMJq5w7nEe8SDKU=; b=g7GeelJGZnQ4OstIh5u0/yc7mj8r/KqxvTEl4DMLXwt0HkTO7qc6bdc+wkcDGq9ZBo Mcxr8WTSw+YJOiVkNlSWRD1wcCQgc5TRxqQIsLYZ5zIadUSX8TQDPKZtZ2MFS6lZfmGY f74UvbRFyQAumx8tlIutLNumiLJGKFIMhpmQ4hJbGPcPJInsIWAbaQAGwfNydR/DjBJc sPJUOQchOgPCiutneB+U5931SERstXSJb6B4GbU4LCrunGQiJ90BUxr5kgQxy7QDny3O 1wCGP6U7LfVsf2wOjKwzTNB1R5k3pGzH+5U14thezxvuZCl42Xqtzditrchn9EPgEBX7 E3UA== X-Gm-Message-State: AKS2vOwclYmj2a2yjDs/NKKCe4e3hxBEhEfmhULKbEGkmBzBTDdr+JuX BERVW5lblXCMGE9Z X-Received: by 10.223.134.226 with SMTP id 31mr19874003wry.63.1499179694987; Tue, 04 Jul 2017 07:48:14 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id 22sm26587572wru.29.2017.07.04.07.48.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Jul 2017 07:48:09 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id EBDBB3E21F8; Tue, 4 Jul 2017 15:49:10 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Date: Tue, 4 Jul 2017 15:48:52 +0100 Message-Id: <20170704144859.17644-5-alex.bennee@linaro.org> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170704144859.17644-1-alex.bennee@linaro.org> References: <20170704144859.17644-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:400c:c0c::22c Subject: [Qemu-devel] [RISU PATCH 04/11] README: document record/replay support 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: qemu-arm@nongnu.org, =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Alex Bennée --- README | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) -- 2.13.0 diff --git a/README b/README index e0bf5c5..5f16f60 100644 --- a/README +++ b/README @@ -107,6 +107,26 @@ mismatch status to its standard output. NB that in the register dump the r15 (pc) value will be given as an offset from the start of the binary, not an absolute value. +While the master/slave setup works well it is a bit fiddly for running +regression tests and other sorts of automation. For this reason risu +supports recording a trace of its execution to a file. For example: + + risu --master FxxV_across_lanes.risu.bin -t FxxV_across_lanes.risu.trace + +And then playback with: + + risu FxxV_across_lanes.risu.bin -t FxxV_across_lanes.risu.trace + +Ideally it should be built with zlib to compress the trace files which +would otherwise be huge. If building with zlib proves too tricky you +can pipe to stdout and an external compression binary using "-t -". + + risu --master FxxV_across_lanes.risu.bin -t - | gzip --best > trace.file + +and: + + gunzip -c trace.file | risu -t - FxxV_across_lanes.risu.bin + File format ----------- @@ -203,10 +223,6 @@ implementation, for example) but only ARM is tested. * we don't actually compare FP status flags, simply because I'm pretty sure qemu doesn't get them right yet and I'm more interested in fixing gross bugs first. - * there isn't currently any support for a "record and replay -results" mode. This would allow you to record the correct -results from the ARM host once and then test a model implementation -even if you didn't have the corresponding native hardware. * You can compile statically to avoid the requirement for the ARM chroot for qemu testing but you can no longer use gethostbyname() and need to specify your hosts by IP address.