From patchwork Thu Dec 22 16:03:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Clark X-Patchwork-Id: 3232 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp34367wrn; Thu, 22 Dec 2022 08:08:30 -0800 (PST) X-Google-Smtp-Source: AMrXdXtIeiY8l0fpf3KcnjeKDaeYLeddPYI16yQ0K+u+/wZuZfstirxUMeXf16R3VEdHdwLaEOUP X-Received: by 2002:a17:902:e1d1:b0:18f:af65:307e with SMTP id t17-20020a170902e1d100b0018faf65307emr5715763pla.38.1671725310693; Thu, 22 Dec 2022 08:08:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671725310; cv=none; d=google.com; s=arc-20160816; b=mVoCt80N5WWq6Zb4sTz0RBMSTBfPMe1qj6Wdpzg1DcrSV2idnNLBFLafsW1J1rWmg7 j7IHDTu1HNknbGrQyBaq3j+p6BFoxfyDQ961SywCUJ+nBAoSC/VDQSzYAL3q7RSMQUgv RfqYMU3luDfqz86UwqHgCVxMNa/UCeNfZLQgTK1H2JUCpX28LCUyX3yAyVPlX7JMOGFR n+iTWfo5o5vy3Vy8kJUjTwxvQ8phInH8ujMSXPPLY4GIlZ6p2aXRtvl/9z8BkCltEQS1 8zFDLaZOsuQj9Hh+zSX/vt2HCZumjx9iynmDGaqL0/PrLYkmjXexYouW67F7120dVoqM KX/g== 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=v3loEqlq8S4XvKwGoBPcItIeK1mWy4JOYHwRgKHZHWI=; b=ubYrdIbQnjthvOtEfy8Iemp66nx4oxhEHle57yAw6Dqc/U9AZuDeVbYHy2lz6K6vMw IpzbjvT8BGEdeQb2pbueMWiIsILzL8rareT8czKgR2GI8hBGEZmOGHSwM0OjV1pM9Up+ BDD9jwcu7Ng85oQ8UgZ8lOIHueaoUq4pwgBBZfPicf/ekJq/99cWwwm8s2ccG3/DG3aF RotgcMpBomHTRGfISnpSF3uWN6jfhCqwuybmoSyXw1/ER4NbOb/I7oKYd8qtQNFD6218 YrteiopPTv2v+2/drFklpTiEWRoUunm0DFP1hcxMJayTbJ7pYoa4Xly+t1pPkDtLKODb h8Ww== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u11-20020a170903124b00b00188d892999esi1020176plh.521.2022.12.22.08.08.11; Thu, 22 Dec 2022 08:08:30 -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 S229763AbiLVQHV (ORCPT + 99 others); Thu, 22 Dec 2022 11:07:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229798AbiLVQHT (ORCPT ); Thu, 22 Dec 2022 11:07:19 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id F18741F6; Thu, 22 Dec 2022 08:07:16 -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 44113AD7; Thu, 22 Dec 2022 08:07:57 -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 462723FAFB; Thu, 22 Dec 2022 08:07:13 -0800 (PST) From: James Clark To: linux-perf-users@vger.kernel.org, tanmay@marvell.com Cc: sgoutham@marvell.com, gcherian@marvell.com, lcherian@marvell.com, bbhushan2@marvell.com, James Clark , Mathieu Poirier , Suzuki K Poulose , Mike Leach , Leo Yan , John Garry , Will Deacon , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/7] perf cs_etm: Basic support for virtual/kernel timestamps Date: Thu, 22 Dec 2022 16:03:20 +0000 Message-Id: <20221222160328.3639989-1-james.clark@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752931039426320758?= X-GMAIL-MSGID: =?utf-8?q?1752931039426320758?= Changes since v1: * Add 3 refactor commits for sysfs reading around pmu.c as suggested by Arnaldo here [1] * The dependency on [2] has now reached mainline so is no longer blocking * Rebase on perf/core [1]: https://lore.kernel.org/all/YnqVqq5QW%2Fb14oPZ@kernel.org/ [2]: https://lore.kernel.org/all/20220503123537.1003035-1-german.gomez@arm.com/ German Gomez (4): perf pmu: Add function to check if a pmu file exists perf cs_etm: Keep separate symbols for ETMv4 and ETE parameters perf cs_etm: Record ts_source in AUXTRACE_INFO for ETMv4 and ETE perf cs_etm: Set the time field in the synthetic samples James Clark (3): perf: Remove duplication around EVENT_SOURCE_DEVICE_PATH perf: Use perf_pmu__open_file() and perf_pmu__scan_file() perf: Remove remaining duplication of bus/event_source/devices/... tools/perf/arch/arm/util/auxtrace.c | 5 +- tools/perf/arch/arm/util/cs-etm.c | 91 +++++++++++- tools/perf/arch/x86/util/pmu.c | 12 +- tools/perf/tests/evsel-roundtrip-name.c | 3 +- tools/perf/tests/parse-events.c | 3 +- tools/perf/util/cputopo.c | 9 +- tools/perf/util/cs-etm-base.c | 34 +++-- tools/perf/util/cs-etm.c | 86 +++++++++-- tools/perf/util/cs-etm.h | 13 +- tools/perf/util/pmu-hybrid.c | 27 +--- tools/perf/util/pmu-hybrid.h | 2 +- tools/perf/util/pmu.c | 183 ++++++++++-------------- tools/perf/util/pmu.h | 10 +- 13 files changed, 292 insertions(+), 186 deletions(-) base-commit: 573de010917836f198a4e579d40674991659668b