Message ID | 20220927081400.14364-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 3EDCBC6FA83 for <linux-arm-kernel@archiver.kernel.org>; Tue, 27 Sep 2022 08:25:33 +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=mPfqPaPhR9aJqkisIfEOHIf3ZzSjpkRcjAV0hE4nU20=; b=tmNoYi7s2fIF11 VD0aHgvVCi+mBEl0gSs8quSwI/Ysc2CfQ0LbxXQ3wPSZaIVJL++ofh1UfiRkJj7Wo1kiJXgPMKzpp MM+xS6TgID4fOcmP8y9FNS+apdXaKShCKZhfdeHFi0R9HZklBAis1EcBCPdYGKIYOW/z/tqekRLzy WP5jPACYM41weDA3po42Zwja61OcUpaaR3GdIB5acVyGB3+3zxoKjw+4+uLodhMxiVNcBJ5Vh1iJO jaurNbcEwUNqGSvfrlbftt6RhcT43+xp6gyBbV0HvUWEMPKhtUSu0DysJDI1poPXqWEYgK5aNr5me 5EfAKDJ1YVooM3RBgplg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1od5sp-0097Rl-42; Tue, 27 Sep 2022 08:24:03 +0000 Received: from szxga01-in.huawei.com ([45.249.212.187]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1od5le-0094NM-3Z for linux-arm-kernel@lists.infradead.org; Tue, 27 Sep 2022 08:16:40 +0000 Received: from canpemm500009.china.huawei.com (unknown [172.30.72.57]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4McC7K4yrlzpTK4; Tue, 27 Sep 2022 16:13:33 +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; Tue, 27 Sep 2022 16:16:28 +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 v14 0/3] Add perf support for HiSilicon PCIe Tune and Trace device Date: Tue, 27 Sep 2022 16:13:57 +0800 Message-ID: <20220927081400.14364-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: dggems704-chm.china.huawei.com (10.3.19.181) 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-20220927_011638_725178_62409CC0 X-CRM114-Status: GOOD ( 11.82 ) 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 started 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 changelog before v11 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 v13: - Collect tags from John and do few cleanups. Thanks. Link: https://lore.kernel.org/lkml/20220919090045.6778-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