Lines Matching refs:tracepoint
268 StatusTuple BPF::attach_tracepoint(const std::string& tracepoint, in attach_tracepoint() argument
270 if (tracepoints_.find(tracepoint) != tracepoints_.end()) in attach_tracepoint()
272 tracepoint.c_str()); in attach_tracepoint()
274 auto pos = tracepoint.find(":"); in attach_tracepoint()
275 if ((pos == std::string::npos) || (pos != tracepoint.rfind(":"))) in attach_tracepoint()
276 return StatusTuple(-1, "Unable to parse Tracepoint %s", tracepoint.c_str()); in attach_tracepoint()
277 std::string tp_category = tracepoint.substr(0, pos); in attach_tracepoint()
278 std::string tp_name = tracepoint.substr(pos + 1); in attach_tracepoint()
289 tracepoint.c_str(), probe_func.c_str()); in attach_tracepoint()
295 tracepoints_[tracepoint] = std::move(p); in attach_tracepoint()
446 StatusTuple BPF::detach_tracepoint(const std::string& tracepoint) { in detach_tracepoint() argument
447 auto it = tracepoints_.find(tracepoint); in detach_tracepoint()
449 return StatusTuple(-1, "No open Tracepoint %s", tracepoint.c_str()); in detach_tracepoint()
682 StatusTuple BPF::detach_tracepoint_event(const std::string& tracepoint, in detach_tracepoint_event() argument