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
You need to sign in or sign up before continuing.
  • linux
  • arch
  • arm64
  • kernel
  • stacktrace.c
Find file BlameHistoryPermalink
  • Puranjay Mohan's avatar
    arm64: stacktrace: fix the usage of ftrace_graph_ret_addr() · c060f932
    Puranjay Mohan authored Jun 18, 2024
    
    
    ftrace_graph_ret_addr() takes an 'idx' integer pointer that is used to
    optimize the stack unwinding process. arm64 currently passes `NULL` for
    this parameter which stops it from utilizing these optimizations.
    
    Further, the current code for ftrace_graph_ret_addr() will just return
    the passed in return address if it is NULL which will break this usage.
    
    Pass a valid integer pointer to ftrace_graph_ret_addr() similar to
    x86_64's stack unwinder.
    
    Signed-off-by: default avatarPuranjay Mohan <puranjay@kernel.org>
    Fixes: 29c1c24a
    
     ("function_graph: Fix up ftrace_graph_ret_addr()")
    Acked-by: default avatarSteven Rostedt (Google) <rostedt@goodmis.org>
    Acked-by: default avatarWill Deacon <will@kernel.org>
    Reviewed-by: default avatarMark Rutland <mark.rutland@arm.com>
    Tested-by: default avatarMark Rutland <mark.rutland@arm.com>
    Reviewed-by: default avatarSteven Rostedt (Google) <rostedt@goodmis.org>
    Link: https://lore.kernel.org/r/20240618162342.28275-1-puranjay@kernel.org
    
    
    Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
    c060f932
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7