Message ID | 20230119100307.3660-1-hejunhao3@huawei.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp244477wrn; Thu, 19 Jan 2023 02:14:02 -0800 (PST) X-Google-Smtp-Source: AMrXdXtVuc9VbYnc9XOfL8JOJdV5G9O6vffwWx7VEa9CeBcjsRXXhGDKu6otx8FRsnNMtPnWLuLH X-Received: by 2002:a17:903:22c9:b0:191:e0b0:f8df with SMTP id y9-20020a17090322c900b00191e0b0f8dfmr13943606plg.58.1674123241765; Thu, 19 Jan 2023 02:14:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674123241; cv=none; d=google.com; s=arc-20160816; b=u/hDnp3Q120s+hVVC/3b0tJysVCk0CxBMRotJWBGmzMYJ/ffp8tWN6ahbM/k3VxprC mG9kObJOJcuBuPUyABUqk3KOCjia/xq/yY0qAbLY5M3Qa7Yhcaxqc+11qSkh/DJbX920 1Ql8H4FuhOKt8UymF3fZmGfDXTvgAHnJxc/TFb8e+7u0jkGHpbgOmNZB8YdMl5RuI2PK 6lPiUZJT1DOkxvhN5FYT1X5qmOXVFqUKcv4ZmSgQx/L6S0R1ff1NcJ7xg7hmJmHLs5DA cpmXfDbb0PtfLvYcRoNYHWw9Y5zPlagQAY2aUKJEgFa5nQb0ilRTqisFkLeuUbh8P6XQ n/mg== 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=fdWxiUxgv2UNxb15rqaIqSlRhbv1pjJXtCBipkpr4DQ=; b=co8e4Xj3xREu126A/jAx+OIrQf0ce1hWTsL3S47fwToJTHcPQ7USzrW5iCnzM4492B 55qEqzZjNjiqh86iJaaAhL95J5GhfpW4yxHzJYw71VDaom4LABhKEIofC/qegOPd0MXv fiWio2xZfQZ3yk+RRyxiGhMqhSRHFRdZeaI+6w+6j+pRsQxlvkRnYw04cm14N+7zZkSc L318NYBL+L98A/WU0D+Xvid7qf64Wh1eShXJuuWjRWir9+mjjCbBwmtDHJ5h4jdVcp7Y xS53gCbSQDqYGSx6TsJPlkcXxCxNTe3wB4EXX61ze0DyZa0Crgu2W3gUARCPo62BWA+o f7pA== 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j2-20020a170902758200b001947b3ec2desi15832918pll.234.2023.01.19.02.13.49; Thu, 19 Jan 2023 02:14:01 -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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229712AbjASKFQ (ORCPT <rfc822;pfffrao@gmail.com> + 99 others); Thu, 19 Jan 2023 05:05:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230280AbjASKE2 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 19 Jan 2023 05:04:28 -0500 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 865546C557 for <linux-kernel@vger.kernel.org>; Thu, 19 Jan 2023 02:03:30 -0800 (PST) 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 <hejunhao3@huawei.com> To: <will@kernel.org>, <linux-kernel@vger.kernel.org>, <jonathan.cameron@huawei.com>, <mark.rutland@arm.com> CC: <linux-arm-kernel@lists.infradead.org>, <zhangshaokun@hisilicon.com>, <catalin.marinas@arm.com>, <kernel-team@android.com>, <linuxarm@huawei.com>, <yangyicong@huawei.com>, <f.fangjian@huawei.com>, <shenyang39@huawei.com>, <prime.zeng@hisilicon.com>, <hejunhao3@huawei.com> 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 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII 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-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755445452077077635?= X-GMAIL-MSGID: =?utf-8?q?1755445452077077635?= |
Series |
Setting the pmu::capability and modify some code styles
|
|
Message
hejunhao
Jan. 19, 2023, 10:03 a.m. UTC
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(-)
Comments
On Thu, 19 Jan 2023 18:03:04 +0800, Junhao He wrote: > 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" > > [...] Applied to will (for-next/perf), thanks! [1/3] drivers/perf: hisi: Advertise the PERF_PMU_CAP_NO_EXCLUDE capability https://git.kernel.org/will/c/7f95da9d2dc4 [2/3] drivers/perf: hisi: Simplify the parameters of hisi_pmu_init() https://git.kernel.org/will/c/053b5579dacf [3/3] drivers/perf: hisi: Extract initialization of "cpa_pmu->pmu" https://git.kernel.org/will/c/e126f6f42f89 Cheers,