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

Move BTF verbose messages to debug messages #1554

Merged
merged 1 commit into from
Oct 21, 2020

Conversation

danobi
Copy link
Member

@danobi danobi commented Oct 12, 2020

Before, you'd get:

$ sudo ./build/src/bpftrace -lv "kfunc:hrtimers_dead_cpu"
BTF: using data from /sys/kernel/btf/vmlinux
kfunc:hrtimers_dead_cpu
    unsigned int scpu;
    int retval;

The first message is kind of ugly and not very actionable or informative
for users. Better to move it to debug where bpftrace developers might
actually make use of the information.

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

@danobi
Copy link
Member Author

danobi commented Oct 13, 2020

cc @olsajiri

Before, you'd get:
```
$ sudo ./build/src/bpftrace -lv "kfunc:hrtimers_dead_cpu"
BTF: using data from /sys/kernel/btf/vmlinux
kfunc:hrtimers_dead_cpu
    unsigned int scpu;
    int retval;
```

The first message is kind of ugly and not very actionable or informative
for users. Better to move it to debug where bpftrace developers might
actually make use of the information.
@danobi danobi merged commit dee0164 into bpftrace:master Oct 21, 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