From patchwork Wed Jun 21 15:42:34 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: 106099 Delivered-To: patch@linaro.org Received: by 10.140.91.2 with SMTP id y2csp1994517qgd; Wed, 21 Jun 2017 08:42:42 -0700 (PDT) X-Received: by 10.237.52.38 with SMTP id w35mr623812qtd.142.1498059762044; Wed, 21 Jun 2017 08:42:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498059762; cv=none; d=google.com; s=arc-20160816; b=hZQChFMxluDxqeZvfv1FRt9deN3iEWrwMTxPUcHG+/IKECrDw/fYm9uhX9UK8trDCC IjHwvscd4fyLZffH2QCTlOw5jJ+laPlcHaAJi6cNvoqW8JKIm4dvnW6Qk1/qRwSk1pHo rl42uDU03GsucAESC552oNRjTepDnIstr9y5/cAHLSDOpf0pp4poBjb1C+PKIxm5KPYx Enja6ZfHkNdo69Y9CiBGFdw4S+MVnAqTOY0iyGYTQt204TX39+BPBWK/e26dEXJrpL9Q cHj4dqNdVgZmoTP5bNjhxI8Cdf4gdt5FPD/WxU+hPh9Pun7spRYUXwIiP0rF/drXNHyD 3hYQ== 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:message-id:date:to:from :dkim-signature:arc-authentication-results; bh=6CMef3nBo2usouM31cffeX1ljUdf3+WhdJV3D0FJFII=; b=X9JgzZfg9wZRCbY3O0Z9G0Vep7CI73+7Pt/TufeDb5FNNfnFZ4QjM33TFx2UcOmswL +Vy5aOevovQfGfZ3SjliX/rpouDwSxj1i+dFPU6LJbF88Fl40m6AllOvYUWKhnDkM6ZF J5/AQbsbnTSPBO2w1qxNIByqjYPgglE6oCooQjTfWgrbI9gRYWlrfsiZ1aOz9ckkufdD GLEWb8fPp6tdKaLN8b6HsyPUFCscU+9whjBOCnEURN8BU58SyMNEKFmizE8ZYHJ2CHRC 8QsXDHUJJtxG8qphFwCz3zt3HKUMzWy+dK6PSr1Lsj9ZaYSRfY5D8yOe3Tr25PrB7KEw H1ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.b=c6SMUQDd; 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 x207si8298050qka.229.2017.06.21.08.42.41 for (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 21 Jun 2017 08:42:42 -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=c6SMUQDd; 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]:54741 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dNhmB-0006F1-GO for patch@linaro.org; Wed, 21 Jun 2017 11:42:39 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52444) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dNhlm-0006Cl-D1 for qemu-devel@nongnu.org; Wed, 21 Jun 2017 11:42:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dNhlh-0002pU-PJ for qemu-devel@nongnu.org; Wed, 21 Jun 2017 11:42:14 -0400 Received: from mail-wr0-x230.google.com ([2a00:1450:400c:c0c::230]:36591) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dNhlh-0002pM-GQ for qemu-devel@nongnu.org; Wed, 21 Jun 2017 11:42:09 -0400 Received: by mail-wr0-x230.google.com with SMTP id c11so84692316wrc.3 for ; Wed, 21 Jun 2017 08:42:09 -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:mime-version :content-transfer-encoding; bh=6CMef3nBo2usouM31cffeX1ljUdf3+WhdJV3D0FJFII=; b=c6SMUQDdMSajLYt91eV0rh/nFp9dQujT+lBrpX6usgSjJ/H6YrXjYLKz4NXfPnDdGT 72PsGuWOt+yYcM6lJHrtVmd+YMRuePLuTEXlNXYRo6mS3egiFhleRpT5JK4tkjsA01qU jEokFBJp74Ou4ONDa62/QNxQCU5JaJMX0LkBo= 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=6CMef3nBo2usouM31cffeX1ljUdf3+WhdJV3D0FJFII=; b=NWGpBJSRBMrnhOd5jupI56EJm4ChEQp05d3/6ljK7w9CMfADA/9JwfCu76D56mY4kJ 7eVDhaxiC28FUKcMVrXGROTUedR1tUKsWmFGaUOUiXr9GMup3UsfuJZ+WcYBnlnQA8YG bAJdnRqkEO3wlNwFjoektzAP6jKafSR7kByDQCDEgEK2dOfsz5+AJe+ctX64Uims3JZW mxMrJTATuOJk0FgPgMrjRul2QVBrGCr6SAd1jE+x+WIGNrPfqPIbMGFAo7n0RCTyPNWz lGgoIttWqc5hDDvTVlT53OT4+1E6NLDREtWirKoh2m4sDUu7RocuJ2w9K0s5fkqpXWXn osSg== X-Gm-Message-State: AKS2vOw6q1+O1kqRGZPVT2Hq+7JZQvvNXVPac5o6GKUcUZcusVB1FdRV gSUwNlmd4GEukR5w X-Received: by 10.223.166.196 with SMTP id t62mr22924740wrc.52.1498059728078; Wed, 21 Jun 2017 08:42:08 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id k6sm11548563wre.9.2017.06.21.08.42.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Jun 2017 08:42:07 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 28D573E005D; Wed, 21 Jun 2017 16:42:51 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Date: Wed, 21 Jun 2017 16:42:34 +0100 Message-Id: <20170621154244.28309-1-alex.bennee@linaro.org> X-Mailer: git-send-email 2.13.0 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::230 Subject: [Qemu-devel] [RISU PATCH v6 00/10] Record/replay patches 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: =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Hi Peter, Re-based with review comments addressed and tags added where appropriate. Alex Bennée (10): README: document the coding style used for risu build-all-archs: support cross building via docker risu: a bit more verbosity when starting risu: paramterise send/receive functions risu: add header to trace stream risu: add simple trace and replay support risu: handle trace through stdin/stdout risu: add support compressed tracefiles new: record_traces.sh helper script new: run_risu.sh script .dir-locals.el | 2 + Makefile | 4 +- README | 9 +++ build-all-archs | 46 ++++++++++-- configure | 55 +++++++++++++- contrib/record_traces.sh | 32 +++++++++ contrib/run_risu.sh | 66 +++++++++++++++++ reginfo.c | 120 ++++++++++++++++++------------- risu.c | 181 ++++++++++++++++++++++++++++++++++++++++++----- risu.h | 23 +++++- risu_aarch64.c | 5 ++ risu_arm.c | 5 ++ risu_m68k.c | 5 ++ risu_ppc64.c | 5 ++ 14 files changed, 481 insertions(+), 77 deletions(-) create mode 100644 .dir-locals.el create mode 100755 contrib/record_traces.sh create mode 100755 contrib/run_risu.sh -- 2.13.0