Skip to content

Commit 31c5ebc

Browse files
committed
tracing: fix invalid argument in mempool_monitor
The mempool_monitor tracing tool is incorrectly reading the reason as the first argument. Fix this!
1 parent ad5cd12 commit 31c5ebc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contrib/tracing/mempool_monitor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
void *phash = NULL, *preason = NULL;
8181
bpf_usdt_readarg(1, ctx, phash);
8282
bpf_probe_read_user(&removed.hash, sizeof(removed.hash), phash);
83-
bpf_usdt_readarg(1, ctx, preason);
83+
bpf_usdt_readarg(2, ctx, preason);
8484
bpf_probe_read_user_str(&removed.reason, sizeof(removed.reason), preason);
8585
bpf_usdt_readarg(3, ctx, &removed.vsize);
8686
bpf_usdt_readarg(4, ctx, &removed.fee);
@@ -95,7 +95,7 @@
9595
void *phash = NULL, *preason = NULL;
9696
bpf_usdt_readarg(1, ctx, phash);
9797
bpf_probe_read_user(&rejected.hash, sizeof(rejected.hash), phash);
98-
bpf_usdt_readarg(1, ctx, preason);
98+
bpf_usdt_readarg(2, ctx, preason);
9999
bpf_probe_read_user_str(&rejected.reason, sizeof(rejected.reason), preason);
100100
rejected_events.perf_submit(ctx, &rejected, sizeof(rejected));
101101
return 0;

0 commit comments

Comments
 (0)