From patchwork Tue Jun 8 03:33:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "liuqi (BA)" X-Patchwork-Id: 12305247 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3D1B5C47082 for ; Tue, 8 Jun 2021 03:36:13 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id F04A861042 for ; Tue, 8 Jun 2021 03:36:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F04A861042 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=huawei.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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=BkSw0s6v1P/MbMA6Z+Wj9kTw1C7n3KcpIMLi9KtydkU=; b=JXYu1E8zr/q/83 wxK34daCjbqDmWpiVv5BK7cx+lPSrlypqKjlFEShehiZqcOi1YDuJTTYmyLp9nXWd4aE4XdgHpBrW W4EU+SJvTef3CqJdwvA7+cHq5FDaAE4E1YxlC0hAqPkUIdMY3mDF+mBQzGfFlwkZHnPO11kHQegnQ BGNyCgu6bmAg5O18rJEKzsODThAHiQd7dIkUm14l25/Dn4c3dirT/mvzO+ukjcxpx58f9Wrwq41Zf G+hIACbZnh1tP3gIpUXSkluy8n+ogzq1a0JMCZZQ+7seCGjnaE5FuSbxp0JIUvDAHIgRuGO53bZA/ bkaASLWmSWVeDWo8LbxQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lqSVA-006HaD-2q; Tue, 08 Jun 2021 03:34:04 +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 1lqSUt-006HUc-Jb for linux-arm-kernel@lists.infradead.org; Tue, 08 Jun 2021 03:33:49 +0000 Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4FzbLW5TqWzWtRt; Tue, 8 Jun 2021 11:28:51 +0800 (CST) Received: from dggema757-chm.china.huawei.com (10.1.198.199) by dggemv704-chm.china.huawei.com (10.3.19.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2176.2; Tue, 8 Jun 2021 11:33:41 +0800 Received: from localhost.localdomain (10.69.192.56) by dggema757-chm.china.huawei.com (10.1.198.199) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Tue, 8 Jun 2021 11:33:40 +0800 From: Qi Liu To: , CC: Subject: [PATCH v3 0/9] drivers/perf: Use general macro to simplify event attributes Date: Tue, 8 Jun 2021 11:33:12 +0800 Message-ID: <1623123201-45634-1-git-send-email-liuqi115@huawei.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Originating-IP: [10.69.192.56] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To dggema757-chm.china.huawei.com (10.1.198.199) X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210607_203347_851270_DBE7D1CC X-CRM114-Status: UNSURE ( 6.32 ) 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 This patchset applies a general EVENT_ATTR_ID to simplify event attributes in many PMU drivers. Qi Liu (9): perf: Add EVENT_ATTR_ID to simplify event attributes drivers/perf: hisi: Simplify EVENT ATTR macro in HiSilicon PMU driver drivers/perf: Simplify EVENT ATTR macro in SMMU PMU driver drivers/perf: Simplify EVENT ATTR macro in qcom_l2_pmu.c drivers/perf: Simplify EVENT ATTR macro in qcom_l3_pmu.c drivers/perf: Simplify EVENT ATTR macro in xgene_pmu.c drivers/perf: Simplify EVENT ATTR macro in fsl_imx8_ddr_perf.c drivers/perf: Simpilfy EVENT ATTR macro in arm_dsu_pmu.c arm64: perf: Simplify EVENT ATTR macro in perf_event.c arch/arm64/kernel/perf_event.c | 5 +---- drivers/perf/arm_dsu_pmu.c | 2 +- drivers/perf/arm_smmuv3_pmu.c | 7 ++----- drivers/perf/fsl_imx8_ddr_perf.c | 7 ++----- drivers/perf/hisilicon/hisi_uncore_pmu.c | 7 +++---- drivers/perf/hisilicon/hisi_uncore_pmu.h | 2 +- drivers/perf/qcom_l2_pmu.c | 7 ++----- drivers/perf/qcom_l3_pmu.c | 5 +---- drivers/perf/xgene_pmu.c | 11 ++++------- include/linux/perf_event.h | 6 ++++++ 10 files changed, 23 insertions(+), 36 deletions(-)