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
  • scripts
  • bpf_doc.py
Find file BlameHistoryPermalink
  • Usama Arif's avatar
    bpf/scripts: Raise an exception if the correct number of sycalls are not generated · 0ba3929e
    Usama Arif authored Jan 19, 2022
    
    
    Currently the syscalls rst and subsequently man page are auto-generated
    using function documentation present in bpf.h. If the documentation for the
    syscall is missing or doesn't follow a specific format, then that syscall
    is not dumped in the auto-generated rst.
    
    This patch checks the number of syscalls documented within the header file
    with those present as part of the enum bpf_cmd and raises an Exception if
    they don't match. It is not needed with the currently documented upstream
    syscalls, but can help in debugging when developing new syscalls when
    there might be missing or misformatted documentation.
    
    The function helper_number_check is moved to the Printer parent
    class and renamed to elem_number_check as all the most derived children
    classes are using this function now.
    
    Signed-off-by: default avatarUsama Arif <usama.arif@bytedance.com>
    Signed-off-by: default avatarAndrii Nakryiko <andrii@kernel.org>
    Reviewed-by: default avatarQuentin Monnet <quentin@isovalent.com>
    Link: https://lore.kernel.org/bpf/20220119114442.1452088-3-usama.arif@bytedance.com
    0ba3929e
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7