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

btf: tracepoint: Prefer BTF data if available #1439

Merged
merged 1 commit into from
Jul 27, 2020

Conversation

danobi
Copy link
Member

@danobi danobi commented Jul 25, 2020

Before, if a tracepoint argument was accessed, bpftrace would prefer
using headers instead of BTF. This causes some friction for users/hosts
that don't have headers installed. They would have to pass in --btf to
override the default headers behavior.

This commit makes BTF the default if it's available. Now, users don't
need to pass in --btf.

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

Before, if a tracepoint argument was accessed, bpftrace would prefer
using headers instead of BTF. This causes some friction for users/hosts
that don't have headers installed. They would have to pass in --btf to
override the default headers behavior.

This commit makes BTF the default if it's available. Now, users don't
need to pass in --btf.
@danobi danobi merged commit 7adfaab into bpftrace:master Jul 27, 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