From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753299AbdCPTuM (ORCPT ); Thu, 16 Mar 2017 15:50:12 -0400 Received: from mail.kernel.org ([198.145.29.136]:43736 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752537AbdCPTuL (ORCPT ); Thu, 16 Mar 2017 15:50:11 -0400 Date: Thu, 16 Mar 2017 15:50:06 -0400 From: Steven Rostedt To: Linus Torvalds Cc: Linux Kernel Mailing List , Ingo Molnar , Andrew Morton , Thomas Gleixner , Peter Zijlstra , Masami Hiramatsu , "H. Peter Anvin" , Andy Lutomirski , Josh Poimboeuf Subject: Re: [PATCH 4/5 v3] ftrace/x86_32: Clean up ftrace_regs_caller Message-ID: <20170316155006.1f0ef5fe@gandalf.local.home> In-Reply-To: References: <20170316172008.086705006@goodmis.org> <20170316172056.576095199@goodmis.org> <20170316140913.653af64d@gandalf.local.home> <20170316151932.5b9167b5@gandalf.local.home> <20170316152431.05316146@gandalf.local.home> X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.31; 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 List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 16 Mar 2017 12:30:25 -0700 Linus Torvalds wrote: > On Thu, Mar 16, 2017 at 12:24 PM, Steven Rostedt wrote: > > popl %ds > > popl %es > > popl %fs > > popl %gs > > Do you even need these? Can they be changed by ftrace? ftrace no, kprobes, maybe. > > And see the previous email about not touching the original location at > all, adn just duplicating that entry, avoiding all the need for > shuffling. I *really* hope that ftrace doesn't depend on changing the > return %eip on the stack. That would be truly nasty. How do you think the live patching works? -- Steve