Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1576045pxu; Thu, 17 Dec 2020 13:19:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJz0ssHXcZ2Z5asalZ+uN1e10wdw2s5VCHKIOslFk9SkCm6iWXP07yN9HwUTCoJTay1gC72R X-Received: by 2002:a50:d50a:: with SMTP id u10mr1360028edi.58.1608239980307; Thu, 17 Dec 2020 13:19:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608239980; cv=none; d=google.com; s=arc-20160816; b=VgPTzxyEG2yu2eXjCACL9AnBOFt1uhIJCyIsmnLJU6IuEK6UGPQ/Eu1nwguC1ZMDes zV6rka/jFITftqOgcK8D1lsHkGgCjs0auF+rYZ+OCeeSgjOXIETgc94OTW1OD76Xbkfc 2Xo/R5+bJhBEWQY42eqeXclw+DfnSsuhUyV19kdZco7aSuAHhOT+ws1t85VN2CMsUven hClBh5HjW2HC1z6oxp8QKPEpXXGNfRH2DNpIBKyYoz2Mp/UK3pU/MppjwUDWNK3lqfW5 2t7KLFhbYmWhBx8dTZhVyXqw60TCtSqA4rhyjcxJEoHuVLMxFwfNnHQounzxYRpBRGc9 gsTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=E1gFWyQkmkLhCbv2d+Raglj6n3PIGWMNf0Fm0qm+U/4=; b=QOtXsGzGqrxNI0F1nemThzvgppmW9DIlue08GtkqjkSbkaB8UjpLFBRlg7iZjHgarv G+472PNCXFdR6gwvRTaguU2Opw4vPgjbZSoyzPgw+OIJFGlfOJzxuXXUCdLskvpln9iu rTkS/ZnHhYQVGQM6efn/jEg8Phl4ygNKrcCFdH9JHTrXMwPcSDfuBzy9EPqgvb9mPeCO BBN+FBg4ecZPs8+ueO/yym7wu5bhYgV8193wPIyt7b6zySKueyZYaZ5s5xOZPxwk4+N7 DvkPXbitZqtWpwZMu+G2DzL2g45vqwL83nWmfBpseU4C5hZn4Vhdoz4CRlWJIyr9gnBD kx2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=RASQ28YU; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f12si4262250ejl.311.2020.12.17.13.19.17; Thu, 17 Dec 2020 13:19:40 -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=@linux-foundation.org header.s=google header.b=RASQ28YU; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730008AbgLQVQv (ORCPT + 99 others); Thu, 17 Dec 2020 16:16:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728358AbgLQVQt (ORCPT ); Thu, 17 Dec 2020 16:16:49 -0500 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7501EC0617A7 for ; Thu, 17 Dec 2020 13:16:09 -0800 (PST) Received: by mail-lf1-x12b.google.com with SMTP id 23so61299519lfg.10 for ; Thu, 17 Dec 2020 13:16:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=E1gFWyQkmkLhCbv2d+Raglj6n3PIGWMNf0Fm0qm+U/4=; b=RASQ28YUFGFrGQbMX/V/LJFRd/0tYNs2lmT1vc9TRt8o323wTRa3xTS/uqfwYDDhkG T2753KyC0R4yJHCHSaEepCuW/vb3BWe2TxOZG6YPg0GuaeHmrg4IvIfKVK6JYJJvcSft njU67lOpM0+5A3Rq6ZjEEsS5UePl7Yn9kpVMk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=E1gFWyQkmkLhCbv2d+Raglj6n3PIGWMNf0Fm0qm+U/4=; b=ZqJZTgIpMYIRzKrfw75ek3H2xlbURkHuLI9eNEfxO+3wu9bXj2u0doluAEeSKueqW/ Ah2x6j5aztHarRvo5uoQBNe/IUZ1nPUdQ87++ADaDxAezJJvt3L/Y3e6WOUSMFeXa6pL TUjOUxjmRDELKlzgKSO9Te907Cih17lWf4qZZ1jo6lM2n0bVuZyfc33+2Yj4wPkcqtR9 PagNetyB6RhSznp8ZC9TTLg8xd60nYb6yvdwknir5JAOgo2Z2aZyyU18lBydTpNjZoED tqsdWanbmlYH7ZURYfmoIwXA05nUKoAgD/ZsOMSXEmhG0uTE2Sb+9Bhvb4pPS9C8ngdr XFuw== X-Gm-Message-State: AOAM532dcYVHKqTXcFOb1gOqm8BuPY4p7xDz6JxfWC4nI3HNiwPhwrlm kwhpobV7pxCtDIaJVAo9esxZFFnTG1swpA== X-Received: by 2002:a05:6512:10d3:: with SMTP id k19mr273890lfg.362.1608239767143; Thu, 17 Dec 2020 13:16:07 -0800 (PST) Received: from mail-lf1-f42.google.com (mail-lf1-f42.google.com. [209.85.167.42]) by smtp.gmail.com with ESMTPSA id n84sm699385lfd.176.2020.12.17.13.16.03 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 17 Dec 2020 13:16:03 -0800 (PST) Received: by mail-lf1-f42.google.com with SMTP id o13so48969lfr.3 for ; Thu, 17 Dec 2020 13:16:03 -0800 (PST) X-Received: by 2002:ac2:4987:: with SMTP id f7mr248377lfl.41.1608239762945; Thu, 17 Dec 2020 13:16:02 -0800 (PST) MIME-Version: 1.0 References: <51a9a594a38ae6e0982e78976cf046fb55b63a8e.1603191669.git.viresh.kumar@linaro.org> <20201027085152.GB10053@infradead.org> In-Reply-To: From: Linus Torvalds Date: Thu, 17 Dec 2020 13:15:46 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] dcookies: Make dcookies depend on CONFIG_OPROFILE To: Arnd Bergmann Cc: William Cohen , Christoph Hellwig , Viresh Kumar , Alexander Viro , Vincent Guittot , Anmar Oueja , Arnd Bergmann , linux-fsdevel , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Just reviving this thread to see if we could get rid of the OPROFILE kernel code this time.. One option is to just start off with adding a depends on DISABLED on the OPROFILE config option, and see if anybody even notices. But honestly, just removing the entirely might be the better thing. The oprofile config is a bit odd. We have things like OPROFILE_NMI_TIMER which defaults to on even if OPROFILE isn't even selected. All the _users_ of that seem to be inside oprofile code, so it's effectively a no-op without oprofile, The only reason I noticed was that I looked at the Fedora kernel config files, and went "uhhuh, Fedora still enables that", and had a quick worry before I noticed that it's just the Kconfig system being silly. Linus On Wed, Oct 28, 2020 at 11:01 AM Arnd Bergmann wrote: > > On Wed, Oct 28, 2020 at 5:34 PM William Cohen wrote: > > > > On 10/27/20 12:54 PM, Linus Torvalds wrote: > > > > > > I think the user-space "oprofile" program doesn't actually use the > > > legacy kernel code any more, and hasn't for a long time. > > > > Yes, current OProfile code uses the existing linux perf infrastructure and > > doesn't use the old oprofile kernel code. I have thought about removing > > that old oprofile driver code from kernel, but have not submitted patches > > for it. I would be fine with eliminating that code from the kernel. > > I notice that arch/ia64/ supports oprofile but not perf. I suppose this just > means that ia64 people no longer care enough about profiling to > add perf support, but it wouldn't stop us from dropping it, right? > > There is also a stub implementation of oprofile for microblaze > and no perf code, not sure if it would make any difference for them. > > Everything else that has oprofile kernel code also supports perf. > > Arnd