Commit 8af965e
committed
Avoid generating bindings for non-perf types and constants
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.1 parent 4cb9fa1 commit 8af965e
4 files changed
Lines changed: 11 additions & 971 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
96 | 107 | | |
97 | 108 | | |
98 | 109 | | |
| |||
0 commit comments