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

hist: Support values creater than 4G #2822

Merged
merged 3 commits into from
Nov 10, 2023
Merged

hist: Support values creater than 4G #2822

merged 3 commits into from
Nov 10, 2023

Conversation

danobi
Copy link
Member

@danobi danobi commented Nov 9, 2023

Before we only supported values up to 4G. Unclear why that was. We have
a whole u64 to store bucket position. Supporting up to INT64_MAX still
only takes a u8. So might as well support up to INT64_MAX.

This fixes #856.

Checklist
  • Language changes are updated in man/adoc/bpftrace.adoc and if needed in docs/reference_guide.md
  • User-visible and non-trivial changes updated in CHANGELOG.md
  • The new behaviour is covered by tests

Before we only supported values up to 4G. Unclear why that was. We have
a whole u64 to store bucket position. Supporting up to INT64_MAX still
only takes a u8. So might as well support up to INT64_MAX.

This fixes bpftrace#856.
@danobi danobi added the do-not-squash Do not squash PR commits label Nov 9, 2023
@danobi danobi merged commit ab863ef into bpftrace:master Nov 10, 2023
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do-not-squash Do not squash PR commits
Projects
None yet
Development

Successfully merging this pull request may close these issues.

hist() doesn't support 64 bit values
2 participants