Commit 56eb2e63 authored by Brendan Gregg's avatar Brendan Gregg Committed by GitHub

Merge pull request #112 from iovisor/fix-begin-end

fix BEGIN / END probes
parents 0b72a90d c5bcf861
......@@ -33,6 +33,8 @@ int BPFtrace::add_probe(ast::Probe &p)
probe.orig_name = p.name();
probe.name = p.name();
probe.loc = 0;
probe.index = attach_point->index(probe.name) > 0 ?
attach_point->index(probe.name) : p.index();
special_probes_.push_back(probe);
continue;
}
......@@ -45,6 +47,8 @@ int BPFtrace::add_probe(ast::Probe &p)
probe.orig_name = p.name();
probe.name = p.name();
probe.loc = 0;
probe.index = attach_point->index(probe.name) > 0 ?
attach_point->index(probe.name) : p.index();
special_probes_.push_back(probe);
continue;
}
......
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