From patchwork Wed Jun 9 06:40:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "liuqi (BA)" X-Patchwork-Id: 12309109 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.0 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,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 49CAAC47095 for ; Wed, 9 Jun 2021 06:44:34 +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 1B78061249 for ; Wed, 9 Jun 2021 06:44:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1B78061249 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=/tVatiCm7MbMFUYfPoqz4KhXa1ElCVFpApsyEthvx58=; b=zLA/RsrQFArf3v esTrrJVYUAvDlxAMRzMlAtgXLq9DGrYUcftroKjMHwh6UnRMmgSM0OLq2YQY16c6lGAiKq9A5jBHf oEuvWKHpWcay8AhcNXUcoC+1DiNvr5kMqSTiICwo8B5wM1VTk3bzEUlb+zxZvt6UNy9g91HMYHRbC mSNaKjmhf8EMTV7TMa/CKYKkOjhnecEnPXeeFaIX3RkAu9dASgbeRA7e77rR7a5gZy8zVT8wwokLG tgGQ8BsMVxoMbHAySy7v1CWLBr0ReoQkiTFbWh9mL4x09y9edfgb2dYL5B0gtlTTCFeoXARofotgc LsSUUjPEXYIHKrilPFqQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lqrvP-00BwTI-6Q; Wed, 09 Jun 2021 06:42:51 +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 1lqruk-00BwFQ-Re for linux-arm-kernel@lists.infradead.org; Wed, 09 Jun 2021 06:42:14 +0000 Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.56]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4G0HVR6RtKz6vkV; Wed, 9 Jun 2021 14:38:07 +0800 (CST) Received: from dggema757-chm.china.huawei.com (10.1.198.199) by dggemv703-chm.china.huawei.com (10.3.19.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2176.2; Wed, 9 Jun 2021 14:41:59 +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, 9 Jun 2021 14:41:58 +0800 From: Qi Liu To: , , CC: Subject: [PATCH v4 0/7] drivers/perf: Use general macro to simplify event attributes Date: Wed, 9 Jun 2021 14:40:56 +0800 Message-ID: <1623220863-58233-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-20210608_234211_212493_C66D6342 X-CRM114-Status: UNSURE ( 6.93 ) 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. Changes since v3: - Drop changes in arm_dsu_pmu.c and hisi_uncore_pmu.c. - Link: https://lore.kernel.org/linux-arm-kernel/1623123201-45634-1-git-send-email-liuqi115@huawei.com/ Changes since v2: - Add _func parameter in common marcro, so string can be determined by driver. - Link: https://lore.kernel.org/linux-arm-kernel/1621417919-6632-1-git-send-email-liuqi115@huawei.com/ Changes since v1: - +CC maintainers of each PMU driver. - Link: https://lore.kernel.org/linux-arm-kernel/1621322628-9945-1-git-send-email-liuqi115@huawei.com/ Qi Liu (7): perf: Add EVENT_ATTR_ID to simplify event attributes 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 arm64: perf: Simplify EVENT ATTR macro in perf_event.c arch/arm64/kernel/perf_event.c | 5 +---- drivers/perf/arm_smmuv3_pmu.c | 7 ++----- drivers/perf/fsl_imx8_ddr_perf.c | 7 ++----- 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 ++++++ 7 files changed, 18 insertions(+), 30 deletions(-)