Commit dbc1cd68 authored by Alastair Robertson's avatar Alastair Robertson

Fix build

BCC has added support for attaching kprobes to custom offsets from the
start of a function. Just use 0 for now.
parent d0b7b3b0
......@@ -203,7 +203,7 @@ void AttachedProbe::load_prog()
void AttachedProbe::attach_kprobe()
{
int perf_event_fd = bpf_attach_kprobe(progfd_, attachtype(probe_.type),
eventname().c_str(), probe_.attach_point.c_str());
eventname().c_str(), probe_.attach_point.c_str(), 0);
if (perf_event_fd < 0)
throw std::runtime_error("Error attaching probe: '" + probe_.name + "'");
......
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