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

bpf2go: generate Go types from BTF #552

Merged
merged 4 commits into from Feb 16, 2022
Merged

bpf2go: generate Go types from BTF #552

merged 4 commits into from Feb 16, 2022

Commits on Feb 16, 2022

  1. btf: allow finding type by name alone

    Add a function which allows finding a type by name alone. This
    is useful for code that doesn't care about the concrete type
    returned.
    lmb committed Feb 16, 2022
    Copy the full SHA
    d63bb55 View commit details
    Browse the repository at this point in the history
  2. btf: export UnderlyingType

    Export an infallible version of skipQualifiersAndTypedef. Circular
    types / very long chains of qualifiers or typedefs are a corner
    case that shouldn't really happen, so let's not burden the callers
    with this detail.
    lmb committed Feb 16, 2022
    Copy the full SHA
    abce994 View commit details
    Browse the repository at this point in the history
  3. collection: expose BTF spec

    lmb committed Feb 16, 2022
    Copy the full SHA
    600d4f0 View commit details
    Browse the repository at this point in the history
  4. cmd/bpf2go: generate types from BTF

    Use GoFormatter to generate type definitions for types used as map keys
    and values. Allow users to emit additional types via a command line flag.
    lmb committed Feb 16, 2022
    Copy the full SHA
    b07a66c View commit details
    Browse the repository at this point in the history