Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5630836yba; Tue, 30 Apr 2019 19:04:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqzL2G+navYI41a2HVxKG3q779AYGnh7oOCXLuS0DzSZ8/Vha65+uJE+Ad8guVBFXNiBXPKm X-Received: by 2002:a63:6888:: with SMTP id d130mr71042969pgc.451.1556676293214; Tue, 30 Apr 2019 19:04:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556676293; cv=none; d=google.com; s=arc-20160816; b=Mo6wEulUmcjcBWlbMdptY89+ZnvuZp9ppjCq02UwWOefKn230HV7j13TIwXsXlkTTt 4GozrOPjuF5Tt54ZqWB4eHjxaHirhXaIRI1JD+T7KaBcP5T4BKc1IY5hJYb+nrjfvYpD zfK6IZfokQTS/uR55uH68x9NmNwec+bT3LzaEOvYFuPHJpiGEZnZDaNfj9zEZIeCPaXR Qo7/zRATkf5Ymn7NXl2KcyKkIss/HwNAsKlRS6zRbKa34W6wy64n52sc7Rz1bl0mfRBU FFpk70Y97ofEdYFWQQZNIWXD+AtWHr8h8GvU8iLFc421aQqm5N6Ge/fu2kFe7UiaRETw uwlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=tmXNfPLOFbb8hAF6Vl5xp7lQQxPxX9F/tPvuKsQzATU=; b=itMj3SRVjekft4/u0e8jBXDTPC7OFCN723iWRhRJl20M7atezCeCjiQ0KCWzya8XeM tqsPx0da4f8pQpXWQ/g6aj6VdgDShEz+Sbiqr44i4U3rk8pmUVO9Ih0RTpcoz/+KnK5p y09IWxrGeVmsZhQ95/dFhqvsC/6YR0AJzPnklY3DqZ6UZWvZvCFymFlB06dNqOG7lc5I lFrPPxAPM9d32qRlOQFSXSswgpXMZWKk34Pv+LYJcz7cfoNucz1ek+ByCE4eJYXM/q3C ZU21N+4X6BWtRZqo1VIES96tUYpWjaGKttnzDUkaMlBtPYy05/NQDqkONUS03ly1NPFV OQ/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=Uv7TmbDC; 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 t5si22000335plo.41.2019.04.30.19.04.37; Tue, 30 Apr 2019 19:04:53 -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=pass header.i=@linux-foundation.org header.s=google header.b=Uv7TmbDC; 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 S1727516AbfEACDf (ORCPT + 99 others); Tue, 30 Apr 2019 22:03:35 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:34788 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726115AbfEACDe (ORCPT ); Tue, 30 Apr 2019 22:03:34 -0400 Received: by mail-lj1-f193.google.com with SMTP id s7so11838314ljh.1 for ; Tue, 30 Apr 2019 19:03:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=tmXNfPLOFbb8hAF6Vl5xp7lQQxPxX9F/tPvuKsQzATU=; b=Uv7TmbDCtMO9OVF1wwQKKT6KJaz16R9pk7p/lUNKiKQoViWyOjhOShjt1rXzEbmmks pmlBHurjILNX0wuRZI3kdDTmXE+0EIMcNfEle/j05RKDoGD+a48SSxnYFMopH7Zi/0N8 k24pIeuX0qpCiaq30SlxmkHDKBRv2OvNH9Mws= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=tmXNfPLOFbb8hAF6Vl5xp7lQQxPxX9F/tPvuKsQzATU=; b=mxoiDg9e4Ig+IbJYYsVRiVNnSECnAmIxSLDizkksXDuhRsSkKmLZx/yq6pkPWRKx1s X9T3T2TL08peYoumWnOoLcmYvUXrQj4szYSDqVMFPDHA8owq4jNT0Ji2MYYp7EQov79v d1l+nvcx70uLRIjDQKIuBageiO+iAe7TQmcWx4/YunK8lbqX9+edMTvuQkAtUxQtkzHm 7EZXz6R4IkdS/MWFUO/dDcVjEo8mSU3o49Gd69wJrR3VCNO7jNUjLtFxXefKjxs67fQk KGjlZ2xc2ci5w3nbtK/bHG267JttEkvQNe8hS7qbx66sdTzy5lE1IwOVAOVaMYh/YSV7 AT1w== X-Gm-Message-State: APjAAAWwzP+/OS02T/4hSrt95hE64cAMUbXYJs5e3MH04iihMcDVhg/o 7HlQIlvQxruxrYtTtWqJ8c3y6ThEK9Q= X-Received: by 2002:a2e:9ed3:: with SMTP id h19mr38019487ljk.129.1556676212507; Tue, 30 Apr 2019 19:03:32 -0700 (PDT) Received: from mail-lj1-f169.google.com (mail-lj1-f169.google.com. [209.85.208.169]) by smtp.gmail.com with ESMTPSA id w2sm6045213ljh.72.2019.04.30.19.03.32 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 Apr 2019 19:03:32 -0700 (PDT) Received: by mail-lj1-f169.google.com with SMTP id b12so13366765lji.4 for ; Tue, 30 Apr 2019 19:03:32 -0700 (PDT) X-Received: by 2002:a2e:9ac8:: with SMTP id p8mr34056779ljj.79.1556675903960; Tue, 30 Apr 2019 18:58:23 -0700 (PDT) MIME-Version: 1.0 References: <20190428133826.3e142cfd@oasis.local.home> <20190430135602.GD2589@hirez.programming.kicks-ass.net> <20190430130359.330e895b@gandalf.local.home> <20190430132024.0f03f5b8@gandalf.local.home> <20190430134913.4e29ce72@gandalf.local.home> <20190430175334.423821c0@gandalf.local.home> <20190430213517.7bcfaf8e@oasis.local.home> In-Reply-To: <20190430213517.7bcfaf8e@oasis.local.home> From: Linus Torvalds Date: Tue, 30 Apr 2019 18:58:08 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC][PATCH v2] ftrace/x86: Emulate call function while updating in breakpoint handler To: Steven Rostedt Cc: Andy Lutomirski , Peter Zijlstra , Nicolai Stange , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , "the arch/x86 maintainers" , Josh Poimboeuf , Jiri Kosina , Miroslav Benes , Petr Mladek , Joe Lawrence , Shuah Khan , Konrad Rzeszutek Wilk , Tim Chen , Sebastian Andrzej Siewior , Mimi Zohar , Juergen Gross , Nick Desaulniers , Nayna Jain , Masahiro Yamada , Joerg Roedel , Linux List Kernel Mailing , live-patching@vger.kernel.org, "open list:KERNEL SELFTEST FRAMEWORK" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 30, 2019 at 6:35 PM Steven Rostedt wrote: > > > Probably easier to move it from inline asm to ftrace_X.S and use the > lockdep TRACE_ON/OFF macros. Yeah, that should clean up the percpu stuff too since we have helper macros for it for *.S files anyway. I only did the asm() in C because it made the "look, something like this" patch simpler to test (and it made it easy to check the generated asm file). Not because it was a good idea ;) Linus