Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1727710pxj; Wed, 19 May 2021 12:27:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyibF02zFolc/k+yGON9r9sRJgLC//feX1lDqSAH8caK1CqfRfzehAlt8MqUsB0QoMyBG4N X-Received: by 2002:a05:6e02:1a07:: with SMTP id s7mr577177ild.251.1621452442062; Wed, 19 May 2021 12:27:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621452442; cv=none; d=google.com; s=arc-20160816; b=OgS7xvj3bs+bvDnmygitk1MqzfJknjpWHDMq1ekDcB87jWjYSB4uBKmhwgJu3A5deZ AHHRjZ8S5m2DC8ONNNxy0mr1QA0qw5fPuLT7R7IJqXnlmUUR2TnH4dXMQ5/HAa5vybdx BqcNqlWevRuGkzSlBMMyijCb4FRtjzIaDjaBvr1ZcdMES72GzYAa57SrDUFymMt5gi82 wImtXIhyvWJVBQp53vw1XiO03WGIH/ub70/yLNjbhILk6XGzlP3U2aemwGKHZTSxntPR HUdiflPGa1f2wqvNwM4LpUMESt14HG1tKpoPMZPoLei9uhtF3zxnJtb/5QQ12YSzTi0/ SQPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=S/to8pNE8Jq95JEm8+HXMK0xDI/J+Py7WSxIqB689VE=; b=VI4PaekgkVpef8UKd7/a8AZP0pv0QywwjjJ/fsIExAg32uqq9X2MgxzlVPmIjYi+29 UBP60YyjvIK2AEMvKwuD6B0/oRD0XEOAwbE+7cSs8J+nlQ5QCQBrbP7XGyJQTAZIV+yt ap/RnljHytynFlBwIKiYICyemVAVyh3hmMYAPwtU4byu8L0YtRHK8/XCqB0aXWn6Gomc H2rn/oOQHdxGGfgdEb4vyNxjvbBR9vKt5YKk9fSebPrUL+THAlz6Dzu1Yww7ychP4fCY ep6yFK6c9njtwxMpneWKdokyF9fNwzVmTmEkzOdaQ/aUhfqQ8UrUno+R6xltUi/d7D3N dAkQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s21si223788jaj.47.2021.05.19.12.27.09; Wed, 19 May 2021 12:27:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345273AbhESJxf (ORCPT + 99 others); Wed, 19 May 2021 05:53:35 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:4747 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343526AbhESJxe (ORCPT ); Wed, 19 May 2021 05:53:34 -0400 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 Content-Type: text/plain 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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(-) -- 2.7.4