Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp781883pxb; Fri, 22 Apr 2022 11:02:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZJc5AfYX5Ks54m5pkEI8xQnZRqE0OGGOqbO2UGBr4SKDYknhQb0SfMmQnI+dQ2gTgWTjY X-Received: by 2002:a9d:4c0a:0:b0:605:50ae:d11 with SMTP id l10-20020a9d4c0a000000b0060550ae0d11mr2338983otf.7.1650650529254; Fri, 22 Apr 2022 11:02:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650650529; cv=none; d=google.com; s=arc-20160816; b=ZHQwNh4ik90I9CE7iYrRDh8dlDBP+j++FVG3LUDFJTuklZJnAVEzhu9oQO25yUydNN dNhOClkZsEH1WsVgBm1tgGs/xPUt5iCIjBtvPSIeD9DoAryw/waSRA6XkMdp0NHxvi3q sfVhKX0sy2U1WTCzc5yLJfHImbEBEgRffJqzP17g8Vx/xczgIeNBKISqxcxk/hWmlPIJ tXGWe8TDucnVPW+IjlutuoXHBY67r8yQ8oOn7wPLR4GLixkYKSOxIxUm6tDbspEewL5x cPiEBKsdDudI6x1nF6DyCcf8hTp705HsG9T9Zig8gj8mw85PtZn+k9GKJdDZ/YqiPU6g hZMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=bLnVB+tVD2jOb/IzrnNs0kvAJIWBHT0xqP4MSQCF2/g=; b=alQkixuQVFZdinD86E6F/b+359zotr7lxqeAkQAHkbZ9GKNv6R1kFg+5wFeTwmZmO/ /RKII84vjLhMMILSlIsKAHzB0oWygAeBFFvWr+tSy69Rc8L0WOCggniluyYkfpFkmnnI S07tTYVCZQ6PJEL045inOICZJereDciIWEejK1+1+iaojiodVT4DS4oIIbN88MIQMgrN WIHZ2dPX5Afy055PQANzy2GLHm3bEDr4NbH9P3tt0BZ67J8mRrqPnTLhT2Gf2pGDQ35I 0aT4/jqaZLlA2watg7/Ih4Tk8fNzirbkMuyYTRTUh0UT+e+3gqZoE+p1QyIhR3t+szNh e1+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=FQeAXayW; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id be8-20020a056870588800b000e2c5cdea8esi3742798oab.130.2022.04.22.11.02.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 11:02:09 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=FQeAXayW; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0B236116DB3; Fri, 22 Apr 2022 10:42:31 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1391614AbiDUS5T (ORCPT + 99 others); Thu, 21 Apr 2022 14:57:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1391608AbiDUS5S (ORCPT ); Thu, 21 Apr 2022 14:57:18 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C5D04C41F for ; Thu, 21 Apr 2022 11:54:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=bLnVB+tVD2jOb/IzrnNs0kvAJIWBHT0xqP4MSQCF2/g=; b=FQeAXayWhnYNyiBkExcDn0AOpk ZUjYMdSMmpSkuBpxHbzmS/FooiikDmBpjoD+uM8yKpL31AfuTXrG2bKVvG+ofXe74EUUIhLFcp54B g7Gdtndy6UBqGFZ2bhz+qze/DEGk8vOwK1q1wdjovIqiV6G/nBQk7aNCXa1xDly8Cf7rkPKhLhL24 xW7lmtgspqqYmnn8gzQPuQquD7Fvkg/cuV89b+CQLRij/Jvu6ANXQGUHM77IjA6s/LHm2EjorLNG2 OHogJQzX+dz60MAdTLXeiz4TwUIaH1MHAU+087FSxlGHtQ4fNC/FK+aNzdljao/5+GUvoMUdZ3ZYB 1Y7m8kJA==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nhbwJ-00EiJB-VK; Thu, 21 Apr 2022 18:54:03 +0000 Date: Thu, 21 Apr 2022 11:54:03 -0700 From: Luis Chamberlain To: Steven Rostedt , "Eric W. Biederman" Cc: YueHaibing , mingo@redhat.com, xiaowei66@huawei.com, patches@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH sysctl-next] ftrace: fix building with SYSCTL=n but DYNAMIC_FTRACE=y Message-ID: References: <20220420192807.75a70b44@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220420192807.75a70b44@gandalf.local.home> Sender: Luis Chamberlain X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 20, 2022 at 07:28:07PM -0400, Steven Rostedt wrote: > On Fri, 15 Apr 2022 14:54:04 -0700 > Luis Chamberlain wrote: > > > Steven, > > > > As with the other fixes I can take this in through sysctl-next if you > > are OK with that, please let me know. > > Honestly I would love to just nuke the ftrace_enabled sysctl, it's totally > obsolete. Perhaps I should have it trigger some kind of warning message > that it will be going away soon, and perhaps we can remove it? I'm not sure if we can remove proc sysctls, that can break userpace interaction. But deprecating it.. yeah I think it's fine to strive for it, and just make the code do at least what it used to. In fact sadly I don't see this documented well, we do have the documentation in Documentation/admin-guide/sysctl/ but we don't really spell it out if we can nuke some. Eric, do you have any thoughts on eventually *removing* sysctls? Maybe we should document this. BTW yeah another thing I noticed while looking at ftrace.c file was it could probably use some spring cleaning by splitting the file up into multiple files. Hey I'm not volunteering :) just an idea. > Anyway, yeah, take this through your tree. OK thanks, 0day found one last issue, I'll send a patch for that just now. Let me know if you're OK for me to just squash that into this patch. > Acked-by: Steven Rostedt (Google) Luis