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
  • tools
  • objtool
  • objtool.c
Find file BlameHistoryPermalink
  • Kamalesh Babulal's avatar
    objtool: Print top level commands on incorrect usage · 6a93bb7e
    Kamalesh Babulal authored Oct 14, 2017
    
    
    Print top-level objtool commands, along with the error on incorrect
    command line usage. Objtool command line parser exit's with code 129,
    for incorrect usage. Convert the cmd_usage() exit code also, to maintain
    consistency across objtool.
    
    After the patch:
    
      $ ./objtool -j
    
      Unknown option: -j
    
      usage: objtool COMMAND [ARGS]
    
      Commands:
         check   Perform stack metadata validation on an object file
         orc     Generate in-place ORC unwind tables for an object file
    
      $ echo $?
      129
    
    Signed-off-by: default avatarKamalesh Babulal <kamalesh@linux.vnet.ibm.com>
    Acked-by: default avatarJosh Poimboeuf <jpoimboe@redhat.com>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Link: http://lkml.kernel.org/r/1507992474-16142-1-git-send-email-kamalesh@linux.vnet.ibm.com
    
    
    Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
    6a93bb7e
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7