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
  • stacktrace.c
Find file BlameHistoryPermalink
  • Jiri Slaby's avatar
    stacktrace: Don't skip first entry on noncurrent tasks · b0c51f15
    Jiri Slaby authored Oct 30, 2019
    When doing cat /proc/<PID>/stack, the output is missing the first entry.
    When the current code walks the stack starting in stack_trace_save_tsk,
    it skips all scheduler functions (that's OK) plus one more function. But
    this one function should be skipped only for the 'current' task as it is
    stack_trace_save_tsk proper.
    
    The original code (before the common infrastructure) skipped one
    function only for the 'current' task -- see save_stack_trace_tsk before
    3599fe12. So do so also in the new infrastructure now.
    
    Fixes: 214d8ca6
    
     ("stacktrace: Provide common infrastructure")
    Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
    Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
    Tested-by: default avatarMichal Suchanek <msuchanek@suse.de>
    Acked-by: default avatarJosh Poimboeuf <jpoimboe@redhat.com>
    Link: https://lkml.kernel.org/r/20191030072545.19462-1-jslaby@suse.cz
    b0c51f15
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7