Skip to content

Commit

Permalink
mysqld_slower: Fix breakage after USDT API change
Browse files Browse the repository at this point in the history
A recent PR to the USDT infrastructure changed the BPF
module constructor to accept an array of USDT contexts.
This commit updates `mysqld_slower` to use that new
constructor.
  • Loading branch information
goldshtn committed Oct 17, 2016
1 parent 4725a72 commit 54c1d6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/mysqld_qslower.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def usage():
print(bpf_text)

# initialize BPF
b = BPF(text=bpf_text, usdt=u)
b = BPF(text=bpf_text, usdt_contexts=[u])

# header
print("Tracing MySQL server queries for PID %d slower than %s ms..." % (pid,
Expand Down

0 comments on commit 54c1d6f

Please sign in to comment.