aboutsummaryrefslogtreecommitdiff
path: root/test/functional/interface_usdt_net.py
diff options
context:
space:
mode:
author0xb10c <0xb10c@gmail.com>2022-07-01 13:08:49 +0200
committer0xb10c <0xb10c@gmail.com>2022-07-02 14:37:29 +0200
commit220a5a2841172a07d6d7849596316f0e0933e272 (patch)
treeefe8740f871ae1c0291f5790e9b459c7bdab0174 /test/functional/interface_usdt_net.py
parent4129c1375430dbfe8dd414868c43fceb3d091fc3 (diff)
downloadbitcoin-220a5a2841172a07d6d7849596316f0e0933e272.tar.xz
test: hook into PID in tracing tests
This makes sure to NOT hook into other bitcoind binaries run in paralell in the test framework. We only want to trace the intended binary. In interface_usdt_utxocache.py: While testing the utxocache flush with pruning, bitcoind is restarted and we need to hook into the new PID again.
Diffstat (limited to 'test/functional/interface_usdt_net.py')
-rwxr-xr-xtest/functional/interface_usdt_net.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/interface_usdt_net.py b/test/functional/interface_usdt_net.py
index 9522cd8c59..2235da702b 100755
--- a/test/functional/interface_usdt_net.py
+++ b/test/functional/interface_usdt_net.py
@@ -109,7 +109,7 @@ class NetTracepointTest(BitcoinTestFramework):
self.log.info(
"hook into the net:inbound_message and net:outbound_message tracepoints")
- ctx = USDT(path=str(self.options.bitcoind))
+ ctx = USDT(pid=self.nodes[0].process.pid)
ctx.enable_probe(probe="net:inbound_message",
fn_name="trace_inbound_message")
ctx.enable_probe(probe="net:outbound_message",