Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6980019rwb; Mon, 12 Dec 2022 08:36:20 -0800 (PST) X-Google-Smtp-Source: AA0mqf5oVLpMYRqmmsVg0GqnZxeYR2/NPKNGdo0NjEssJErvi8RGMT+CR4JdmisGySgBx4wBh/2p X-Received: by 2002:a17:902:8a96:b0:189:df3c:1bc1 with SMTP id p22-20020a1709028a9600b00189df3c1bc1mr15906107plo.46.1670862980358; Mon, 12 Dec 2022 08:36:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670862980; cv=none; d=google.com; s=arc-20160816; b=jRvoKT1cMQBhwM3bNOoRtz+3wm5ytfzc3qtF+eTyknfEzOcgBhDSxAj+OKYt2CJgLg 3j3zBdTtKVpMy3q6U5NuwYe861O8erxbGXYknlSZEFK5yrrG511ikjnDV0PQ4P0H5r0H bhrpIkw4dsFHgv9RbA/O2hzoZEQAph4SChjBz3Ti3SvYdGwZSeDe9O5Fepi+M83Cyy0/ rM48Oh0FGm1Mh7LMjGcOrfg6NFe0YpvKSRciP8EDn5HxlKijyRFzQxR2TcLeInxN2S0n nWQeCVlyDl4O5lMhx9691TdY7KI2z0foeejcc/OV40Bp0o8TDXYoySb179J8MHGFLwMI Ls2A== 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=kKx7c63pWo19zre9zw5wzMy8hC5oie/fNce3OYQ3XLs=; b=AMYB6PJ8M4M+arfvMApLqOEQBg7U0I1YWQJU4dgI7pMiVnUW93k7P1puVnAXE2ZF3j aIWukih37/kMTUhu8RFKAWkcIiB0sxP2nmFa9Y3JUUtDV+jd7mFIfi9rAbGNJlOvs5qY IOkSO05MQKmlGK4YjHqBCwrOsduMXTaSAwJSi3OzOsIf6BeP8BsUY8dtF5/Pht8r8bDU n/NnSxx0/sPRjBA7e4GkGM6fbkWMYQGSXgM99IjU+kan8/ISYZRczqTNOjh4J3R0NBut /wzH41pGyXHqP9Z+lB88AYRLULBf9tRHLYF6uwOQeZR8LcG4sBE4Y5iau60Y8tgVR6Ko W24w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n10-20020a170902e54a00b00189e752b2f8si10796507plf.328.2022.12.12.08.36.11; Mon, 12 Dec 2022 08:36:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S232631AbiLLPzr (ORCPT + 74 others); Mon, 12 Dec 2022 10:55:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232616AbiLLPzn (ORCPT ); Mon, 12 Dec 2022 10:55:43 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 079DC64EE; Mon, 12 Dec 2022 07:55:39 -0800 (PST) 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 E147C1FB; Mon, 12 Dec 2022 07:56:19 -0800 (PST) Received: from e126815.warwick.arm.com (e126815.arm.com [10.32.32.26]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id CFDCE3F71E; Mon, 12 Dec 2022 07:55:36 -0800 (PST) From: James Clark To: linux-perf-users@vger.kernel.org Cc: Al.Grant@arm.com, James Clark , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , John Garry , Will Deacon , Mike Leach , Leo Yan , Mathieu Poirier , Suzuki K Poulose , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, coresight@lists.linaro.org Subject: [PATCH 0/5] perf: cs-etm: Print auxtrace info even if OpenCSD isn't linked Date: Mon, 12 Dec 2022 15:55:08 +0000 Message-Id: <20221212155513.2259623-1-james.clark@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The auxtrace info header can be useful for debugging, and at the moment it's possible to record a file without OpenCSD linked but not view the header even though it should be possible to do. This patchset tidies up some of the related functions and improves some of the error messages before making the above possible in the last commit. Testing done: * Compiled on x86 and Arm both with and without CORESIGHT=1 * Ran the Coresight tests Applies to perf/core (0c3852adae8) James Clark (5): perf: cs-etm: Print unknown header version as an error perf: cs-etm: Remove unused stub methods perf: cs-etm: Tidy up auxtrace info header printing perf: cs-etm: Cleanup cs_etm__process_auxtrace_info() perf: cs-etm: Print auxtrace info even if OpenCSD isn't linked tools/perf/util/Build | 1 + tools/perf/util/cs-etm-base.c | 174 ++++++++++++++++++++++++++++ tools/perf/util/cs-etm.c | 208 +++------------------------------- tools/perf/util/cs-etm.h | 46 ++------ 4 files changed, 200 insertions(+), 229 deletions(-) create mode 100644 tools/perf/util/cs-etm-base.c -- 2.25.1