Replies: 1 comment
-
the point of registering BTF directly from the driver is to allow "Flex metadata" meaning that meta data format can be constructed on the fly according to user demand. I am sure we can find mutliple ways to reduce the 100+ LOC, but the goal is to have the dynamic btf_register/unregister API |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Since 5.11, it's now possible to obtain a BTF not only for vmlinux, but also for modules.
This will eliminate a need for manually composing and registering a BTF inside the driver code, which is 100+ locs for ice for example.
That's obviously not the most straightforward and trivial way, but could help a lot.
Beta Was this translation helpful? Give feedback.
All reactions