0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-02-12 11:19:08 -05:00
bitcoin-bitcoin-core/cmake/module
0xb10c d524c1ec06
tracing: dedup TRACE macros & rename to TRACEPOINT
This deduplicates the TRACEx macros by using systemtaps STAP_PROBEV[0]
variadic macro instead of the DTrace compability DTRACE_PROBE[1] macros.
Bitcoin Core never had DTrace tracepoints, so we don't need to use the
drop-in replacement for it. As noted in pr25541[2], these macros aren't
compatibile with DTrace on macOS anyway.

This also renames the TRACEx macro to TRACEPOINT to clarify what the
macro does: inserting a tracepoint vs tracing (logging) something.

[0]: https://sourceware.org/git/?p=systemtap.git;a=blob;f=includes/sys/sdt.h;h=24d5e01c37805e55c36f7202e5d4e821b85167a1;hb=ecab2afea46099b4e7dfd551462689224afdbe3a#l407
[1]: https://sourceware.org/git/?p=systemtap.git;a=blob;f=includes/sys/sdt.h;h=24d5e01c37805e55c36f7202e5d4e821b85167a1;hb=ecab2afea46099b4e7dfd551462689224afdbe3a#l490
[2]: https://github.com/bitcoin/bitcoin/pull/25541/files#diff-553886c5f808e01e3452c7b21e879cc355da388ef7680bf310f6acb926d43266R30-R31

Co-authored-by: Martin Leitner-Ankerl <martin.ankerl@gmail.com>
2024-10-28 14:23:47 +01:00
..
AddBoostIfNeeded.cmake cmake: scope Boost Test check to vcpkg 2024-09-05 16:15:27 +01:00
AddWindowsResources.cmake cmake: Add AddWindowsResources module 2024-08-16 21:19:11 +01:00
CheckSourceCompilesAndLinks.cmake cmake: Add introspection module 2024-08-16 19:27:36 +01:00
FindBerkeleyDB.cmake cmake: Add wallet functionality 2024-08-16 19:27:40 +01:00
FindLibevent.cmake cmake: Add FindLibevent module 2024-08-16 19:27:39 +01:00
FindQt.cmake cmake: Avoid hardcoding Qt's major version in Find module 2024-10-01 13:43:30 +01:00
FindUSDT.cmake tracing: dedup TRACE macros & rename to TRACEPOINT 2024-10-28 14:23:47 +01:00
FlagsSummary.cmake build: Print CMAKE_CXX_COMPILER_ARG1 in summary 2024-09-06 21:59:52 +01:00
GenerateHeaders.cmake test: Use span for raw data 2024-09-05 10:57:19 +02:00
GenerateSetupNsi.cmake cmake: add USE_SOURCE_PERMISSIONS to all configure_file usage 2024-09-06 10:52:19 +01:00
GetTargetInterface.cmake cmake: Print compiler and linker flags in summary 2024-08-16 19:27:36 +01:00
Maintenance.cmake build: Use CMake's default permissions in macOS deploy target 2024-09-10 15:44:17 +01:00
ProcessConfigurations.cmake build: Add missed -g for "Coverage" build configuration 2024-09-04 16:02:19 +01:00
TestAppendRequiredLibraries.cmake cmake: Add introspection module 2024-08-16 19:27:36 +01:00
TryAppendCXXFlags.cmake build: Delete dead code that implements IF_CHECK_FAILED option 2024-09-08 16:34:04 +01:00
TryAppendLinkerFlag.cmake build: Delete dead code that implements IF_CHECK_FAILED option 2024-09-08 16:34:04 +01:00
WarnAboutGlobalProperties.cmake cmake: Introduce interface libraries to encapsulate common flags 2024-08-16 19:27:34 +01:00