Message ID | 20220919090045.6778-1-yangyicong@huawei.com (mailing list archive) |
---|---|
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C13DFC54EE9 for <linux-arm-kernel@archiver.kernel.org>; Mon, 19 Sep 2022 09:05:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=yKMR2Jud4CAPZDncofUpDkcRih0yXeSGlhLap4qEc0I=; b=Mr2NKhmlCOfm5o 7YhbptSHTpy9SIcQc3brnpUbKmB/7W2lOdLn2Hj4DvUaZtq8fjR8eMwTTMTwV1cSS+/XD9bTsm2US elqhqym2mOMI001kATMHQzWYeqnmlzne/HByRo9ZcFa6REZkb/zxM1u4676OUBJnrADgfSQSYq5bT d7EvjTxFksHJJQY0GGKmm2oRNEFdHYkbKwRfiYHzg2Xod3reEKPMCK8DE4yv5inrNrYOIJ9zLATVX HAoeyrCqNLGusC4W3ayS0f+czZ64SrZNv8uZKZaxCh8NLn7JdWZM9SqvZKAy/m597/bF0sajRFbcK nFUnUKCwIqSi62j7Rgug==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oaCgn-00AX8M-IW; Mon, 19 Sep 2022 09:03:41 +0000 Received: from szxga08-in.huawei.com ([45.249.212.255]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oaCgO-00AWYc-Qh for linux-arm-kernel@lists.infradead.org; Mon, 19 Sep 2022 09:03:20 +0000 Received: from canpemm500009.china.huawei.com (unknown [172.30.72.57]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4MWJWW3Knbz14Qd8; Mon, 19 Sep 2022 16:59:03 +0800 (CST) Received: from localhost.localdomain (10.67.164.66) by canpemm500009.china.huawei.com (7.192.105.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Mon, 19 Sep 2022 17:03:07 +0800 From: Yicong Yang <yangyicong@huawei.com> To: <acme@kernel.org>, <peterz@infradead.org>, <alexander.shishkin@linux.intel.com>, <leo.yan@linaro.org>, <james.clark@arm.com>, <will@kernel.org>, <mathieu.poirier@linaro.org>, <mark.rutland@arm.com>, <suzuki.poulose@arm.com>, <jonathan.cameron@huawei.com>, <john.garry@huawei.com>, <mike.leach@linaro.org> CC: <gregkh@linuxfoundation.org>, <helgaas@kernel.org>, <lorenzo.pieralisi@arm.com>, <shameerali.kolothum.thodi@huawei.com>, <mingo@redhat.com>, <linux-kernel@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org>, <linux-pci@vger.kernel.org>, <linux-perf-users@vger.kernel.org>, <prime.zeng@huawei.com>, <zhangshaokun@hisilicon.com>, <linuxarm@huawei.com>, <yangyicong@hisilicon.com>, <liuqi6124@gmail.com> Subject: [PATCH v13 0/3] Add perf support for HiSilicon PCIe Tune and Trace device Date: Mon, 19 Sep 2022 17:00:42 +0800 Message-ID: <20220919090045.6778-1-yangyicong@huawei.com> X-Mailer: git-send-email 2.31.0 MIME-Version: 1.0 X-Originating-IP: [10.67.164.66] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To canpemm500009.china.huawei.com (7.192.105.203) X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220919_020317_281884_B6E199C2 X-CRM114-Status: GOOD ( 12.06 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
Add perf support for HiSilicon PCIe Tune and Trace device
|
expand
|
From: Yicong Yang <yangyicong@hisilicon.com> This patchset adds the perf tool support for HiSilicon PCIe Tune and Trace device [1]. The device driver makes use of perf AUX trace for tracing TLP (Transaction Layer Packet) headers of PCIe. The trace can be used by `perf record` and the traced data can be decoded by `perf report` with this patchset. The detailed usage is documented in [1]. This is split from the v11 series as suggested to send driver part and perf tool part separately. The perf tool part has no change since v11. The whole changelog can be found at [2]. Since the driver has been accepted, wish to have perf support along with the PTT driver to enable the full support. [1] https://lore.kernel.org/lkml/20220816114414.4092-5-yangyicong@huawei.com/ [2] https://lore.kernel.org/lkml/20220816114414.4092-1-yangyicong@huawei.com/ Change since v12: - Remove unused headers and some minor fixes, Per John. Thanks! Link: https://lore.kernel.org/lkml/20220914075925.48549-1-yangyicong@huawei.com/ Qi Liu (3): perf tool: arm: Refactor event list iteration in auxtrace_record__init() perf tool: Add support for HiSilicon PCIe Tune and Trace device driver perf tool: Add support for parsing HiSilicon PCIe Trace packet tools/perf/arch/arm/util/auxtrace.c | 116 +++++++++-- tools/perf/arch/arm/util/pmu.c | 3 + tools/perf/arch/arm64/util/Build | 2 +- tools/perf/arch/arm64/util/hisi-ptt.c | 188 +++++++++++++++++ tools/perf/util/Build | 2 + tools/perf/util/auxtrace.c | 4 + tools/perf/util/auxtrace.h | 1 + tools/perf/util/hisi-ptt-decoder/Build | 1 + .../hisi-ptt-decoder/hisi-ptt-pkt-decoder.c | 164 +++++++++++++++ .../hisi-ptt-decoder/hisi-ptt-pkt-decoder.h | 31 +++ tools/perf/util/hisi-ptt.c | 192 ++++++++++++++++++ tools/perf/util/hisi-ptt.h | 19 ++ 12 files changed, 703 insertions(+), 20 deletions(-) create mode 100644 tools/perf/arch/arm64/util/hisi-ptt.c create mode 100644 tools/perf/util/hisi-ptt-decoder/Build create mode 100644 tools/perf/util/hisi-ptt-decoder/hisi-ptt-pkt-decoder.c create mode 100644 tools/perf/util/hisi-ptt-decoder/hisi-ptt-pkt-decoder.h create mode 100644 tools/perf/util/hisi-ptt.c create mode 100644 tools/perf/util/hisi-ptt.h