• Home
  • Raw
  • Download

Lines Matching refs:StatusTuple

57 StatusTuple BPF::init(const std::string& bpf_program,  in init()
78 return StatusTuple(-1, "Unable to initialize BPF program"); in init()
80 return StatusTuple(0); in init()
90 StatusTuple BPF::detach_all() { in detach_all()
159 return StatusTuple(-1, error_msg); in detach_all()
161 return StatusTuple(0); in detach_all()
164 StatusTuple BPF::attach_kprobe(const std::string& kernel_func, in attach_kprobe()
170 return StatusTuple(-1, "kprobe %s already attached", probe_event.c_str()); in attach_kprobe()
180 return StatusTuple(-1, "Unable to attach %skprobe for %s using %s", in attach_kprobe()
189 return StatusTuple(0); in attach_kprobe()
192 StatusTuple BPF::attach_uprobe(const std::string& binary_path, in attach_uprobe()
203 return StatusTuple(-1, "uprobe %s already attached", probe_event.c_str()); in attach_uprobe()
213 return StatusTuple( in attach_uprobe()
224 return StatusTuple(0); in attach_uprobe()
227 StatusTuple BPF::attach_usdt(const USDT& usdt, pid_t pid) { in attach_usdt()
232 return StatusTuple(-1, "Unable to enable USDT " + u.print_name()); in attach_usdt()
257 return StatusTuple(-1, err_msg); in attach_usdt()
259 return StatusTuple(0); in attach_usdt()
264 return StatusTuple(-1, "USDT %s not found", usdt.print_name().c_str()); in attach_usdt()
267 StatusTuple BPF::attach_tracepoint(const std::string& tracepoint, in attach_tracepoint()
270 return StatusTuple(-1, "Tracepoint %s already attached", in attach_tracepoint()
275 return StatusTuple(-1, "Unable to parse Tracepoint %s", tracepoint.c_str()); in attach_tracepoint()
287 return StatusTuple(-1, "Unable to attach Tracepoint %s using %s", in attach_tracepoint()
295 return StatusTuple(0); in attach_tracepoint()
298 StatusTuple BPF::attach_perf_event(uint32_t ev_type, uint32_t ev_config, in attach_perf_event()
304 return StatusTuple(-1, "Perf event type %d config %d already attached", in attach_perf_event()
325 return StatusTuple(-1, "Failed to attach perf event type %d config %d", in attach_perf_event()
335 return StatusTuple(0); in attach_perf_event()
338 StatusTuple BPF::attach_perf_event_raw(void* perf_event_attr, in attach_perf_event_raw()
345 return StatusTuple(-1, "Perf event type %d config %d already attached", in attach_perf_event_raw()
366 return StatusTuple(-1, "Failed to attach perf event type %d config %d", in attach_perf_event_raw()
376 return StatusTuple(0); in attach_perf_event_raw()
379 StatusTuple BPF::detach_kprobe(const std::string& kernel_func, in detach_kprobe()
385 return StatusTuple(-1, "No open %skprobe for %s", in detach_kprobe()
391 return StatusTuple(0); in detach_kprobe()
394 StatusTuple BPF::detach_uprobe(const std::string& binary_path, in detach_uprobe()
404 return StatusTuple(-1, "No open %suprobe for binary %s symbol %s addr %lx", in detach_uprobe()
410 return StatusTuple(0); in detach_uprobe()
413 StatusTuple BPF::detach_usdt(const USDT& usdt, pid_t pid) { in detach_usdt()
436 return StatusTuple(-1, err_msg); in detach_usdt()
438 return StatusTuple(0); in detach_usdt()
442 return StatusTuple(-1, "USDT %s not found", usdt.print_name().c_str()); in detach_usdt()
445 StatusTuple BPF::detach_tracepoint(const std::string& tracepoint) { in detach_tracepoint()
448 return StatusTuple(-1, "No open Tracepoint %s", tracepoint.c_str()); in detach_tracepoint()
452 return StatusTuple(0); in detach_tracepoint()
455 StatusTuple BPF::detach_perf_event(uint32_t ev_type, uint32_t ev_config) { in detach_perf_event()
458 return StatusTuple(-1, "Perf Event type %d config %d not attached", ev_type, in detach_perf_event()
462 return StatusTuple(0); in detach_perf_event()
465 StatusTuple BPF::detach_perf_event_raw(void* perf_event_attr) { in detach_perf_event_raw()
470 StatusTuple BPF::open_perf_event(const std::string& name, uint32_t type, in open_perf_event()
475 return StatusTuple(-1, "open_perf_event: unable to find table_storage %s", in open_perf_event()
481 return StatusTuple(0); in open_perf_event()
484 StatusTuple BPF::close_perf_event(const std::string& name) { in close_perf_event()
487 return StatusTuple(-1, "Perf Event for %s not open", name.c_str()); in close_perf_event()
489 return StatusTuple(0); in close_perf_event()
492 StatusTuple BPF::open_perf_buffer(const std::string& name, in open_perf_buffer()
499 return StatusTuple(-1, in open_perf_buffer()
505 return StatusTuple(-1, "open_perf_buffer page_cnt must be a power of two"); in open_perf_buffer()
508 return StatusTuple(0); in open_perf_buffer()
511 StatusTuple BPF::close_perf_buffer(const std::string& name) { in close_perf_buffer()
514 return StatusTuple(-1, "Perf buffer for %s not open", name.c_str()); in close_perf_buffer()
516 return StatusTuple(0); in close_perf_buffer()
531 StatusTuple BPF::load_func(const std::string& func_name, bpf_prog_type type, in load_func()
535 return StatusTuple(0); in load_func()
540 return StatusTuple(-1, "Can't find start of function %s", in load_func()
556 return StatusTuple(-1, "Failed to load %s: %d", func_name.c_str(), fd); in load_func()
561 return StatusTuple(0); in load_func()
564 StatusTuple BPF::unload_func(const std::string& func_name) { in unload_func()
567 return StatusTuple(0); in unload_func()
571 return StatusTuple(-1, "Can't close FD for %s: %d", it->first.c_str(), res); in unload_func()
574 return StatusTuple(0); in unload_func()
593 StatusTuple BPF::check_binary_symbol(const std::string& binary_path, in check_binary_symbol()
602 return StatusTuple( in check_binary_symbol()
613 return StatusTuple(0); in check_binary_symbol()
663 StatusTuple BPF::detach_kprobe_event(const std::string& event, in detach_kprobe_event()
668 return StatusTuple(-1, "Unable to detach kprobe %s", event.c_str()); in detach_kprobe_event()
669 return StatusTuple(0); in detach_kprobe_event()
672 StatusTuple BPF::detach_uprobe_event(const std::string& event, in detach_uprobe_event()
677 return StatusTuple(-1, "Unable to detach uprobe %s", event.c_str()); in detach_uprobe_event()
678 return StatusTuple(0); in detach_uprobe_event()
681 StatusTuple BPF::detach_tracepoint_event(const std::string& tracepoint, in detach_tracepoint_event()
687 return StatusTuple(0); in detach_tracepoint_event()
690 StatusTuple BPF::detach_perf_event_all_cpu(open_probe_t& attr) { in detach_perf_event_all_cpu()
706 return StatusTuple(-1, err_msg); in detach_perf_event_all_cpu()
707 return StatusTuple(0); in detach_perf_event_all_cpu()
764 StatusTuple USDT::init() { in init()
773 return StatusTuple(-1, "No valid Binary Path or PID provided"); in init()
776 return StatusTuple(-1, "Unable to load USDT " + print_name()); in init()
791 return StatusTuple(-1, "Unable to find USDT " + print_name()); in init()
797 return StatusTuple( in init()
802 return StatusTuple(0); in init()