From patchwork Mon Jun 19 10:46:42 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: 105815 Delivered-To: patch@linaro.org Received: by 10.140.91.2 with SMTP id y2csp809041qgd; Mon, 19 Jun 2017 03:46:46 -0700 (PDT) X-Received: by 10.176.78.201 with SMTP id x9mr14646727uah.100.1497869206840; Mon, 19 Jun 2017 03:46:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1497869206; cv=none; d=google.com; s=arc-20160816; b=uxIhqSPCq9w+Mwa9qfBXxvQXGtX/2D5bQfCg/rPr/DeLd3orxnTa4qb2hkrdRJvfSQ t2szDXVdGV9DmX04cyUXhzwhoEjS7T6w6/gSLvSdaU1vrlQBCMdlAf+azEFCv+cU1ETc SEu7CLApUE7VUPUcsZEqYYrk46j6CXZpzXacY3Dr3hW/FrjapNfyNPtekAefw2OELIAr uiLAiiYnPwxUdqJ6eqB8felIBLMi3nlIyzpaRmeynQ8d3RX3t6inEh2m1na/bHad5WvK ovnvBEVtaYxDau96+qsu7RcZqsTSW0pmjHwtXwkz2KB10v9fyPvuHWmtsndReR+nR6Ct S4jg== 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=8luSV/wycc1wjbXWYMtCl3h2Q5OieaqL5+C83fS8qe8=; b=a/iojHdHIOAd2Qjne+ikGuPEQLF9xDDMUyrkUnYZLqNa8RQKYD6hpVG1Rgel9ybPUN VpzFVlQzZm3Xo2u8mukLZXPWiVxxCQu3AEABEHS+FYZfexhR1xCcLqx/mqXgPshpztgb oZfQV0L3/qiE4AMd7eIUZ/y716xEkHokCfZcWDysQZnbpcfO7jIuNS0LdRaFhWGWGt/z ZNfjnqmuKigLdUa3MbEuSQ93QWvJIr/A7Z0Tb+rlCH1GPH3x+fG1N3T98YRfh3xY1GWX mKEQtrt+zupGqrUCV25ZNCaBRcF0UicmqYvQjNMv+8XaJajImy7PX61zFMarF0WfVNze yIaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.b=M/rJWJHV; 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 p124si1484133vkg.143.2017.06.19.03.46.46 for (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 19 Jun 2017 03:46:46 -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=M/rJWJHV; 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]:41648 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dMuCk-0007L6-Bj for patch@linaro.org; Mon, 19 Jun 2017 06:46:46 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40662) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dMuCQ-0007KU-7d for qemu-devel@nongnu.org; Mon, 19 Jun 2017 06:46:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dMuCL-0004oU-Jy for qemu-devel@nongnu.org; Mon, 19 Jun 2017 06:46:26 -0400 Received: from mail-wm0-x230.google.com ([2a00:1450:400c:c09::230]:36432) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dMuCL-0004nL-CN for qemu-devel@nongnu.org; Mon, 19 Jun 2017 06:46:21 -0400 Received: by mail-wm0-x230.google.com with SMTP id m125so75833733wmm.1 for ; Mon, 19 Jun 2017 03:46:20 -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=8luSV/wycc1wjbXWYMtCl3h2Q5OieaqL5+C83fS8qe8=; b=M/rJWJHVU8qBLDQuH6+q6R0+GJ1DRu+SazR/rvI+RvhRz4Imkhob0gz7CGIEuC9B4P uk0c4oEqvY/tucUnorQ4lckvuzZED+5tifHQ+3wHpeKFMyLt/5OAWQuyppS8GMIMwhKS 08XeNUBvHhVH38mmWT1PkDgsa+/1TyagQb6fk= 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=8luSV/wycc1wjbXWYMtCl3h2Q5OieaqL5+C83fS8qe8=; b=eyjnZbvwD5eZdHqLXJ2Jt0MSFAHv4al6ND4Ai66sskfLG+cXlnjdeTu5QsEAgkKkK3 p++UvI+jWrulQAUWnGc5zGM9MoAnYWyRtE0a232v/T9tLlllcF973c3HaklEv4rELuXv ehwcg2hVHQ+rFmlFhYl9A0vrYrNOO+Kmw2d28dHW7CXK4RJxmG3qztjakZoLxO2nf4y/ m8mGrIm0qR7srRubMj0DcQw2ln9ndAHUVcLYVbMBby7JOQ6HSa4v+/sjOShOGYZ+fSNR Ul8b/ZvnU5X803/B2k6MBWySTLRl1lPU+hNgjvG7BC9jAoHSfhc+Qnr4wtn8P4vKtfQ2 qbYw== X-Gm-Message-State: AKS2vOwNJQgqIrLWTbWAgbYz6AEBMKIZnpQY0q4UDheUGbHOFnSPU+Vy beexK+zneLir/I7k X-Received: by 10.28.137.20 with SMTP id l20mr5221805wmd.54.1497869179676; Mon, 19 Jun 2017 03:46:19 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id g3sm10451531wrd.11.2017.06.19.03.46.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Jun 2017 03:46:18 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 125463E05FC; Mon, 19 Jun 2017 11:47:00 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Date: Mon, 19 Jun 2017 11:46:42 +0100 Message-Id: <20170619104655.31104-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:c09::230 Subject: [Qemu-devel] [RISU PATCH v5 00/13] RISU 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, Here is v5 of the RISU record/replay patches. The big changes are: - new patch to sync coding standards - handle stdin/out as a trace input/destination - remove fprintf's from signal handlers - swapped the static build flag with docker I've left the "build with docker" patches in but they can be easily dropped if you want as the --static build patch goes in first. I still think it is a handy solution if the users host cross-arch setup is broken. The alternative is to use the stdin/out pipeline and pass trace data through a (potentially native) compression binary. Details in the commits. Alex Bennée (13): .gitignore: ignore build directories README: document the coding style used for risu all: fix up code consitency build-all-archs: support --static flag 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 + .gitignore | 1 + Makefile | 4 +- README | 9 + build-all-archs | 76 +++++++- comms.c | 325 ++++++++++++++++------------------ configure | 55 +++++- record_traces.sh | 32 ++++ reginfo.c | 189 +++++++++++--------- risu.c | 465 ++++++++++++++++++++++++++++++++----------------- risu.h | 27 ++- risu_aarch64.c | 5 + risu_arm.c | 63 +++---- risu_i386.c | 150 ++++++++-------- risu_m68k.c | 7 +- risu_ppc64.c | 7 +- risu_reginfo_aarch64.c | 60 ++++--- risu_reginfo_aarch64.h | 3 +- risu_reginfo_arm.c | 290 +++++++++++++++--------------- risu_reginfo_arm.h | 3 +- risu_reginfo_m68k.c | 20 +-- risu_reginfo_m68k.h | 3 +- risu_reginfo_ppc64.c | 29 ++- risu_reginfo_ppc64.h | 3 +- run_risu.sh | 66 +++++++ 25 files changed, 1150 insertions(+), 744 deletions(-) create mode 100644 .dir-locals.el create mode 100755 record_traces.sh create mode 100755 run_risu.sh -- 2.13.0