Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5146383pxj; Wed, 9 Jun 2021 10:09:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyweGwVVbeC7BkuGAbA/0YBOTiGRDYgKFecbn2Q0h7WcVHvproR/93MR233glwbGU2Sx+BZ X-Received: by 2002:a17:907:6288:: with SMTP id nd8mr856902ejc.223.1623258581200; Wed, 09 Jun 2021 10:09:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623258581; cv=none; d=google.com; s=arc-20160816; b=WNKYzrZUhJ7Mtc5ee8TJeOp/WJl7Y8yr5Uxg0qetI7SUlQYoLVRhhArXsAR1Y6KQU+ jSYyPD5NO7ZX8qwFdBIqrTrMECBU54jAM9ra2GTPrtJvvU75AnROcTpPiFzojh4mwNh2 +elLwvXpBw3iePA31bvpjZE9Mr1GskTWArdNWU9BDcUFfuq3+Eb0xoUaE7V6S2wWXt3o KW5j+3LfJGKqlwJoV1nv9+BnTmwhuHDuscZTi0CWazdEHKoNCNPrzdpyTiT8OHka64ds h6mXIhOqiHaG5R9Od3s45KTSIbOZKU23Z1JmC8ieNXTGO797tK0t/tm+LeSD18GISzls 0/tQ== 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=ivjWUU1qBJdqKJEJWA//lfi2UT0RRa5oWi0I//CKWDU=; b=j63/nX+RFTrnXTU6jSodSRG/1szS3C2GSjDZYGYxg9yERf/HrhcKFFe1hH/88ablTS EOYJhen6vMny/O4RBkNruZKzySgQk1qcwgQoLyDhzuZGVyNhGS4f1/6XWcp/rriKnmCY mziQcYm4PbMZZ00QHBFvYqfnRWWi6IiCeDbJz/IzbRdlj+BQ3UuMhHxudYmrzHorDA+E ZJIqEM9E+XpE15N28rDUdU3KfC/VvdY0rVWGO7ndYY25V+VRfSg0mUiSB3tAWsMsEIcl wlEbCu+NQZ4Ten4eYFxchH/SAfJat5YxG2HNLuhiLFEzlaBW3rvy4jKXBCEQ0/ewIU53 IscA== 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 d26si195141edr.567.2021.06.09.10.09.17; Wed, 09 Jun 2021 10:09:41 -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 S236837AbhFIGn6 (ORCPT + 99 others); Wed, 9 Jun 2021 02:43:58 -0400 Received: from szxga03-in.huawei.com ([45.249.212.189]:5341 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232885AbhFIGn4 (ORCPT ); Wed, 9 Jun 2021 02:43:56 -0400 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 Content-Type: text/plain 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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(-) -- 2.7.4