Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

selftests/bpf: Fix parsing of prog types in UAPI hdr for bpftool sync #250

Closed
wants to merge 2 commits into from

Commits on Apr 4, 2022

  1. adding ci files

    Nobody committed Apr 4, 2022
    Configuration menu
    Copy the full SHA
    4d4e827 View commit details
    Browse the repository at this point in the history
  2. selftests/bpf: Fix parsing of prog types in UAPI hdr for bpftool sync

    The script for checking that various lists of types in bpftool remain in
    sync with the UAPI BPF header uses a regex to parse enum bpf_prog_type.
    If this enum contains a set of values different from the list of program
    types in bpftool, it complains.
    
    This script should have reported the addition, some time ago, of the new
    BPF_PROG_TYPE_SYSCALL, which was not reported to bpftool's program types
    list. It failed to do so, because it failed to parse that new type from
    the enum. This is because the new value, in the BPF header, has an
    explicative comment on the same line, and the regex does not support
    that.
    
    Let's update the script to support parsing enum values when they have
    comments on the same line.
    
    Cc: Andrii Nakryiko <[email protected]>
    Cc: Milan Landaverde <[email protected]>
    Signed-off-by: Quentin Monnet <[email protected]>
    qmonnet authored and Nobody committed Apr 4, 2022
    Configuration menu
    Copy the full SHA
    fa9f39d View commit details
    Browse the repository at this point in the history