Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp96708imu; Mon, 26 Nov 2018 08:22:51 -0800 (PST) X-Google-Smtp-Source: AFSGD/VtUFPxQhwK57VdIo1ZCz19v/tSy1ho+1aVWnSCw85MpYgKTore7sGkXxgqDBRpC6xyE2iy X-Received: by 2002:a17:902:292b:: with SMTP id g40mr28886361plb.82.1543249371892; Mon, 26 Nov 2018 08:22:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543249371; cv=none; d=google.com; s=arc-20160816; b=dlAJnSANn4nnUoqt3sL3OD7vzm/l5m1AoFh+KpLKUX6zOS9V+J5FQ3zaIi7dWH/DwP 3D2JIcq1okBDXl1qYxjwjSbS6V1GqJzuPwLcV/ShrnI4fhdws40Zgv8F31X6ifdzy/1k JL0NZLy551vXSQzD5eqUgrGTQxhylydUGkikFQjQ6W1pbmXv8KijHPtYO6J0heRtXqbX l7fFrfNSaqEg4x2beR9pr8uL6jcCflpZU8+PARujV4hKaArpgb8OAo21gs/3GlI6yGHz MtM2/mwfIG6Zemy+2tDP36/sxROzuzlz+u+PschSJ2eaMzENGpqSE6CdhzgE2dajub9n jG7w== 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=N+FOPxUXVHkMvuNhUIUt+/+iQjBqWaQUZ/NYTjvG52Q=; b=Ang9eC5B9/jEQHIuSr4DNzVZFrNVHt0N9b3pv/Ix+A6EhMHdX4WZELwudIZYFuXfrK 9nev1uXViN/qtfxbd9Hrqyd2MpgZTIEbAYWnM6o4mXEODlQgUYA3aBQdbq5V9njVx5S0 VdYys+9bss/IBncbhga137ab4MPmFri94lxUnwdX8j141Il9oLD1ENv+LKQhU4S+0Cx6 Kw4yBUUT9SZXD51C0IsDS3OD2XFeCfTzNaZgOsg/FTcMTwnGDK9rHRAilsY+JgUsXmrN C8/w9nIiWtWE9DkI2lJP8ndEmN05vCta+O+MXLg+cTpQHitRw3xSKEFLNsjCSE4oZKvm gxEw== 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 19si691564pgq.215.2018.11.26.08.21.41; Mon, 26 Nov 2018 08:22:51 -0800 (PST) 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 S1726425AbeK0DN6 (ORCPT + 99 others); Mon, 26 Nov 2018 22:13:58 -0500 Received: from mail.kernel.org ([198.145.29.99]:38218 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726210AbeK0DN6 (ORCPT ); Mon, 26 Nov 2018 22:13:58 -0500 Received: from gandalf.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 F4236205C9; Mon, 26 Nov 2018 16:19:21 +0000 (UTC) Date: Mon, 26 Nov 2018 11:19:20 -0500 From: Steven Rostedt To: Peter Zijlstra Cc: Josh Poimboeuf , x86@kernel.org, linux-kernel@vger.kernel.org, Ard Biesheuvel , Andy Lutomirski , Ingo Molnar , Thomas Gleixner , Linus Torvalds , Masami Hiramatsu , Jason Baron , Jiri Kosina , David Laight , Borislav Petkov , Julia Cartwright , Jessica Yu , "H. Peter Anvin" Subject: Re: [PATCH v2 3/4] x86/static_call: Add out-of-line static call implementation Message-ID: <20181126111920.15f547f1@gandalf.local.home> In-Reply-To: <20181126154356.GP2113@hirez.programming.kicks-ass.net> References: <00b08f2194e80241decbf206624b6580b9b8855b.1543200841.git.jpoimboe@redhat.com> <20181126154356.GP2113@hirez.programming.kicks-ass.net> X-Mailer: Claws Mail 3.16.0 (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 Mon, 26 Nov 2018 16:43:56 +0100 Peter Zijlstra wrote: > > + /* Patch the call site: */ > > + text_poke_bp((void *)insn, opcodes, CALL_INSN_SIZE, > > + static_call_bp_handler); > > I'm confused by the whole static_call_bp_handler thing; why not jump > straight to @func ? Interesting, that might work. I can give it a try. -- Steve