MCPcopy Create free account
hub / github.com/ceph/ceph / dump_status

Method dump_status

src/client/Client.cc:611–641  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

609}
610
611void Client::dump_status(Formatter *f)
612{
613 ceph_assert(ceph_mutex_is_locked_by_me(client_lock));
614
615 ldout(cct, 1) << __func__ << dendl;
616
617 const epoch_t osd_epoch
618 = objecter->with_osdmap(std::mem_fn(&OSDMap::get_epoch));
619
620 if (f) {
621 f->open_object_section("metadata");
622 for (const auto& kv : metadata)
623 f->dump_string(kv.first.c_str(), kv.second);
624 f->close_section();
625
626 f->dump_int("dentry_count", lru.lru_get_size());
627 f->dump_int("dentry_pinned_count", lru.lru_get_num_pinned());
628 f->dump_int("id", get_nodeid().v);
629 entity_inst_t inst(messenger->get_myname(), messenger->get_myaddr_legacy());
630 f->dump_object("inst", inst);
631 f->dump_object("addr", inst.addr);
632 f->dump_stream("inst_str") << inst.name << " " << inst.addr.get_legacy_str();
633 f->dump_string("addr_str", inst.addr.get_legacy_str());
634 f->dump_int("inode_count", inode_map.size());
635 f->dump_int("mds_epoch", mdsmap->get_epoch());
636 f->dump_int("osd_epoch", osd_epoch);
637 f->dump_int("osd_epoch_barrier", cap_epoch_barrier);
638 f->dump_bool("blocklisted", blocklisted);
639 f->dump_string("fs_name", mdsmap->get_fs_name());
640 }
641}
642
643void Client::dump_subvolume_metrics(Formatter* f) {
644 subvolume_tracker->dump(f);

Callers 1

callMethod · 0.45

Calls 15

lru_get_sizeMethod · 0.80
lru_get_num_pinnedMethod · 0.80
get_mynameMethod · 0.80
get_myaddr_legacyMethod · 0.80
get_fs_nameMethod · 0.80
with_osdmapMethod · 0.45
open_object_sectionMethod · 0.45
dump_stringMethod · 0.45
c_strMethod · 0.45
close_sectionMethod · 0.45
dump_intMethod · 0.45
dump_objectMethod · 0.45

Tested by

no test coverage detected