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
  • core.c
Find file BlameHistoryPermalink
  • Michael Ellerman's avatar
    livepatch: Allow architectures to specify an alternate ftrace location · 28e7cbd3
    Michael Ellerman authored Mar 24, 2016
    
    
    When livepatch tries to patch a function it takes the function address
    and asks ftrace to install the livepatch handler at that location.
    ftrace will look for an mcount call site at that exact address.
    
    On powerpc the mcount location is not the first instruction of the
    function, and in fact it's not at a constant offset from the start of
    the function. To accommodate this add a hook which arch code can
    override to customise the behaviour.
    
    Signed-off-by: default avatarTorsten Duwe <duwe@suse.de>
    Signed-off-by: default avatarBalbir Singh <bsingharora@gmail.com>
    Signed-off-by: default avatarPetr Mladek <pmladek@suse.com>
    Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
    28e7cbd3
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7