Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
  • linux
  • kernel
  • livepatch
  • patch.c
Find file BlameHistoryPermalink
  • Steven Rostedt (VMware)'s avatar
    livepatch: Use the default ftrace_ops instead of REGS when ARGS is available · 2860cd8a
    Steven Rostedt (VMware) authored Oct 28, 2020
    
    
    When CONFIG_HAVE_DYNAMIC_FTRACE_WITH_ARGS is available, the ftrace call
    will be able to set the ip of the calling function. This will improve the
    performance of live kernel patching where it does not need all the regs to
    be stored just to change the instruction pointer.
    
    If all archs that support live kernel patching also support
    HAVE_DYNAMIC_FTRACE_WITH_ARGS, then the architecture specific function
    klp_arch_set_pc() could be made generic.
    
    It is possible that an arch can support HAVE_DYNAMIC_FTRACE_WITH_ARGS but
    not HAVE_DYNAMIC_FTRACE_WITH_REGS and then have access to live patching.
    
    Cc: Josh Poimboeuf <jpoimboe@redhat.com>
    Cc: Jiri Kosina <jikos@kernel.org>
    Cc: live-patching@vger.kernel.org
    Acked-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
    Acked-by: default avatarMiroslav Benes <mbenes@suse.cz>
    Signed-off-by: default avatarSteven Rostedt (VMware) <rostedt@goodmis.org>
    2860cd8a
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7