From patchwork Thu Jan 19 10:03:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Junhao He X-Patchwork-Id: 13107661 Return-Path: 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 45B85C38142 for ; Thu, 19 Jan 2023 10:05:03 +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=4CXlC6z7CM65m/EZ1hhK8zcqAxbCqdh+qM8gYjPnhis=; b=Jiviuy4Byniwdw fk5iceKh3npw6pEecXcsnfvBd4s1rsXNHNaCd338MkSSURvEBwW6aYYmNTxfqb86OmQCWLoP/+OqU Kd3EsJrNnWgKHAVonYvTRSD4n7s+2JxVDM0Win92aiSEabBIT631o3KEJ6X7y+iFICflUKez8vtcd wKYlDnxyIcDaUgU6lG197PZwo69p2jmuhGxgp78SKwgqKf/r83xmYDi6SBqTaUO3HIoqzsxjIZsko g5f6/N2iJ3i1zvlZFFhIsvR2VoYDSC0FpEL01yU9wzRMsOs0mkgv5y6rD9Sw+P4f2W4Jl1fkuKzwK MbMHWALDLyPxaMqzuiag==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pIRm5-004Lsj-RQ; Thu, 19 Jan 2023 10:04:01 +0000 Received: from szxga03-in.huawei.com ([45.249.212.189]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pIRlk-004Lih-8I for linux-arm-kernel@lists.infradead.org; Thu, 19 Jan 2023 10:03:42 +0000 Received: from dggpeml500002.china.huawei.com (unknown [172.30.72.57]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4NyJ4c5H7ZzJqDR; Thu, 19 Jan 2023 17:59:12 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by dggpeml500002.china.huawei.com (7.185.36.158) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Thu, 19 Jan 2023 18:03:28 +0800 From: Junhao He To: , , , CC: , , , , , , , , , Subject: [PATCH 0/3] Setting the pmu::capability and modify some code styles Date: Thu, 19 Jan 2023 18:03:04 +0800 Message-ID: <20230119100307.3660-1-hejunhao3@huawei.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 X-Originating-IP: [10.69.192.56] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggpeml500002.china.huawei.com (7.185.36.158) X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230119_020340_575257_0BC41B49 X-CRM114-Status: UNSURE ( 7.68 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Advertise the PERF_PMU_CAP_NO_EXCLUDE capability. And modify some code style, include the following: 1) Simplify the parameters of hisi_pmu_init() function. 2) Use hisi_pmu_init() function to simplify initialization of "hisi_pmu->pmu". Junhao He (3): drivers/perf: hisi: Advertise the PERF_PMU_CAP_NO_EXCLUDE capability drivers/perf: hisi: Simplify the parameters of hisi_pmu_init() drivers/perf: hisi: Extract initialization of "cpa_pmu->pmu" drivers/perf/hisilicon/hisi_uncore_cpa_pmu.c | 16 +--------------- drivers/perf/hisilicon/hisi_uncore_ddrc_pmu.c | 2 +- drivers/perf/hisilicon/hisi_uncore_hha_pmu.c | 2 +- drivers/perf/hisilicon/hisi_uncore_l3c_pmu.c | 2 +- drivers/perf/hisilicon/hisi_uncore_pa_pmu.c | 2 +- drivers/perf/hisilicon/hisi_uncore_pmu.c | 9 ++++++--- drivers/perf/hisilicon/hisi_uncore_pmu.h | 4 ++-- drivers/perf/hisilicon/hisi_uncore_sllc_pmu.c | 2 +- 8 files changed, 14 insertions(+), 25 deletions(-)