From patchwork Wed May 19 09:51:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "liuqi (BA)" X-Patchwork-Id: 12266801 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=-12.1 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 8D44DC433ED for ; Wed, 19 May 2021 09:54:44 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 5D2CB600CC for ; Wed, 19 May 2021 09:54:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5D2CB600CC 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=desiato.20200630; 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=qumSKH7aS+U5tIhAmSWAAB9tqXxjBy8MAeK2ggQdln0=; b=dER6qx/q76DF4trsL4xw4HB1W/ KGUkPDLCniNCzbH4BtYOfEvwMOc4cizG3LozBZowK4r7ME+/1rtUJHY8EjdQDJThFl/H1iCBvq5Sw lnaYTzF1OIjcOK493su8qHqcwbl8zA/Rz+8Dk4LgpRefEkJ4B2WbT5qLskmXX/SaPT2No/cnk1g8T NhYWx9cy+7zY15uZPJs9wbVqtnH8YlbRuelZV3JRV7yqu2qi8mW+LzTDOfMuW+yMTfxWBGh74OQaQ BuQr11JUatQrZUJsbVu7rLWaSAae7siAaj2I/1QXbO5OxYHiPTlGtZca46doVs2RAUVr6UxWY/Asu a6+t3d0w==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1ljIsH-003Vrl-52; Wed, 19 May 2021 09:52:21 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1ljIsE-003Vqv-Gk for linux-arm-kernel@desiato.infradead.org; Wed, 19 May 2021 09:52:18 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Type:MIME-Version:Message-ID: Date:Subject:CC:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:In-Reply-To:References; bh=S/to8pNE8Jq95JEm8+HXMK0xDI/J+Py7WSxIqB689VE=; b=sFWyEj0VLbl7tEmUd0Rj2ulB/g lGoKYEOrQzVa5OLZ79FwwVhm2Wc/gLMDor3vKqhRHmem6XNzWMTxE/QCxPDaGhJ9P2utJlvy7hN79 HPv/neYGLbY4ziKH9xIaeqFRXCahdvRHkX/EbzrAAPFIn058BQKOpSWEFdkIPNFnERYegbZ3IQNKU 0vbC5NETj4jpNb1qPzll8bbIe6fr0tUGTgaccbr8XPOE1Dz9RQOZ3lbDOBelseuMc5Iey+AnvIfug Rm1tD+fpjt7UnKt2gqzlbUm7gFLLpk7MGk38lPVoea2v3cARmugBxyPI/F44SkQkHG1DjL4RQU45U 3hH0QUPw==; Received: from szxga04-in.huawei.com ([45.249.212.190]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1ljIsB-00FKjW-VT for linux-arm-kernel@lists.infradead.org; Wed, 19 May 2021 09:52:17 +0000 Received: from dggems706-chm.china.huawei.com (unknown [172.30.72.58]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4FlSk41sLPzpfWR; Wed, 19 May 2021 17:48:44 +0800 (CST) Received: from dggema757-chm.china.huawei.com (10.1.198.199) by dggems706-chm.china.huawei.com (10.3.19.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2176.2; Wed, 19 May 2021 17:52:13 +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; Wed, 19 May 2021 17:52:13 +0800 From: Qi Liu To: , CC: Subject: [PATCH v2 0/9] drivers/perf: Use general macro to simplify event attributes Date: Wed, 19 May 2021 17:51:50 +0800 Message-ID: <1621417919-6632-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: dggems706-chm.china.huawei.com (10.3.19.183) 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-20210519_025216_196268_36724F12 X-CRM114-Status: UNSURE ( 7.89 ) 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 apply 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: Remove redundant macro and functions drivers/perf: Remove redundant macro and functions in arm_smmuv3_pmu.c drivers/perf: Remove redundant macro and functions in qcom_l2_pmu.c drivers/perf: Remove redundant macro and functions in qcom_l3_pmu.c drivers/perf: Remove redundant macro and functions in xgene_pmu.c drivers/perf: Remove redundant macro and functions in fsl_imx8_ddr_perf.c drivers/perf: Remove redundant macro and functions in arm_dsu_pmu.c arm64: perf: Remove redundant macro and functions in perf_event.c arch/arm64/kernel/perf_event.c | 175 +++++----- drivers/perf/arm_dsu_pmu.c | 28 +- drivers/perf/arm_smmuv3_pmu.c | 33 +- drivers/perf/fsl_imx8_ddr_perf.c | 80 ++--- drivers/perf/hisilicon/hisi_uncore_ddrc_pmu.c | 22 +- drivers/perf/hisilicon/hisi_uncore_hha_pmu.c | 62 ++-- drivers/perf/hisilicon/hisi_uncore_l3c_pmu.c | 34 +- drivers/perf/hisilicon/hisi_uncore_pa_pmu.c | 6 +- drivers/perf/hisilicon/hisi_uncore_pmu.c | 14 - drivers/perf/hisilicon/hisi_uncore_pmu.h | 2 - drivers/perf/hisilicon/hisi_uncore_sllc_pmu.c | 10 +- drivers/perf/qcom_l2_pmu.c | 37 +- drivers/perf/qcom_l3_pmu.c | 30 +- drivers/perf/xgene_pmu.c | 475 +++++++++++++------------- include/linux/perf_event.h | 6 + kernel/events/core.c | 2 + 16 files changed, 450 insertions(+), 566 deletions(-)