Lines Matching refs:StatusTuple
43 StatusTuple string_to_key(const std::string& key_str, KeyType* key) { in string_to_key()
47 StatusTuple string_to_leaf(const std::string& value_str, ValueType* value) { in string_to_leaf()
51 StatusTuple key_to_string(const KeyType* key, std::string& key_str) { in key_to_string()
53 StatusTuple rc = desc.key_snprintf(buf, sizeof(buf), key); in key_to_string()
59 StatusTuple leaf_to_string(const ValueType* value, std::string& value_str) { in leaf_to_string()
61 StatusTuple rc = desc.leaf_snprintf(buf, sizeof(buf), value); in leaf_to_string()
95 StatusTuple get_value(const std::string& key_str, std::string& value);
96 StatusTuple get_value(const std::string& key_str,
99 StatusTuple update_value(const std::string& key_str,
101 StatusTuple update_value(const std::string& key_str,
104 StatusTuple remove_value(const std::string& key_str);
106 StatusTuple clear_table_non_atomic();
107 StatusTuple get_table_offline(std::vector<std::pair<std::string, std::string>> &res);
132 virtual StatusTuple get_value(const int& index, ValueType& value) { in get_value()
134 return StatusTuple(-1, "Error getting value: %s", std::strerror(errno)); in get_value()
135 return StatusTuple(0); in get_value()
138 virtual StatusTuple update_value(const int& index, const ValueType& value) { in update_value()
141 return StatusTuple(-1, "Error updating value: %s", std::strerror(errno)); in update_value()
142 return StatusTuple(0); in update_value()
177 StatusTuple get_value(const int& index, std::vector<ValueType>& value) { in get_value()
182 StatusTuple update_value(const int& index, in update_value()
185 return StatusTuple(-1, "bad value size"); in update_value()
206 virtual StatusTuple get_value(const KeyType& key, ValueType& value) { in get_value()
208 return StatusTuple(-1, "Error getting value: %s", std::strerror(errno)); in get_value()
209 return StatusTuple(0); in get_value()
212 virtual StatusTuple update_value(const KeyType& key, const ValueType& value) { in update_value()
215 return StatusTuple(-1, "Error updating value: %s", std::strerror(errno)); in update_value()
216 return StatusTuple(0); in update_value()
219 virtual StatusTuple remove_value(const KeyType& key) { in remove_value()
221 return StatusTuple(-1, "Error removing value: %s", std::strerror(errno)); in remove_value()
222 return StatusTuple(0); in remove_value()
236 StatusTuple r(0); in get_table_offline()
253 StatusTuple clear_table_non_atomic() { in clear_table_non_atomic()
258 return StatusTuple(0); in clear_table_non_atomic()
279 StatusTuple get_value(const KeyType& key, std::vector<ValueType>& value) { in get_value()
284 StatusTuple update_value(const KeyType& key, in update_value()
287 return StatusTuple(-1, "bad value size"); in update_value()
323 StatusTuple open_all_cpu(perf_reader_raw_cb cb, perf_reader_lost_cb lost_cb,
325 StatusTuple close_all_cpu();
329 StatusTuple open_on_cpu(perf_reader_raw_cb cb, perf_reader_lost_cb lost_cb,
331 StatusTuple close_on_cpu(int cpu);
344 StatusTuple open_all_cpu(uint32_t type, uint64_t config);
345 StatusTuple close_all_cpu();
348 StatusTuple open_on_cpu(int cpu, uint32_t type, uint64_t config);
349 StatusTuple close_on_cpu(int cpu);
358 StatusTuple update_value(const int& index, const int& prog_fd);
359 StatusTuple remove_value(const int& index);
366 StatusTuple update_value(const int& index, const int& cgroup2_fd);
367 StatusTuple update_value(const int& index, const std::string& cgroup2_path);
368 StatusTuple remove_value(const int& index);
375 StatusTuple update_value(const int& index, const int& value);
376 StatusTuple get_value(const int& index, int& value);
377 StatusTuple remove_value(const int& index);