Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1112478imm; Fri, 5 Oct 2018 19:02:46 -0700 (PDT) X-Google-Smtp-Source: ACcGV61azPYe6tcm/ELu1CtMN3F2TVIy2lp+BL3kVvbE1eNf4swn98HVEDE1jaQx/cGtSsHTcFa8 X-Received: by 2002:a63:b409:: with SMTP id s9-v6mr12278526pgf.437.1538791366002; Fri, 05 Oct 2018 19:02:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538791365; cv=none; d=google.com; s=arc-20160816; b=Ety9rLRNTvCoFzumF0xTb7V9Ql+prRWoWFq3GuSsNQBp+oEhzSnHBZSo0H6TlXdiRv BhamyEWTkLisV8xVVuG9jKMxSFf+grv9SqSP/iORYi8XfFcNju/T+TnnusAP7Rk1OzAq hl8EAEnmVyc57W7GAh4S/IGPre4O9dv0/Up1ylPQsroEbCDzOt2r+VS0Oro3pkd5GzZX fl0SVv1z9luwrX827XI8Ecj2sAYVrFUBliBSwCSiUh023iMjZbJ3WCMZ46z6ICgatjQL VePrM9fY2hwCL0L6/sFRDuExwqruQhgvyJMkRzRkf1bqqTA+SGpqcjKi8GZVyQ59/192 Y6ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=LjmIh9GTlv05dYicYA819VYlj51B9XRXHFAtT9iezqs=; b=FR1F7RiyCUYoEt0TOpd1pXzF8ff8nDg87W6GoFVYHZjCjxzC1fn7w6yyHlKiAnLLdz sEYTHHLX4IN3kgAnJKKex/3ssrPDXHCqMdYlaFPpyvIOjHvWO2OIOEXcy/0mln08FwEZ XXuPss1KNfp2DpBJcimNLrYPfmLcSPfttnw7ESxiijlWAtvD1Ct04984ZmNz9KAfRBOn 0zTMEPnlsEs+wLAUqj7JYhlRwIv4BQN4c5swlI+HsJ27VjT4/ejsk82WC9UdL9wpPmUw KrBVJbp6+LGCEYb1aZOAxJGaMZBqqGLgDWDS4A7a9hoRxONkGgLo2zS/6uLi03VDQKXV rukw== ARC-Authentication-Results: i=1; mx.google.com; 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 97-v6si10367818pla.34.2018.10.05.19.02.30; Fri, 05 Oct 2018 19:02:45 -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; 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 S1728657AbeJFJDt (ORCPT + 99 others); Sat, 6 Oct 2018 05:03:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:46846 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726505AbeJFJDs (ORCPT ); Sat, 6 Oct 2018 05:03:48 -0400 Received: from vmware.local.home (cpe-66-24-56-78.stny.res.rr.com [66.24.56.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5AAA620834; Sat, 6 Oct 2018 02:02:22 +0000 (UTC) Date: Fri, 5 Oct 2018 22:02:20 -0400 From: Steven Rostedt To: linux-kernel@vger.kernel.org Cc: Linus Torvalds , Ingo Molnar , Andrew Morton , Thomas Gleixner , Peter Zijlstra , Masami Hiramatsu , Mathieu Desnoyers , Matthew Helsley , "Rafael J . Wysocki" , David Woodhouse , Paolo Bonzini , Josh Poimboeuf , Jason Baron , Jiri Kosina Subject: Re: [POC][RFC][PATCH 1/2] jump_function: Addition of new feature "jump_function" Message-ID: <20181005220220.770d9e18@vmware.local.home> In-Reply-To: <20181006015720.634688468@goodmis.org> References: <20181006015110.653946300@goodmis.org> <20181006015720.634688468@goodmis.org> X-Mailer: Claws Mail 3.15.1 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 05 Oct 2018 21:51:11 -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" ) > + Note, the assembler can easily put in a two byte jump here. The .balign was suppose to also have some padding (nop) incase that happens. It's fine, because we can just replace it with a 5 byte jump, as long as we have 3 bytes afterward if it is a two byte jump. -- Steve