AdminSocketHook
| 194 | |
| 195 | // AdminSocketHook |
| 196 | int call(std::string_view command, const cmdmap_t& cmdmap, |
| 197 | const bufferlist& inbl, |
| 198 | ceph::Formatter *f, |
| 199 | std::ostream& errss, |
| 200 | bufferlist& out) override { |
| 201 | if (command == "dump_mempools") { |
| 202 | f->open_object_section("mempools"); |
| 203 | mempool::dump(f); |
| 204 | f->close_section(); |
| 205 | return 0; |
| 206 | } |
| 207 | return -ENOSYS; |
| 208 | } |
| 209 | }; |
| 210 | |
| 211 | } // anonymous namespace |
nothing calls this directly
no test coverage detected