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

btfhub-archive does not contain BTF for kernel modules #7

Closed
3 tasks
brycekahle opened this issue Jan 23, 2024 · 2 comments
Closed
3 tasks

btfhub-archive does not contain BTF for kernel modules #7

brycekahle opened this issue Jan 23, 2024 · 2 comments

Comments

@brycekahle
Copy link
Member

brycekahle commented Jan 23, 2024

The archive currently only contains the kernel/vmlinux BTF for each kernel version. In order to utilize CO-RE on kernel module functions, we need BTF for each kernel module as well.

Checklist for full support:

  • archive contains BTF for kernel modules
  • loader supports providing vmlinux and kmod BTF. cilium/ebpf PR, btfhub already supports.
  • minimization of kmod BTF is possible. Working on it here (on mailing list soon).
@brycekahle
Copy link
Member Author

In order to mirror the sysfs-provided BTF, I will be changing the vmlinux BTF name within each archive from the uname -r value to vmlinux. This will be a breaking change.

@brycekahle
Copy link
Member Author

Fixed in DataDog/btfhub-archive#3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant