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
  • arch
  • riscv
  • kernel
  • stacktrace.c
Find file BlameHistoryPermalink
  • Alan Kao's avatar
    riscv/ftrace: Add HAVE_FUNCTION_GRAPH_RET_ADDR_PTR support · b785ec12
    Alan Kao authored Feb 13, 2018
    
    
    In walk_stackframe, the pc now receives the address from calling
    ftrace_graph_ret_addr instead of manual calculation.
    
    Note that the original calculation,
            pc = frame->ra - 4
    is buggy when the instruction at the return address happened to be a
    compressed inst. But since it is not a critical part of ftrace, it is
    ignored for now to ease the review process.
    
    Cc: Greentime Hu <greentime@andestech.com>
    Signed-off-by: default avatarAlan Kao <alankao@andestech.com>
    Signed-off-by: default avatarPalmer Dabbelt <palmer@sifive.com>
    b785ec12
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7