Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1577847

Re: [PATCHv3] arm: ftrace: Adds support for CONFIG_DYNAMIC_FTRACE_WITH_REGS

From Abel Vesa <abelvesa@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCHv3] arm: ftrace: Adds support for CONFIG_DYNAMIC_FTRACE_WITH_REGS
Date 2017-02-09 19:20 +0100
Message-ID <t91u2-15t-29@gated-at.bofh.it> (permalink)
References <t8mTT-tp-9@gated-at.bofh.it> <t8ZVf-8tc-1@gated-at.bofh.it> <t90xY-vh-37@gated-at.bofh.it> <t91u2-15t-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, Feb 09, 2017 at 06:06:44PM +0000, Russell King - ARM Linux wrote:
> On Thu, Feb 09, 2017 at 12:13:22PM -0500, Steven Rostedt wrote:
> > Then came along live kernel patching, which I believe this series is
> > trying to support. What is needed by pt_regs is a way to "hijack" the
> > function being called to instead call the patched function. That is,
> > ftrace is not being used for tracing, but in reality, being used to
> > modify the running kernel. It is being used to change what function
> > gets called. ftrace is just a hook for that mechanism.
> 
> So, would I be correct to assume that the only parts of pt_regs that
> would be touched are those which contain arguments to the function,
> and the register which would contain the return value?
At this point, yeah, but I intend to come up with another patch series
for livepatching which needs the exact same context as the function 
livepatched. This means all the regs need to be saved and restored 
before calling the replacing function.
> 
> -- 
> RMK's Patch system: http://www.armlinux.org.uk/developer/patches/
> FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up
> according to speedtest.net.

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCHv3] arm: ftrace: Adds support for CONFIG_DYNAMIC_FTRACE_WITH_REGS Abel Vesa <abelvesa@linux.com> - 2017-02-08 00:00 +0100
  Re: [PATCHv3] arm: ftrace: Adds support for  CONFIG_DYNAMIC_FTRACE_WITH_REGS Russell King - ARM Linux <linux@armlinux.org.uk> - 2017-02-09 16:50 +0100
  Re: [PATCHv3] arm: ftrace: Adds support for  CONFIG_DYNAMIC_FTRACE_WITH_REGS Russell King - ARM Linux <linux@armlinux.org.uk> - 2017-02-09 17:40 +0100
    Re: [PATCHv3] arm: ftrace: Adds support for  CONFIG_DYNAMIC_FTRACE_WITH_REGS Steven Rostedt <rostedt@goodmis.org> - 2017-02-09 18:20 +0100
      Re: [PATCHv3] arm: ftrace: Adds support for  CONFIG_DYNAMIC_FTRACE_WITH_REGS Steven Rostedt <rostedt@goodmis.org> - 2017-02-09 19:20 +0100
        Re: [PATCHv3] arm: ftrace: Adds support for  CONFIG_DYNAMIC_FTRACE_WITH_REGS Abel Vesa <abelvesa@gmail.com> - 2017-02-09 20:10 +0100
          Re: [PATCHv3] arm: ftrace: Adds support for  CONFIG_DYNAMIC_FTRACE_WITH_REGS Abel Vesa <abelvesa@gmail.com> - 2017-02-09 20:20 +0100
      Re: [PATCHv3] arm: ftrace: Adds support for  CONFIG_DYNAMIC_FTRACE_WITH_REGS Russell King - ARM Linux <linux@armlinux.org.uk> - 2017-02-09 19:20 +0100
        Re: [PATCHv3] arm: ftrace: Adds support for  CONFIG_DYNAMIC_FTRACE_WITH_REGS Steven Rostedt <rostedt@goodmis.org> - 2017-02-09 19:20 +0100
        Re: [PATCHv3] arm: ftrace: Adds support for  CONFIG_DYNAMIC_FTRACE_WITH_REGS Abel Vesa <abelvesa@gmail.com> - 2017-02-09 19:20 +0100
    Re: [PATCHv3] arm: ftrace: Adds support for  CONFIG_DYNAMIC_FTRACE_WITH_REGS Abel Vesa <abelvesa@gmail.com> - 2017-02-09 19:40 +0100
    Re: [PATCHv3] arm: ftrace: Adds support for CONFIG_DYNAMIC_FTRACE_WITH_REGS Jean-Jacques Hiblot <jjhiblot@traphandler.com> - 2017-02-10 11:40 +0100
      Re: [PATCHv3] arm: ftrace: Adds support for  CONFIG_DYNAMIC_FTRACE_WITH_REGS Abel Vesa <abelvesa@gmail.com> - 2017-02-10 13:10 +0100
        Re: [PATCHv3] arm: ftrace: Adds support for  CONFIG_DYNAMIC_FTRACE_WITH_REGS Russell King - ARM Linux <linux@armlinux.org.uk> - 2017-02-10 15:40 +0100
          Re: [PATCHv3] arm: ftrace: Adds support for  CONFIG_DYNAMIC_FTRACE_WITH_REGS Abel Vesa <abelvesa@gmail.com> - 2017-02-10 18:20 +0100
        Re: [PATCHv3] arm: ftrace: Adds support for CONFIG_DYNAMIC_FTRACE_WITH_REGS Jean-Jacques Hiblot <jjhiblot@traphandler.com> - 2017-02-10 17:30 +0100
          Re: [PATCHv3] arm: ftrace: Adds support for  CONFIG_DYNAMIC_FTRACE_WITH_REGS Abel Vesa <abelvesa@gmail.com> - 2017-02-10 19:40 +0100
  Re: [PATCHv3] arm: ftrace: Adds support for CONFIG_DYNAMIC_FTRACE_WITH_REGS Jean-Jacques Hiblot <jjhiblot@traphandler.com> - 2017-02-10 06:50 +0100

csiph-web