Commit 84030219 authored by Brendan Gregg's avatar Brendan Gregg Committed by GitHub

Merge pull request #65 from iovisor/fix-attach-usdt

usdt: fix attaching to USDT on Bionic Beaver
parents bc1b790f 1d8c5f6b
......@@ -344,7 +344,7 @@ void AttachedProbe::attach_usdt(int pid)
probe_.loc = loc.address;
int perf_event_fd = bpf_attach_uprobe(progfd_, attachtype(probe_.type),
eventname().c_str(), probe_.path.c_str(), loc.address - 0x400000, pid == 0 ? -1 : pid);
eventname().c_str(), probe_.path.c_str(), offset(), pid == 0 ? -1 : pid);
if (perf_event_fd < 0)
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment