Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp196731pxb; Thu, 14 Jan 2021 03:40:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJxr5KLQmPilG9FmTMHxrSK1ull84NdmUjOHSOyE0K0KNiBUNsvpQWol3ocnXRvFzbHF5H+2 X-Received: by 2002:a17:906:f9c1:: with SMTP id lj1mr3711652ejb.256.1610624423700; Thu, 14 Jan 2021 03:40:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610624423; cv=none; d=google.com; s=arc-20160816; b=nZE9nbPYI43kU9l89v6+qXEhRJL7BUYYIftZOoz+ngKbBY21kHdFJajhV3Bl++oh1H vVuYevihpTCvAXKhCxQaSEz7XbBAgrVNZ9EzAK8H/sOfSK2y4xdilaH5yXbEhRBIKhSE 16GHP61Kn3I9hedMk7qxjWt01ocj162q51aa3ElQifVIakfeC68334jei2ViGTUNBvSc t32NRAdTdn53sadBV0X6M4tztXtVssEWm0c05HjWyy2K32IKa6ON+zSgWvMAslY/vilP Qn72bYgRdKBBGn4yvPcgnDi0E4aBiye86ZDuRinLlB5I00iduGc6aubvgp+cpdSz2vAS fInQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=6MDUnINPotxk6emPsj6PbUHP5VPQPTHck3Pu0D9eg84=; b=f/O3cSaU1AvZ2t3AQi9Zy6tiebwyjPBJMaM/PARw5l41KBvuxyC/pskSoE5OcoMTCm XKJ6xj5jXHdbzkJDNceN2KXMKa+oFqhQ8u1HH0wN96+trw8/izXq84d9saQsPSkiIVZm fewbQmFaCN0IIVrAltQU1TjREjkNrUnGiwrlPKID0leQn/g8ulD8Cjbq4r8Q2y6y+rxe aMykMzA1ReZrFMdt+ZduhkxOLWKFbc7YGjSHRbj0iavBaN5McAJ1+uB5/d8SXa3HK/aE l8IUYhHBczXENu9o0Z0vdAGUfMMnv5oruEviP8UKttSrkfh4hIKJ9GbUspwfuBiO7ruW TZWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lStatDlV; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gz21si2226824ejb.604.2021.01.14.03.39.59; Thu, 14 Jan 2021 03:40:23 -0800 (PST) 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; dkim=pass header.i=@linaro.org header.s=google header.b=lStatDlV; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729103AbhANLh5 (ORCPT + 99 others); Thu, 14 Jan 2021 06:37:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729079AbhANLhw (ORCPT ); Thu, 14 Jan 2021 06:37:52 -0500 Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56758C0617A2 for ; Thu, 14 Jan 2021 03:36:41 -0800 (PST) Received: by mail-pl1-x635.google.com with SMTP id y8so2763024plp.8 for ; Thu, 14 Jan 2021 03:36:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=6MDUnINPotxk6emPsj6PbUHP5VPQPTHck3Pu0D9eg84=; b=lStatDlVlBiaLQAoKo2ozg/OqQ93WMd7po2EbL3XMyqbsNVmyOs1COPnszzPkGlHWH S6s10VLKHodM9gKDyB6oZ8VjgYarb7I9610jUYduNoV1Auudb1uTxss/kzFElGbokEXP WpeLkt67RKtJRlYxgR4tN3deDX2OXi0f6k9+GHEHyU9PZbv1tmrf2uOx7Vr9NJr7/tV7 U+vM5DR4eIXsDtQtvVD+jXHGUxS50o2L/dEF4ibXTjt2HBUCIVIjGPTjnPwuyCQKSAkR 9edGpBchaHJm9IGF4IOdA6XIrQmZnd8RYfziDE9R0FxeTqZhSqLpEqC8IgVYghfYuBdi p6QA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=6MDUnINPotxk6emPsj6PbUHP5VPQPTHck3Pu0D9eg84=; b=CFbUkLitG3U6dcCKCWfkJvF+yo1V4Zf1bK+7jBQFEt4NZp24PFtPUm0PfkXn3hHMXJ laC4/DxiwRKu4pgZeCo38ZjoT+hP4YHxwD1CwdcEjOLzRFG03rKMxjZbfO59aBnDuuDs xNX/bP7CuWaZvQ15hk8/TYoEqY4er/0eOvoPWUAWpkxUKi2repKMgvk1FTfhldHbp12h bGiUKuGhwIY6CXoo1miD0QqnzyCAcbwW7OUXh6Qtst2rCGnPal2/3E1EuG+NTZDn/Bse YMAmApat291AAxHXLCFrcrILLN6QD9PXlVfrs6t0YEFq2Nv9/tjl8Su7mddN8aI9nfll b56Q== X-Gm-Message-State: AOAM532m3KBkZDiOBeUj4gN1Xw/SIv5fCoX3OTbENqOz58QQsWRoNVRA nUDynVGOBgHue5IICvojyFrCvw== X-Received: by 2002:a17:90a:d990:: with SMTP id d16mr581pjv.16.1610624200891; Thu, 14 Jan 2021 03:36:40 -0800 (PST) Received: from localhost ([122.172.85.111]) by smtp.gmail.com with ESMTPSA id p187sm5035732pfp.60.2021.01.14.03.36.39 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Jan 2021 03:36:40 -0800 (PST) From: Viresh Kumar To: Linus Torvalds , Robert Richter , Chris Zankel , Max Filippov Cc: Viresh Kumar , Vincent Guittot , Arnd Bergmann , oprofile-list@lists.sf.net, William Cohen , Alexander Viro , anmar.oueja@linaro.org, Christoph Hellwig , linux-xtensa@linux-xtensa.org, linux-kernel@vger.kernel.org Subject: [PATCH 16/18] arch: xtensa: Remove CONFIG_OPROFILE support Date: Thu, 14 Jan 2021 17:05:29 +0530 Message-Id: <193f2f177d23eef62b54b48f80e62fb0169c1db9.1610622251.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.25.0.rc1.19.g042ed3e048af In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The "oprofile" user-space tools don't use the kernel OPROFILE support any more, and haven't in a long time. User-space has been converted to the perf interfaces. Remove the old oprofile's architecture specific support. Suggested-by: Christoph Hellwig Suggested-by: Linus Torvalds Signed-off-by: Viresh Kumar --- arch/xtensa/Kconfig | 1 - arch/xtensa/Makefile | 1 - arch/xtensa/configs/audio_kc705_defconfig | 1 - arch/xtensa/configs/generic_kc705_defconfig | 1 - arch/xtensa/configs/smp_lx200_defconfig | 1 - arch/xtensa/configs/xip_kc705_defconfig | 1 - arch/xtensa/kernel/stacktrace.c | 2 +- arch/xtensa/oprofile/Makefile | 10 -------- arch/xtensa/oprofile/backtrace.c | 27 --------------------- arch/xtensa/oprofile/init.c | 26 -------------------- 10 files changed, 1 insertion(+), 70 deletions(-) delete mode 100644 arch/xtensa/oprofile/Makefile delete mode 100644 arch/xtensa/oprofile/backtrace.c delete mode 100644 arch/xtensa/oprofile/init.c diff --git a/arch/xtensa/Kconfig b/arch/xtensa/Kconfig index 37ce1489364e..9ad6b7b82707 100644 --- a/arch/xtensa/Kconfig +++ b/arch/xtensa/Kconfig @@ -32,7 +32,6 @@ config XTENSA select HAVE_FUTEX_CMPXCHG if !MMU select HAVE_HW_BREAKPOINT if PERF_EVENTS select HAVE_IRQ_TIME_ACCOUNTING - select HAVE_OPROFILE select HAVE_PCI select HAVE_PERF_EVENTS select HAVE_STACKPROTECTOR diff --git a/arch/xtensa/Makefile b/arch/xtensa/Makefile index 67a7d151d1e7..cf0940708702 100644 --- a/arch/xtensa/Makefile +++ b/arch/xtensa/Makefile @@ -83,7 +83,6 @@ core-y += $(buildvar) $(buildplf) core-y += arch/xtensa/boot/dts/ libs-y += arch/xtensa/lib/ $(LIBGCC) -drivers-$(CONFIG_OPROFILE) += arch/xtensa/oprofile/ boot := arch/xtensa/boot diff --git a/arch/xtensa/configs/audio_kc705_defconfig b/arch/xtensa/configs/audio_kc705_defconfig index eeb4c5383c83..3be62da8089b 100644 --- a/arch/xtensa/configs/audio_kc705_defconfig +++ b/arch/xtensa/configs/audio_kc705_defconfig @@ -18,7 +18,6 @@ CONFIG_BLK_DEV_INITRD=y CONFIG_EXPERT=y CONFIG_KALLSYMS_ALL=y CONFIG_PROFILING=y -CONFIG_OPROFILE=y CONFIG_MODULES=y CONFIG_MODULE_UNLOAD=y CONFIG_XTENSA_VARIANT_CUSTOM=y diff --git a/arch/xtensa/configs/generic_kc705_defconfig b/arch/xtensa/configs/generic_kc705_defconfig index 412f611033cc..e9d6b6f6eca1 100644 --- a/arch/xtensa/configs/generic_kc705_defconfig +++ b/arch/xtensa/configs/generic_kc705_defconfig @@ -18,7 +18,6 @@ CONFIG_BLK_DEV_INITRD=y CONFIG_EXPERT=y CONFIG_KALLSYMS_ALL=y CONFIG_PROFILING=y -CONFIG_OPROFILE=y CONFIG_MODULES=y CONFIG_MODULE_UNLOAD=y CONFIG_XTENSA_VARIANT_DC233C=y diff --git a/arch/xtensa/configs/smp_lx200_defconfig b/arch/xtensa/configs/smp_lx200_defconfig index 4f1c7998b030..a47c85638ec1 100644 --- a/arch/xtensa/configs/smp_lx200_defconfig +++ b/arch/xtensa/configs/smp_lx200_defconfig @@ -18,7 +18,6 @@ CONFIG_BLK_DEV_INITRD=y CONFIG_EXPERT=y CONFIG_KALLSYMS_ALL=y CONFIG_PROFILING=y -CONFIG_OPROFILE=y CONFIG_MODULES=y CONFIG_MODULE_UNLOAD=y CONFIG_XTENSA_VARIANT_CUSTOM=y diff --git a/arch/xtensa/configs/xip_kc705_defconfig b/arch/xtensa/configs/xip_kc705_defconfig index f9e85c082afc..4f1ff9531f6a 100644 --- a/arch/xtensa/configs/xip_kc705_defconfig +++ b/arch/xtensa/configs/xip_kc705_defconfig @@ -31,7 +31,6 @@ CONFIG_CMDLINE="earlycon=uart8250,mmio32native,0xfd050020,115200n8 console=ttyS0 CONFIG_USE_OF=y CONFIG_BUILTIN_DTB_SOURCE="kc705" # CONFIG_PARSE_BOOTPARAM is not set -CONFIG_OPROFILE=y # CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set # CONFIG_COMPACTION is not set CONFIG_NET=y diff --git a/arch/xtensa/kernel/stacktrace.c b/arch/xtensa/kernel/stacktrace.c index c822abb93d20..7f7755cd28f0 100644 --- a/arch/xtensa/kernel/stacktrace.c +++ b/arch/xtensa/kernel/stacktrace.c @@ -16,7 +16,7 @@ #include #include -#if IS_ENABLED(CONFIG_OPROFILE) || IS_ENABLED(CONFIG_PERF_EVENTS) +#if IS_ENABLED(CONFIG_PERF_EVENTS) /* Address of common_exception_return, used to check the * transition from kernel to user space. diff --git a/arch/xtensa/oprofile/Makefile b/arch/xtensa/oprofile/Makefile deleted file mode 100644 index f559b9ffbb3f..000000000000 --- a/arch/xtensa/oprofile/Makefile +++ /dev/null @@ -1,10 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0 -obj-$(CONFIG_OPROFILE) += oprofile.o - -DRIVER_OBJS = $(addprefix ../../../drivers/oprofile/, \ - oprof.o cpu_buffer.o buffer_sync.o \ - event_buffer.o oprofile_files.o \ - oprofilefs.o oprofile_stats.o \ - timer_int.o ) - -oprofile-y := $(DRIVER_OBJS) init.o backtrace.o diff --git a/arch/xtensa/oprofile/backtrace.c b/arch/xtensa/oprofile/backtrace.c deleted file mode 100644 index 8f952034e161..000000000000 --- a/arch/xtensa/oprofile/backtrace.c +++ /dev/null @@ -1,27 +0,0 @@ -/** - * @file backtrace.c - * - * @remark Copyright 2008 Tensilica Inc. - * Copyright (C) 2015 Cadence Design Systems Inc. - * @remark Read the file COPYING - * - */ - -#include -#include -#include - -static int xtensa_backtrace_cb(struct stackframe *frame, void *data) -{ - oprofile_add_trace(frame->pc); - return 0; -} - -void xtensa_backtrace(struct pt_regs * const regs, unsigned int depth) -{ - if (user_mode(regs)) - xtensa_backtrace_user(regs, depth, xtensa_backtrace_cb, NULL); - else - xtensa_backtrace_kernel(regs, depth, xtensa_backtrace_cb, - xtensa_backtrace_cb, NULL); -} diff --git a/arch/xtensa/oprofile/init.c b/arch/xtensa/oprofile/init.c deleted file mode 100644 index a67eea379766..000000000000 --- a/arch/xtensa/oprofile/init.c +++ /dev/null @@ -1,26 +0,0 @@ -/** - * @file init.c - * - * @remark Copyright 2008 Tensilica Inc. - * @remark Read the file COPYING - * - */ - -#include -#include -#include -#include - - -extern void xtensa_backtrace(struct pt_regs *const regs, unsigned int depth); - -int __init oprofile_arch_init(struct oprofile_operations *ops) -{ - ops->backtrace = xtensa_backtrace; - return -ENODEV; -} - - -void oprofile_arch_exit(void) -{ -} -- 2.25.0.rc1.19.g042ed3e048af