Commit 6ddb5ec2 authored by Matheus Marchini's avatar Matheus Marchini

fix attach to tracepoint regression

Regression introduced by https://github.com/iovisor/bpftrace/pull/100.

We can attach to multiple tracepoints within the same process without
probem, which means we don't need to a suffix to it.

Fixes: https://github.com/iovisor/bpftrace/issues/103
parent 6f2f1fdb
......@@ -168,7 +168,7 @@ std::string AttachedProbe::eventname() const
offset_str << std::hex << offset();
return eventprefix() + sanitise(probe_.path) + "_" + offset_str.str() + index_str;
case ProbeType::tracepoint:
return probe_.attach_point + index_str;
return probe_.attach_point;
default:
abort();
}
......
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