Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp50063pxb; Wed, 14 Apr 2021 09:10:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy264wsTgtf7t7WLu0mh7/330ylre1WJR8ftG6Ge6gmVl7ESe4l4OKRC9lFjAzWd+hfOwEq X-Received: by 2002:a17:902:be11:b029:e9:3dcf:c2a7 with SMTP id r17-20020a170902be11b02900e93dcfc2a7mr39582909pls.4.1618416623232; Wed, 14 Apr 2021 09:10:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618416623; cv=none; d=google.com; s=arc-20160816; b=i5ap1bcOte7gesQOFchmLz5axbnweXpztTSV0UXYjNHkfgOh5a0vdqSbafLAt89+Fc FXB1W5j/FpLw7vME0OkS31S0ceBiqe8HwUZeCDtxox7RGCKVqoL0QvJVYQtXmXmymyNt Na6rYx8xGpCA1g5B93vU5VvVYVRltyVlH+rJxdUsCQBnd5QlcqnecOwbuhzIWH+6hrb8 eOFddY+VmF3szWr+OyBmp38tYy9RregCiK0ui1QFgnskLu1ophilX6fVnXWUoSz+ZS+Z ZNTTCKCzm0raKEh45ch4OhwGIrTT5gFI686hphPiLMYapViTEj7og9NoUAh399e07hpt P8aQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=9LVRnitArbNMBH932Yag5x8KPBfXHmj7bHAus/9/iDI=; b=sOZ7eP5hBtS+Q7uYQ/pTsWcibpXCJcy35cSmS3w+7aeupW/L0FA7TFCXKjiw+z7g6j 8EGVhBg1K9WyR0BWSp8Rg6tO1Jl+a5JWzqDoYPsbbsAcsZf9H5NJpyFOqItNY0e9YooU swQjW2tS+vVP6lFoP+roQC54Hq26MTqV40jc/BEmEN9KCq9tj1JCRMqr65j3Gj8g3w/5 TnwBZGPdc8mSG9+qvSB9Ipa2hXE9lDovMtw1mGO3+7cIvdxKxPfOkjLetquGC4o5222o SMRa6GUfu754eAsZs7tFv2Ay8trk2KsnEoJoXu7O42o+vy94CQdmKWV0ReiCKqt3vF/n 1KCg== 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g17si1790pjv.19.2021.04.14.09.10.10; Wed, 14 Apr 2021 09:10:23 -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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351595AbhDNNop (ORCPT + 99 others); Wed, 14 Apr 2021 09:44:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:52252 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351586AbhDNNoo (ORCPT ); Wed, 14 Apr 2021 09:44:44 -0400 Received: from disco-boy.misterjones.org (disco-boy.misterjones.org [51.254.78.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B363A611AD; Wed, 14 Apr 2021 13:44:23 +0000 (UTC) Received: from 78.163-31-62.static.virginmediabusiness.co.uk ([62.31.163.78] helo=why.lan) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1lWfob-007RSZ-Jm; Wed, 14 Apr 2021 14:44:21 +0100 From: Marc Zyngier To: kvm@vger.kernel.org, kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org Cc: Mark Rutland , Will Deacon , Rich Felker , Yoshinori Sato , Peter Zijlstra , Arnaldo Carvalho de Melo , Christian Borntraeger , Heiko Carstens , nathan@kernel.org, Viresh Kumar , James Morse , Suzuki K Poulose , Alexandru Elisei , kernel-team@android.com Subject: [PATCH 0/5] perf: oprofile spring cleanup Date: Wed, 14 Apr 2021 14:44:04 +0100 Message-Id: <20210414134409.1266357-1-maz@kernel.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 62.31.163.78 X-SA-Exim-Rcpt-To: kvm@vger.kernel.org, kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, mark.rutland@arm.com, will@kernel.org, dalias@libc.org, ysato@users.sourceforge.jp, peterz@infradead.org, acme@kernel.org, borntraeger@de.ibm.com, hca@linux.ibm.com, nathan@kernel.org, viresh.kumar@linaro.org, james.morse@arm.com, suzuki.poulose@arm.com, alexandru.elisei@arm.com, kernel-team@android.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This small series builds on top of the work that was started with [1]. It recently became apparent that KVM/arm64 is the last bit of the kernel that still uses perf_num_counters(). As I went ahead to address this, it became obvious that all traces of oprofile had been eradicated from all architectures but arm64, s390 and sh (plus a bit of cruft in the core perf code). With KVM fixed, perf_num_counters() and perf_pmu_name() are finally gone. Thanks, M. [1] https://lore.kernel.org/lkml/20210215050618.hgftdmfmslbdrg3j@vireshk-i7 Marc Zyngier (5): KVM: arm64: Divorce the perf code from oprofile helpers arm64: Get rid of oprofile leftovers s390: Get rid of oprofile leftovers sh: Get rid of oprofile leftovers perf: Get rid of oprofile leftovers arch/arm64/kvm/perf.c | 7 +------ arch/arm64/kvm/pmu-emul.c | 2 +- arch/s390/kernel/perf_event.c | 21 --------------------- arch/sh/kernel/perf_event.c | 18 ------------------ drivers/perf/arm_pmu.c | 30 ------------------------------ include/kvm/arm_pmu.h | 4 ++++ include/linux/perf_event.h | 2 -- kernel/events/core.c | 5 ----- 8 files changed, 6 insertions(+), 83 deletions(-) -- 2.29.2