Lines Matching refs:StatusTuple
42 StatusTuple BPFTable::get_value(const std::string& key_str, in get_value()
47 StatusTuple r(0); in get_value()
54 return StatusTuple(-1, "error getting value"); in get_value()
59 StatusTuple BPFTable::get_value(const std::string& key_str, in get_value()
65 StatusTuple r(0); in get_value()
72 return StatusTuple(-1, "error getting value"); in get_value()
81 return StatusTuple(0); in get_value()
84 StatusTuple BPFTable::update_value(const std::string& key_str, in update_value()
89 StatusTuple r(0); in update_value()
100 return StatusTuple(-1, "error updating element"); in update_value()
102 return StatusTuple(0); in update_value()
105 StatusTuple BPFTable::update_value(const std::string& key_str, in update_value()
111 StatusTuple r(0); in update_value()
118 return StatusTuple(-1, "bad value size"); in update_value()
127 return StatusTuple(-1, "error updating element"); in update_value()
129 return StatusTuple(0); in update_value()
132 StatusTuple BPFTable::remove_value(const std::string& key_str) { in remove_value()
135 StatusTuple r(0); in remove_value()
142 return StatusTuple(-1, "error removing element"); in remove_value()
144 return StatusTuple(0); in remove_value()
147 StatusTuple BPFTable::clear_table_non_atomic() { in clear_table_non_atomic()
159 return StatusTuple(-1, in clear_table_non_atomic()
165 return StatusTuple(-1, "Array map %s do not support clearing elements", in clear_table_non_atomic()
176 return StatusTuple(-1, "Clearing for map type of %s not supported yet", in clear_table_non_atomic()
180 return StatusTuple(0); in clear_table_non_atomic()
183 StatusTuple BPFTable::get_table_offline( in get_table_offline()
185 StatusTuple r(0); in get_table_offline()
212 return StatusTuple(-1, "Error looking up value: %s", std::strerror(errno)); in get_table_offline()
228 return StatusTuple(0); in get_table_offline()
246 return StatusTuple(0); in get_table_offline()
326 StatusTuple BPFPerfBuffer::open_on_cpu(perf_reader_raw_cb cb, in open_on_cpu()
330 return StatusTuple(-1, "Perf buffer already open on CPU %d", cpu); in open_on_cpu()
335 return StatusTuple(-1, "Unable to construct perf reader"); in open_on_cpu()
340 return StatusTuple(-1, "Unable to open perf buffer on CPU %d: %s", cpu, in open_on_cpu()
349 return StatusTuple(-1, "Unable to add perf_reader FD to epoll: %s", in open_on_cpu()
354 return StatusTuple(0); in open_on_cpu()
357 StatusTuple BPFPerfBuffer::open_all_cpu(perf_reader_raw_cb cb, in open_all_cpu()
361 return StatusTuple(-1, "Previously opened perf buffer not cleaned"); in open_all_cpu()
374 return StatusTuple(0); in open_all_cpu()
377 StatusTuple BPFPerfBuffer::close_on_cpu(int cpu) { in close_on_cpu()
380 return StatusTuple(0); in close_on_cpu()
383 return StatusTuple(-1, "Unable to close perf buffer on CPU %d", it->first); in close_on_cpu()
385 return StatusTuple(0); in close_on_cpu()
388 StatusTuple BPFPerfBuffer::close_all_cpu() { in close_all_cpu()
415 return StatusTuple(-1, errors); in close_all_cpu()
416 return StatusTuple(0); in close_all_cpu()
443 StatusTuple BPFPerfEventArray::open_all_cpu(uint32_t type, uint64_t config) { in open_all_cpu()
445 return StatusTuple(-1, "Previously opened perf event not cleaned"); in open_all_cpu()
456 return StatusTuple(0); in open_all_cpu()
459 StatusTuple BPFPerfEventArray::close_all_cpu() { in close_all_cpu()
476 return StatusTuple(-1, errors); in close_all_cpu()
477 return StatusTuple(0); in close_all_cpu()
480 StatusTuple BPFPerfEventArray::open_on_cpu(int cpu, uint32_t type, in open_on_cpu()
483 return StatusTuple(-1, "Perf event already open on CPU %d", cpu); in open_on_cpu()
486 return StatusTuple(-1, "Error constructing perf event %" PRIu32 ":%" PRIu64, in open_on_cpu()
491 return StatusTuple(-1, "Unable to open perf event on CPU %d: %s", cpu, in open_on_cpu()
495 return StatusTuple(0); in open_on_cpu()
498 StatusTuple BPFPerfEventArray::close_on_cpu(int cpu) { in close_on_cpu()
501 return StatusTuple(0); in close_on_cpu()
505 return StatusTuple(0); in close_on_cpu()
523 StatusTuple BPFProgTable::update_value(const int& index, const int& prog_fd) { in update_value()
525 return StatusTuple(-1, "Error updating value: %s", std::strerror(errno)); in update_value()
526 return StatusTuple(0); in update_value()
529 StatusTuple BPFProgTable::remove_value(const int& index) { in remove_value()
531 return StatusTuple(-1, "Error removing value: %s", std::strerror(errno)); in remove_value()
532 return StatusTuple(0); in remove_value()
542 StatusTuple BPFCgroupArray::update_value(const int& index, in update_value()
545 return StatusTuple(-1, "Error updating value: %s", std::strerror(errno)); in update_value()
546 return StatusTuple(0); in update_value()
549 StatusTuple BPFCgroupArray::update_value(const int& index, in update_value()
553 return StatusTuple(-1, "Unable to open %s", cgroup2_path.c_str()); in update_value()
555 return StatusTuple(0); in update_value()
558 StatusTuple BPFCgroupArray::remove_value(const int& index) { in remove_value()
560 return StatusTuple(-1, "Error removing value: %s", std::strerror(errno)); in remove_value()
561 return StatusTuple(0); in remove_value()
571 StatusTuple BPFDevmapTable::update_value(const int& index, in update_value()
574 return StatusTuple(-1, "Error updating value: %s", std::strerror(errno)); in update_value()
575 return StatusTuple(0); in update_value()
578 StatusTuple BPFDevmapTable::get_value(const int& index, in get_value()
581 return StatusTuple(-1, "Error getting value: %s", std::strerror(errno)); in get_value()
582 return StatusTuple(0); in get_value()
585 StatusTuple BPFDevmapTable::remove_value(const int& index) { in remove_value()
587 return StatusTuple(-1, "Error removing value: %s", std::strerror(errno)); in remove_value()
588 return StatusTuple(0); in remove_value()