Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2580908pxp; Tue, 22 Mar 2022 01:20:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwP8oHymC0awTTglME9KB3TsCbZY4nmbNFKasEXOmDZZK5j1okrK/nntQqevfTjkX1fcpOP X-Received: by 2002:a17:902:c94c:b0:154:58e4:6f5a with SMTP id i12-20020a170902c94c00b0015458e46f5amr9513998pla.142.1647937251025; Tue, 22 Mar 2022 01:20:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647937251; cv=none; d=google.com; s=arc-20160816; b=jqDXfLtsv44ywNgCKSdevZN62xvQJbOXXlg3LY7QEcIbFkjtSE31VZpYB7NVQPMQ0c +smnOPW7z5pgDH1qVwHANdnDsU9GJshOmSFkpZ66yG5tM5UVnmTANNbjbAlI6HIPmLON EBJYp8ZwZ6/vOVgheT34TI+ZXCrSWnaKtAYRHFt1w/MgSCCqnbAbbY11lVVybJBKOxXQ ORUDikfvKhkCZRZgMVKwLn+Z6TdrJMEp/+rWME0jhwmMxZeEKDfPp4EEQ9CCXEyzNOz0 UcwnQj5XXwsv7QF43VJLGMmFf0eVXLRulfQJDrQKBQldj/Jv9R/c0b67jqyvWOzZrQkS k5JQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=BUf3kZEhqxCYRgicSzuUVNrLLp1FfVYato9rwoVBC/A=; b=cBjAVAOCG44Y6nOA5+dadnjzxCPh/X3dVrkD+fPrO0C2IWxdkM6lg+WfZk8wzQNbyr J3L64votIR3BlxmepnMRWkkawqzTFKk4/Zj6PEGpyZ7LyUh3WxpZvgEaf43NgldTixPL zODqa2HN7GExs8USqsLs9Wt9rLM1c5I9TQsTLwNXHkUfCWwGqrIDDwqEdb1+lklvf3AV VEE+qeH1ASYcB1pLund/vJsGnDwW0BYW/berSdtMADC+1R3SNUtgy7md3NpElpjdW7Ow 51/iHrPVKYWrXXKyplCrOsh//QOERKbS687KKZhMA5gnZKEpE8CbxOkzLhF5wHi+SfaD Kq/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=O+Zv4B0v; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id by13-20020a056a00400d00b004fa3a8dff83si5209150pfb.58.2022.03.22.01.20.39; Tue, 22 Mar 2022 01:20:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=O+Zv4B0v; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229688AbiCVH4o (ORCPT + 99 others); Tue, 22 Mar 2022 03:56:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229658AbiCVH4n (ORCPT ); Tue, 22 Mar 2022 03:56:43 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2FDFB59A40; Tue, 22 Mar 2022 00:55:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=BUf3kZEhqxCYRgicSzuUVNrLLp1FfVYato9rwoVBC/A=; b=O+Zv4B0vlsCDbWFJ84XG3F5o8D RT+3EoQ0TsekqJC3795MFOV9qhuOcNyw/s+L+MUEPHWKVdBjzh5beSxy5HP13T2ne05fzJTnHs/0b cg/yf8IXB4SVIiGrruz6sNPtvOVSDtNXuOycVdAPDmNXCR5NXR4Kt3mKwojOboE7Bgx7+1cT2oZXF udfX7pfRZHsJGg5nQN30gL58gKSoP/XvtLDzApstF11bM3W0shVP6JhLYRUVIAL687pJulOT1S9m/ WF7vA/WpJcjg+UodjUaEQLoqGSKkTUj3yEuzSKq18XBO82ftaIp0hYJFUY2/WpZ7EyEkV6R7yC7HL vZXmYnkg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1nWZM0-00BOBw-5g; Tue, 22 Mar 2022 07:54:56 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 8C61F3001CD; Tue, 22 Mar 2022 08:54:55 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 746922015B283; Tue, 22 Mar 2022 08:54:55 +0100 (CET) Date: Tue, 22 Mar 2022 08:54:55 +0100 From: Peter Zijlstra To: Steven Rostedt Cc: Stephen Rothwell , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Linux Kernel Mailing List , Linux Next Mailing List , mhiramat@kernel.org, ast@kernel.org, hjl.tools@gmail.com, rick.p.edgecombe@intel.com, rppt@kernel.org, linux-toolchains@vger.kernel.org, Andrew.Cooper3@citrix.com, ndesaulniers@google.com Subject: Re: linux-next: build warnings after merge of the tip tree Message-ID: References: <20220321112805.1393f9b9@gandalf.local.home> <20220321121209.3b95e406@gandalf.local.home> <20220321121549.1c8588c5@gandalf.local.home> <20220321124551.3d73660b@gandalf.local.home> <20220321125419.0a20415c@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220321125419.0a20415c@gandalf.local.home> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Mon, Mar 21, 2022 at 12:54:19PM -0400, Steven Rostedt wrote: > On Mon, 21 Mar 2022 17:50:50 +0100 > Peter Zijlstra wrote: > > > > This also assumes that we need to trace everything that is marked. I > > > mentioned in another email, what do we do if we only trace funcA? > > > > Like I said later on; if we inhibit tail-calls to notrace, this goes > > away. > > Please no. The number of "notrace" functions is increasing to the point > that it's starting to make function tracing useless in a lot of > circumstances. I've already lost my ability to see when user space goes > into the kernel (which I have to hack up custom coding to enable again). I really can't follow the argument there, nor on IRC. Suppose: notrace func_B() { ... } func_A() { ... return func_B(); } then inhibiting tail calls would end up looking like: func_A: call __fentry__ ... call func_B call __fexit__ ret Then A is fully traced, B is invisible, as per spec. What is the problem? The problem you initially had, of doing a tail-call into a notrace, was that the __fexit__ call went missing, because notrace will obviously not have that. But that's avoided by inhibiting all tail-calls between notrace and !notrace functions (note that notrace must also not tail-call !notrace). Your worry seems to stem about loosing visiblilty of !notrace functions, but AFAICT that doesn't happen.