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
  • trace
  • fgraph.c
Find file BlameHistoryPermalink
  • Steven Rostedt (VMware)'s avatar
    x86/ftrace: Make function graph use ftrace directly · 0c0593b4
    Steven Rostedt (VMware) authored Oct 08, 2021
    We don't need special hook for graph tracer entry point,
    but instead we can use graph_ops::func function to install
    the return_hooker.
    
    This moves the graph tracing setup _before_ the direct
    trampoline prepares the stack, so the return_hooker will
    be called when the direct trampoline is finished.
    
    This simplifies the code, because we don't need to take into
    account the direct trampoline setup when preparing the graph
    tracer hooker and we can allow function graph tracer on entries
    registered with direct trampoline.
    
    Link: https://lkml.kernel.org/r/20211008091336.33616-4-jolsa@kernel.org
    
    
    
    [fixed compile error reported by kernel test robot <lkp@intel.com>]
    Signed-off-by: default avatarSteven Rostedt (VMware) <rostedt@goodmis.org>
    Signed-off-by: default avatarJiri Olsa <jolsa@kernel.org>
    Signed-off-by: default avatarSteven Rostedt (VMware) <rostedt@goodmis.org>
    0c0593b4
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7