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

Function dump_cpu_list

src/mon/OSDMonitor.cc:5398–5412  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5396}
5397
5398static void dump_cpu_list(Formatter *f, const char *name,
5399 const string& strlist)
5400{
5401 cpu_set_t cpu_set;
5402 size_t cpu_set_size;
5403 if (parse_cpu_set_list(strlist.c_str(), &cpu_set_size, &cpu_set) < 0) {
5404 return;
5405 }
5406 set<int> cpus = cpu_set_to_set(cpu_set_size, &cpu_set);
5407 f->open_array_section(name);
5408 for (auto cpu : cpus) {
5409 f->dump_int("cpu", cpu);
5410 }
5411 f->close_section();
5412}
5413
5414void OSDMonitor::dump_info(Formatter *f)
5415{

Callers 1

preprocess_commandMethod · 0.85

Calls 6

parse_cpu_set_listFunction · 0.85
cpu_set_to_setFunction · 0.85
c_strMethod · 0.45
open_array_sectionMethod · 0.45
dump_intMethod · 0.45
close_sectionMethod · 0.45

Tested by

no test coverage detected