Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1873329ybj; Wed, 6 May 2020 06:58:30 -0700 (PDT) X-Google-Smtp-Source: APiQypIa8EApeFJr+2GB0sBD5slZux+Ae4/q/sIazrEW+JQPGsN4iFe8IXeat3b65OsqF5K24b/1 X-Received: by 2002:a05:6402:2293:: with SMTP id cw19mr6927359edb.351.1588773510012; Wed, 06 May 2020 06:58:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588773510; cv=none; d=google.com; s=arc-20160816; b=Sruk2PLezx3D2LLldVzDbHzyJf+miFS+BWjkSEZX3QB9iCpuZGYy3aX1U462liDul2 YChsZ+DmBnvocABNVWpG8p/XsbPn5HBMMA5zHOT/NqzixRPNtQ3w6UjVc8kB/eJgvItF J/m3PRLUNwt9+W64coVOiCdPi9YpFTdwdWSzddbevsom66hZsEeHPZOpme/GsO+foKKi K0UoGrOMmf5MxdIoDKGKOsQAcE67JfPwcRlbOaeqskQrnoqoqH4WQIW2X1r2Jo5qMAlh Oven0Xv9O9/liVIOu3CnVV/Qjn6PCE4jFQdk9AcFTd72qNci/Os89GJoRNRIcRrODZQ2 o4lw== 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=wieAx4fpIjez6+38MuDUQtEmRFoEiBIScVcz09TURjc=; b=idWQAS/zH/1f8qSnqVsQLqgENuSf+7Sh7MSZlOJqS/X7y5z64l3jyPsfMCeEEfLNP7 yGQnZKD6fPNuYROylY8fKvThqzjMZs71GjO99TCJuwvOjFC7TPBjVOfZdFUl5H5CiPlW MGjCJtfdOTHkBTxa63CHCZZ/LwFhMHbWhf0cflK/07xltZbtTK2PJwYPtVhyuAi6fwYw rWMtmosPuQIAPoNv5UQQLdo/FdMi0PcjMWXEa3xFKNxcpm1HLdSJ5C/e8FJolJFsCUN0 iwggCUYfTj0tpdsRAwd2xxsFDf0CdCimwJ0tJ/KnFbTSjOwkxa2s+lkIEWHo9+AxWlJC rJ+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=yrSIayTY; 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 v28si1036552edx.335.2020.05.06.06.58.07; Wed, 06 May 2020 06:58:29 -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; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=yrSIayTY; 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 S1728792AbgEFNzt (ORCPT + 99 others); Wed, 6 May 2020 09:55:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725915AbgEFNzt (ORCPT ); Wed, 6 May 2020 09:55:49 -0400 Received: from merlin.infradead.org (unknown [IPv6:2001:8b0:10b:1231::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2CBFEC061A0F for ; Wed, 6 May 2020 06:55:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.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=wieAx4fpIjez6+38MuDUQtEmRFoEiBIScVcz09TURjc=; b=yrSIayTYq+p6++DaaMO3LS8kqd CYGGs8JR5NYqIHAR+7DAsiYIcZhOqwujAj1xUiTUzmbw3erd5rywk/cQJzJkSRgK0d/BZDotMm1pr eKM4NBs0vZh4wlXkkAuxV4f4nFPtNFBR9ObE0FSiNBL5KeVFvR2Xi6+goGdndo4cI9aivD5wBYpLv 7i8x+Fuu6v8cZLbqCF+uHP19UpquPFvj1RMbDAfMea/eClWmH0I3E1zcVJJ5JWH2yM5N98wEr5Vcq zIO3gDIxaMsqkfqinbrmQ0OXXsgcmWfx2789sNIxAdHUeaHaZWZEer+V28c3bnz8T+HsqBY26Lsyw BiPDr/XA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jWKVu-0001tY-0P; Wed, 06 May 2020 13:55:06 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 313EF300739; Wed, 6 May 2020 15:55:02 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 2135D2B74FC96; Wed, 6 May 2020 15:55:02 +0200 (CEST) Date: Wed, 6 May 2020 15:55:02 +0200 From: Peter Zijlstra To: Mathieu Desnoyers Cc: ndesaulniers , Linus Torvalds , Rasmus Villemoes , x86 , linux-kernel , rostedt , Masami Hiramatsu , bristot , jbaron , Thomas Gleixner , Ingo Molnar , Nadav Amit , "H. Peter Anvin" , Andy Lutomirski , Ard Biesheuvel , Josh Poimboeuf , Paolo Bonzini , "H.J. Lu" , clang-built-linux Subject: Re: [PATCH v4 14/18] static_call: Add static_cond_call() Message-ID: <20200506135502.GS3762@hirez.programming.kicks-ass.net> References: <20200501202849.647891881@infradead.org> <20200504201445.GQ3762@hirez.programming.kicks-ass.net> <20200505093625.GE5298@hirez.programming.kicks-ass.net> <656098739.766.1588705237442.JavaMail.zimbra@efficios.com> <470458191.1021.1588710464160.JavaMail.zimbra@efficios.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <470458191.1021.1588710464160.JavaMail.zimbra@efficios.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 05, 2020 at 04:27:44PM -0400, Mathieu Desnoyers wrote: > Actually, if the goal is to do code patching of the call, I wonder > what makes it OK to "guess" all the call patterns generated by the compiler ? We're not guessing, have have objtool read the compiler output and record the location for us. The compiler can generate whatever it likes.