Skip to content

Conversation

laanwj
Copy link
Member

@laanwj laanwj commented Jan 18, 2021

Add documentation for #19866.

@laanwj laanwj added the Docs label Jan 18, 2021
@laanwj laanwj force-pushed the 2021-01-tracing-doc branch from 9c26581 to 3accbc9 Compare January 18, 2021 21:36
@jonatack
Copy link
Member

Wow! Concept ACK.

@practicalswift
Copy link
Contributor

Concept ACK

Copy link
Contributor

@RiccardoMasutti RiccardoMasutti left a comment

Choose a reason for hiding this comment

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

ACK

Copy link
Contributor

@0xB10C 0xB10C left a 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?

@laanwj
Copy link
Member Author

laanwj commented Jan 19, 2021

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.

@laanwj laanwj closed this Jan 19, 2021
@jb55
Copy link
Contributor

jb55 commented Jan 19, 2021 via email

@jnewbery
Copy link
Contributor

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

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.

@jb55
Copy link
Contributor

jb55 commented Jan 21, 2021 via email

@0xB10C
Copy link
Contributor

0xB10C commented May 20, 2021

picked this up in #22006

@bitcoin bitcoin locked as resolved and limited conversation to collaborators Aug 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants