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

print: Print single map values #3027

Merged
merged 1 commit into from
Mar 1, 2024
Merged

Conversation

arthurshau
Copy link
Contributor

@arthurshau arthurshau commented Mar 1, 2024

Allows indexing a map with key(s) to print single map values while using the print() function.

Resolves #2779.

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

Copy link
Contributor

@viktormalik viktormalik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

Just one comment about an error message.

src/ast/passes/semantic_analyser.cpp Outdated Show resolved Hide resolved
@arthurshau
Copy link
Contributor Author

Addressed comments

Allows indexing a map with key(s) to print single map values while
using the print() function.
Copy link
Contributor

@viktormalik viktormalik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Copy link
Member

@ajor ajor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@viktormalik viktormalik merged commit 7c98c79 into bpftrace:master Mar 1, 2024
19 checks passed
@arthurshau arthurshau deleted the printsingle branch March 1, 2024 22:33
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.

print() single map values
3 participants