From patchwork Wed May 13 18:09:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 186688 Delivered-To: patch@linaro.org Received: by 2002:a92:5b0a:0:0:0:0:0 with SMTP id p10csp687306ilb; Wed, 13 May 2020 11:15:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxiviSve/M/nrJlP0RjQZUSxUosYg11gYLv3REvF+qzsgITO3lbgr/q5fOC9i5WMPkgsldL X-Received: by 2002:ad4:4e4d:: with SMTP id eb13mr871675qvb.169.1589393734439; Wed, 13 May 2020 11:15:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589393734; cv=none; d=google.com; s=arc-20160816; b=T0PmZNt897CKNR7NVuVawr531TQfXif1Chz1EXrqEs18Is1e2JUSxNfdX7PIow6ihW v0/8H33gt2kWn+zIZVqP11LWYnb+OzLDWXD9tdahlegOK1IhFQrPjD0Mz71f3+m8oT7m GqJf6Z5NOFm+VQFLj1gc4q746WYAKqCMGo/2z0h9nLHVX0NZccFokWxka+oiqXY8zqBD MTVNTB3M9r3zv8aWAEv0xfmJhdXuK/Lnwu2jEumBpyD8j6uCXpSYJwaprg6Nm9l7Z4Q7 REI3FpB5FTdFRNEYLIVoC3hsJcxqdcfPQHjWBzqmxG5xFL2ODhAn4AIkepWkkNK6xe3F gzig== 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:message-id:date:subject:to:from:dkim-signature; bh=eV8fASr6zLNPOM9+MqNBiDQt3yfbdc9NuVmqRCKMy8M=; b=02N79uPfaJUv94t6Ab1O2Fbr/eQdSlx8inESHuL/q/jO+UquK8M4srUqPjR4HIbBb0 o3n4HsQf0ykNKheH/IJ0zOs//FWPZ6fbmLFqO5iXYpfMk+bDwfzl27fW4pUFiGMZTAos E86ldlzrO/AzMKsJPWqjiS0rM7FrBfG7VXZYDQ+OSe22Gvz81HiW2C8aUJi4/OEqdHUO phsIDvZh2NtEBQzu6ss1lCE/1dljd2bhLRDV8a4NCHa6r2xScV8b/mwAjCDHeMcEDASn tYcS2LrlMYVSCHpuM7KAfpk24imnmIChC3lcMe8HcaO0F2nAsYZrzxhN4YrA5bfchS4J i0bQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="WCO/A1M8"; 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 10si154826qkg.66.2020.05.13.11.15.34 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 13 May 2020 11:15:34 -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="WCO/A1M8"; 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]:40638 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jYvun-00028W-T4 for patch@linaro.org; Wed, 13 May 2020 14:15:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36392) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jYvpO-0003ed-Nz for qemu-devel@nongnu.org; Wed, 13 May 2020 14:09:58 -0400 Received: from mail-pg1-x533.google.com ([2607:f8b0:4864:20::533]:43249) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jYvpN-0000KX-DB for qemu-devel@nongnu.org; Wed, 13 May 2020 14:09:58 -0400 Received: by mail-pg1-x533.google.com with SMTP id f4so89144pgi.10 for ; Wed, 13 May 2020 11:09:56 -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=eV8fASr6zLNPOM9+MqNBiDQt3yfbdc9NuVmqRCKMy8M=; b=WCO/A1M8QQyXI3lxK3iQZw/57NL7oXtRPtkW2F8krPU9BtddrTZ2uteqna+uE6NKLh jg9mIfmtahAjz2j8ZzjElPp/YvrcFw3KGBEWlsdukB2KvFcBHHYsxMlGEiPlyHqeFYta uJvgO0QMhYb6IJqyQJ9EijV3s8pxDTlz/cIySJuh2mf4tvt5qBoXMFM5OOy3EeyLR8H+ g3XEg3roqPeFOXKJ/24iaUrh7fsGfdHJV8Bc1b+1pJ3tjB03f9AQhwkIi9Y4RfgCZBSB reJeqd3X0BOm3geYhyQQaAiVC2hGulPk7smBue7ksJQBCoN6w0kIyjZv6/f5UZ9drJ5I zROw== 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=eV8fASr6zLNPOM9+MqNBiDQt3yfbdc9NuVmqRCKMy8M=; b=j+/5BFVrkse/uoGLd+Gg5t+0bS9uB/XzamRptNdujOTHi6AdYGI7Tr64CDvOXKxy5W 89jDOKI9JBXmTRZTNwAfFSWpf2ZE6SFFDB5tKvxWbU1JOF3bedU41SFkfDxnOwGJiGUb J3gppdubtpA9tFhxVvSrKJosr3CGQPYKV9UoaZargQFobf0AIAdASl59rVw9Jcpqmu7E x4aGxVoxOgJrWnV1/DuoOwE16VXgnKmY4wpmEx9m/XTgXvbetzJxkmy9pBCKVR5GROtQ xp5taeDtdRM5UB08YMtxm31tUbuqKpCXNcKRO7kTH+DFiV1YtAYEBhCSXapsQtetx7Tp w7SA== X-Gm-Message-State: AOAM530/iZtLWubOdJkjt6NzeLJn+lxOaE7x7Zvkyg/rAdfBz0HPdhef gy3eL6YPY1w17sVi7vK4JhH7TRAElg0= X-Received: by 2002:a63:7519:: with SMTP id q25mr506986pgc.224.1589393395411; Wed, 13 May 2020 11:09:55 -0700 (PDT) Received: from localhost.localdomain (174-21-143-238.tukw.qwest.net. [174.21.143.238]) by smtp.gmail.com with ESMTPSA id i185sm197361pfg.14.2020.05.13.11.09.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 May 2020 11:09:54 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [RISU 0/9] risu cleanups and improvements Date: Wed, 13 May 2020 11:09:44 -0700 Message-Id: <20200513180953.20376-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::533; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x533.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action 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, alex.bennee@linaro.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" This patch set does alter the format of the trace files, and thus means we'll have to re-generate these. However, the space saved for sve trace files is significant, so I consider it worthwhile. In addition, the new --dump option allows one to inspect the contents of the trace file. r~ Richard Henderson (9): Use bool for tracing variables Unify master_fd and apprentice_fd to comm_fd Hoist trace file opening Adjust tracefile open for write Use EXIT_FAILURE, EXIT_SUCCESS Add magic and size to the trace header Compute reginfo_size based on the reginfo aarch64: Reorg sve reginfo to save space Add --dump option to inspect trace files risu.h | 12 ++- risu_reginfo_aarch64.h | 16 +--- comms.c | 26 +++--- reginfo.c | 45 ++++++--- risu.c | 208 ++++++++++++++++++++++++++++++----------- risu_reginfo_aarch64.c | 192 ++++++++++++++++++++----------------- risu_reginfo_arm.c | 6 +- risu_reginfo_i386.c | 8 +- risu_reginfo_m68k.c | 6 +- risu_reginfo_ppc64.c | 6 +- 10 files changed, 342 insertions(+), 183 deletions(-) -- 2.20.1