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
  • Documentation
  • admin-guide
  • sysctl
  • kernel.rst
Find file BlameHistoryPermalink
  • Lepton Wu's avatar
    coredump: add %f for executable filename · f38c85f1
    Lepton Wu authored Aug 11, 2020
    
    
    The document reads "%e" should be "executable filename" while actually it
    could be changed by things like pr_ctl PR_SET_NAME.  People who uses "%e"
    in core_pattern get surprised when they find out they get thread name
    instead of executable filename.
    
    This is either a bug of document or a bug of code.  Since the behavior of
    "%e" is there for long time, it could bring another surprise for users if
    we "fix" the code.
    
    So we just "fix" the document.  And more, for users who really need the
    "executable filename" in core_pattern, we introduce a new "%f" for the
    real executable filename.  We already have "%E" for executable path in
    kernel, so just reuse most of its code for the new added "%f" format.
    
    Signed-off-by: default avatarLepton Wu <ytht.net@gmail.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Link: http://lkml.kernel.org/r/20200701031432.2978761-1-ytht.net@gmail.com
    
    
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    f38c85f1
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7