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

Pipe helper errors into normal text and json output #2326

Merged
merged 1 commit into from
Aug 16, 2022

Conversation

BurntBrunch
Copy link

@BurntBrunch BurntBrunch commented Aug 12, 2022

Helper errors (-k or -kk) are currently only visible on stderr.
Change that behavior to emit them to text output (-o) and in JSON
format.

This allows tools that process the JSON output to account for the
errors, similarly to lost perf events.

Checklist
  • 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.

Good idea, I like this. There are some clang-format issues that need to be fixed, though.

Helper errors (-k or -kk) are currently only visible on stderr.
Change that behavior to emit them to text output (-o) and in JSON
format.

This allows tools that process the JSON output to account for the
errors, similarly to lost perf events.
@BurntBrunch
Copy link
Author

Fixed clang format and added a changelog entry.

@viktormalik viktormalik merged commit 1c6687e into bpftrace:master Aug 16, 2022
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.

3 participants