Page MenuHomePhabricator

tracing: utxocache tracepoints
ClosedPublic

Authored by Fabien on Dec 1 2022, 10:13.

Details

Reviewers
PiRK
Group Reviewers
Restricted Project
Commits
rABCe2cc0f927a2c: tracing: utxocache tracepoints
Summary
The tracepoints are further documented in docs/tracing.md and the usage is shown via the two newly added example scripts in contrib/tracing/.

Backport of core#22902.
Backport of core#23907.

Notes:

  • The amount is passed as string because our type can't be converted to int
  • CTxOut and CCoin accessors are used where applicable
  • I removed the casts that are both useless and even mixing stding and posix types
Test Plan

Build with tracing, run bitcoind, then:

sudo ../contrib/tracing/log_utxocache_flush.py ./src/bitcoind
sudo bpftrace ../contrib/tracing/log_utxos.bt

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Fabien requested review of this revision.Dec 1 2022, 10:13
PiRK added a subscriber: PiRK.
PiRK added inline comments.
contrib/tracing/log_utxocache_flush.py
7 ↗(On Diff #36870)

Bitcoin ABC

This revision is now accepted and ready to land.Dec 1 2022, 12:01
This revision was automatically updated to reflect the committed changes.
Fabien marked an inline comment as done.