-
Notifications
You must be signed in to change notification settings - Fork 37.8k
doc: Add tracing.md, documenting eBPF tracing #20960
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
Conversation
Add documentation for bitcoin#19866.
9c26581
to
3accbc9
Compare
Wow! Concept ACK. |
Concept ACK |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Concept ACK for tracing documentation and USDTs in general.
However, NACK on this PR in it's current form. This adds documentation for USDT tracepoints that aren't merged in master. #19866 did only add build system detection of sys/sdt.h and the tracing framework, but not the mentioned tracepoints.
The two needed commits adding the documented tracepoints would be 16ed9bc and ea608d9 from this branch laanwj:usdt-probes. Did you mean to merge them first?
No, that's not my work, it's @jb55's. I'm really confused here. |
"Wladimir J. van der Laan" <notifications@github.com> writes:
> The two needed commits adding the documented tracepoints would be
> 16ed9bc and ea608d9 from this branch laanwj:usdt-probes. Did you mean
> to merge them first?
No, that's not my work, it's @jb55's. I'm really confused here.
We only merged the build support for static traces. You mentioned that
we should get that in first.
I don't think we decided what arguments the static traces should have
yet. In my connect_block example I was only passing the height, but we
probably want to pass a few more things.
Some goals for static traces should be:
- Somewhat stable API (order of arguments don't change) so people can
rely on these for scripting
- Some motivational use case
@0xB10C's connected_block trace looks useful as well.
Cheers,
Will
|
I think we should probably get a concept ACK from other contributors on whether we should start adding tracepoints all over the code. I can see the benefit that they're very powerful and add almost no overhead when not used. On the other hand, there's almost an unlimited number of things that could be traced, adding Do we know what other projects are doing? Is it common to put lots of USDTs into the master branch? Perhaps we should discuss what our approach should be in a core dev meeting. |
John Newbery <notifications@github.com> writes:
adding `TRACE()` macros in lots of places could potentially make the
source less readable, and it's possible to do a lot of useful tracing
with uprobes that don't require any changes to the source.
agreed, USDTs should accompanied by motivating examples and scripts. No
point adding USDTs that noone uses.
|
picked this up in #22006 |
Add documentation for #19866.