Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

Phantomical
Copy link
Owner

The current way of generating bindings via bindgen creates entries for any type or constant that is reachable when including the headers listed in wrapper.h. In addition to the perf-related structs we care about, this includes:

  • A variety of unrelated kernel API types
  • A bunch of constants used as implementation details for making ioctls
  • A constant for every single syscall number
  • ... and more besides

There is no reason to include these in the generated bindings. Once present, however, removing or changing them becomes a breaking change. This is a one-shot change that changes the generation to only keep the relevant structs.

This is a breaking change and would require a perf-event-open-sys2 v6.0.0.

@Phantomical Phantomical added the breaking-change Merging this PR would require a major version bump label May 27, 2024
The current way of generating bindings via bindgen creates entries for
any type or constant that is reachable when including the headers listed
in wrapper.h. In addition to the perf-related structs we care about,
this includes:
- A variety of unrelated kernel API types
- A bunch of constants used as implementation details for making ioctls
- A constant for every single syscall number
- ... and more besides

There is no reason to include these in the generated bindings. Once
present, however, removing or changing them becomes a breaking change.
This is a one-shot change that changes the generation to only keep the
relevant structs.

This is a breaking change and would require a perf-event-open-sys2
v6.0.0.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking-change Merging this PR would require a major version bump
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant