Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1523883imm; Sat, 6 Oct 2018 05:13:30 -0700 (PDT) X-Google-Smtp-Source: ACcGV61JnD5pg1EWy+Yvu8Cqsv/RrMXch8NidCS6YaAtObkAsWXIVExqip2XuW1d+DQyTKF/0PwJ X-Received: by 2002:a63:f744:: with SMTP id f4-v6mr14016891pgk.410.1538828010039; Sat, 06 Oct 2018 05:13:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538828010; cv=none; d=google.com; s=arc-20160816; b=nZ68+uM+6eJz20fY+p4ghHR4gqGqb/fEkq2Tyt4Ofy1FAfRCvj9bcj6izqV2zaD8mk ge6iwmJwBgkNcasD4eRuy+VaLL6q74r000EC07tcbno/jj58qMqpqOpqTB/zqu3wtYIA CM45NePYWv6dHBkppUKJX/eK8CugtfQm8Zmwfug5IWNnZ5w9jnjsFyd3qwLsDim4qLhl eENdfsshssoBCbNsBLwmMz4NB53GHf1dQH6l74KGt4JF5+yfXmb2+P6EVPLNeTRqa36O 0smB6hKVgJuacsZt3wEVFdvQooHYiJFX1vrbbcdm1VGV84tiwUEm/pBEZBhYtB9D+RA/ X6EA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=aG1FcGFSDYIVigsvtdAWrXnZDykDmhyslHi2bgdrC88=; b=Wh5QJuXCfdrn6uNyCnIJcMmC3qghkK0LSw0ZZUGqSzX8aTCMr/YCRxM2t3rAyx7gds Sm7CuwtPsm31l6aod83SnkpUouBw1NPCe6JCMNNM3nt9LNNR03/CHCH2U0JDyaaD7Yd1 m8/1mxlWjZ3LzpmeQVkjyZGOub4q2rgnVmKgUdxnGZt7m3sTxhwXeEW3VUUj3yb4N3jd 2NBSLQxLhgvb1xNJHjFpXBhTTnm7CghSValM6vfMBxOHrEITbY83TgOW2NGnwEWJUJsa XipS76MZTHeHTaZE5oRGWRFR0xlSjhTHE9WWJ7UaJ+8WND7bLDwsRIVvOFk/4cTbQfSo tBow== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=lmGquFOr; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i64-v6si12667769pfg.119.2018.10.06.05.13.14; Sat, 06 Oct 2018 05:13:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=lmGquFOr; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727852AbeJFTPp (ORCPT + 99 others); Sat, 6 Oct 2018 15:15:45 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:41366 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727658AbeJFTPp (ORCPT ); Sat, 6 Oct 2018 15:15:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.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:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=aG1FcGFSDYIVigsvtdAWrXnZDykDmhyslHi2bgdrC88=; b=lmGquFOrlfRhXDZ36VVpnS6fy CbrYFdRKe45XL2b6DMWvhvLkDBDPzLo1IZAY4njt5r9kAJUnzTdUIgMj0MTVreVN/F15WOPx8Kaq4 A5SZVvUBFe9exl2c0e5FJGBGuNxx/xe8SZhDYdRg9YzN5p9TMKZBp8j5p9a/RDx7AYCIf9ph/X2Qv uTOn8sWO2OhzAifxo5mUoTLmItFiyPRG/ZbigBiGFOkLfFqRjyoqC6EnWNmRnVEC+yC/Vbam7/BMG qL7JyzxlOlBJA8nmFDRMHxthWBTCHNdqVZ6GDwi+1sKq9poIaAdScB2mh+9+WfMBEOZ+Ft6EExJIz VEqyFGqFg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1g8lRU-0006jv-2T; Sat, 06 Oct 2018 12:12:20 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 917DC201EF080; Sat, 6 Oct 2018 14:12:11 +0200 (CEST) Date: Sat, 6 Oct 2018 14:12:11 +0200 From: Peter Zijlstra To: Steven Rostedt Cc: linux-kernel@vger.kernel.org, Linus Torvalds , Ingo Molnar , Andrew Morton , Thomas Gleixner , Masami Hiramatsu , Mathieu Desnoyers , Matthew Helsley , "Rafael J . Wysocki" , David Woodhouse , Paolo Bonzini , Josh Poimboeuf , Jason Baron , Jiri Kosina , ard.biesheuvel@linaro.org, Andy Lutomirski Subject: Re: [POC][RFC][PATCH 1/2] jump_function: Addition of new feature "jump_function" Message-ID: <20181006121211.GA5663@hirez.programming.kicks-ass.net> References: <20181006015110.653946300@goodmis.org> <20181006015720.634688468@goodmis.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181006015720.634688468@goodmis.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 05, 2018 at 09:51:11PM -0400, Steven Rostedt wrote: > +#define arch_dynfunc_trampoline(name, def) \ > + asm volatile ( \ > + ".globl dynfunc_" #name "; \n\t" \ > + "dynfunc_" #name ": \n\t" \ > + "jmp " #def " \n\t" \ > + ".balign 8 \n \t" \ > + : : : "memory" ) Bah, what is it with you people and trampolines. Why can't we, just like jump_label, patch the call directly? The whole call+jmp thing is silly, don't do that. It just wrecks I$ and is slower for no real reason afaict. Steve, also see: https://lkml.kernel.org/r/20181005081333.15018-1-ard.biesheuvel@linaro.org