Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp373696pxv; Thu, 24 Jun 2021 09:44:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwnWvyUF6pFFACCnfF2C3wDKSsy0tJwz4QjMnlm9YzE7omKQRaGCspKo9Roz014LktFqmAX X-Received: by 2002:a5e:930d:: with SMTP id k13mr4811898iom.61.1624553047945; Thu, 24 Jun 2021 09:44:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624553047; cv=none; d=google.com; s=arc-20160816; b=YEWab84VsRziVdCNNlAFwjABnXusR1buVfOwEdZnDLVL52e9SW3jpRmhaBtCiumlIS MsP+C5HGblZGOciM9jq/WCJd6KeUMafRjwH0iORz/UhvX3HPTou0K1v6krzG4cH6nca1 AZs16HcY6FFfU53guYWWlmgvAqvx7l3sQiZd9x02yvWomvcBDt/HrsCQdzSwjCobowlI 2x3kUH9Vw1bqBX55pIoUa0LaQ5YfnYEC5Y+s63fckm4mjbF62lg0zZnSScUGOy2S+jhf UXlU3PV29h0D/0KyFKKvAa6vjqQYOOvgBl0tNtaZTNlcZfBlT3ddzMubdJB5xHYK3Hpi Hxgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=/OQWxB8/65ponDdrKVE+sz7dbzu+y0Q4Skf5+0gJGY0=; b=HgEDUHgexaeLAjiPivMRWsvfa6bddNv0wbwLj5AkOAEPkJ0aOs+Hh10gSXWy/wrhzu VNr7j5TPca/oCMhK6wa37g1Zo3qcmDJj51/lKPakfTVIdNd2a/vRQJsULzr7pqsFf4Ld BV91eNb+b+sP/zMvTp2hTWMYEcRXloh4wt240lsG277WmMuIbEcu611XyXo5y9hQEDXy cUGgAaN3eHBUQXZQKuBLXIZubCTJcEbNQW3HhyM7+hKts+VVAUKhBtCQHmBUMNKRqqZB i6/49/iupteeqmLN/5JnzGcanCQ+t/270V4bjMCho3Phuc6P7DcFbV6Ib0SchPRCqGm+ 6NXQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o4si3640921ilf.96.2021.06.24.09.43.54; Thu, 24 Jun 2021 09:44:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232186AbhFXQpc (ORCPT + 99 others); Thu, 24 Jun 2021 12:45:32 -0400 Received: from foss.arm.com ([217.140.110.172]:33952 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229525AbhFXQpb (ORCPT ); Thu, 24 Jun 2021 12:45:31 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 41003ED1; Thu, 24 Jun 2021 09:43:12 -0700 (PDT) Received: from e121896.arm.com (unknown [10.57.13.86]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 5A7203F719; Thu, 24 Jun 2021 09:43:09 -0700 (PDT) From: James Clark To: acme@kernel.org, mathieu.poirier@linaro.org, coresight@lists.linaro.org, leo.yan@linaro.org Cc: al.grant@arm.com, branislav.rankov@arm.com, denik@chromium.org, suzuki.poulose@arm.com, anshuman.khandual@arm.com, James Clark , Mike Leach , John Garry , Will Deacon , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , linux-arm-kernel@lists.infradead.org, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v7 0/2] perf cs-etm: Split Coresight decode by aux records Date: Thu, 24 Jun 2021 17:43:01 +0100 Message-Id: <20210624164303.28632-1-james.clark@arm.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Change applies to perf/core (45237f9898fc) Changes since v6: * Fix for snapshot mode where buffers are wrapped. This fix was done by clamping the aux record size to the size of the buffer (see comment). * Added an extra debugging printout. * Typo/formatting fixes. * Add the change for --dump-raw-trace as a second commit. I planned to do this later, but have now finished it so I'll submit it at the same time. * Did some more thorough testing around the different snapshot scenarios. Decoding snapshot files with duplicate data is improved by this patchset because of the reason mentioned at the end of the testing section. Coincidentally, the same issue is also fixed in "[PATCH v1 0/3] coresight: Fix for snapshot mode" but by not saving duplicates, rather than not decoding them. James Clark (2): perf cs-etm: Split Coresight decode by aux records perf cs-etm: Split --dump-raw-trace by AUX records tools/perf/util/cs-etm.c | 188 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 185 insertions(+), 3 deletions(-) -- 2.28.0