From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0AFF8C28CBC for ; Wed, 6 May 2020 13:55:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D6F48206DB for ; Wed, 6 May 2020 13:55:50 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="yrSIayTY" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728826AbgEFNzu (ORCPT ); Wed, 6 May 2020 09:55:50 -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.