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

Don't rely on <linux/types.h> being present #1315

Merged
merged 2 commits into from
May 1, 2020
Merged

Conversation

danobi
Copy link
Member

@danobi danobi commented Apr 30, 2020

Especially inside containers where kernel headers are not installed,
<linux/types.h> may not be present.

We actually don't need this header at all if the system has BTF support.
We can just get everything from BTF.

Checklist
  • Language changes are updated in docs/reference_guide.md
  • User-visible and non-trivial changes updated in CHANGELOG.md

danobi added 2 commits April 29, 2020 19:11
Especially inside containers where kernel headers are not installed,
<linux/types.h> may not be present.

We actually don't need this header at all if the system has BTF support.
We can just get everything from BTF.
@danobi danobi merged commit 368bd0b into bpftrace:master May 1, 2020
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

Successfully merging this pull request may close these issues.

2 participants