Commit ea0de710 authored by cneira's avatar cneira

issue 174 make resolve_kname match exact string

parent 50c39995
......@@ -1276,9 +1276,9 @@ uint64_t BPFtrace::resolve_kname(const std::string &name)
std::string line;
std::string search = "\\b( ";
std::string search = "\\b";
search += name;
std::regex e (search + ")");
std::regex e (search + "\\b");
std::smatch match;
while (std::getline(file, line) && addr == 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