Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp783010rwb; Thu, 19 Jan 2023 02:37:16 -0800 (PST) X-Google-Smtp-Source: AMrXdXuaSlJoN5pxtAJdHRa3Y5kma3J+JKOFIDWETmDqohWeZgAx0PMTQK8SzwDbXxEP11JX2TPr X-Received: by 2002:a17:90b:46c3:b0:229:9351:1b17 with SMTP id jx3-20020a17090b46c300b0022993511b17mr10310129pjb.13.1674124636280; Thu, 19 Jan 2023 02:37:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674124636; cv=none; d=google.com; s=arc-20160816; b=LGf60V6J5JmKF7NWtay8mui/p28R9Tw1tPPQ+6HLC1PHR+fstKWf0C5nHlDnfIbRrr eQH18PJfOrKLKQrQWppD4MUzISnLfjOB8Ls6hxvs5TdFcPTWHYWTsBKZdPXNqocDGjSh 4VwHT8ZMb2gcJqGvWYJNl/MqEMEXe3wucNLJ3809g/vOHClyx0f6LJ8y7sHM/z9bkjlH kAbO3Je1s2xnJt5ASnfGtj4Io4o2Og0hpoxbg/GnXTTGF9hy4obw77QYzfRxDOKchdBw IaoxB02024t0ilDLrIbD2S1TXOI9Qb7vmXKej32Tbde/u6EMpVSkPw57GIBWS/8gBYMP Jfxg== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y6-20020a17090abd0600b00226e74464f7si4704113pjr.108.2023.01.19.02.37.11; Thu, 19 Jan 2023 02:37:16 -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 + 44 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 ); 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 ; 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 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 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: X-Mailing-List: linux-kernel@vger.kernel.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(-) -- 2.33.0