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
  • powerpc
  • kernel
  • stacktrace.c
Find file BlameHistoryPermalink
  • Thadeu Lima de Souza Cascardo's avatar
    powerpc: Make /proc/self/stack always print the current stack · 4f9b514b
    Thadeu Lima de Souza Cascardo authored Mar 27, 2017
    
    
    For the current task, the kernel stack would only tell the last time the
    process was rescheduled, if ever. Use the current stack pointer for the
    current task.
    
    Otherwise, every once in a while, the stacktrace printed when reading
    /proc/self/stack would look like the process is running in userspace,
    while it's not, which some may consider as a bug.
    
    This is also consistent with some other architectures, like x86 and arm,
    at least.
    
    Signed-off-by: default avatarThadeu Lima de Souza Cascardo <cascardo@canonical.com>
    Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
    4f9b514b
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7