return enabled;
}
-int CephContext::do_command(std::string_view command, const cmdmap_t& cmdmap,
+[[gnu::noinline]] int CephContext::do_command(std::string_view command, const cmdmap_t& cmdmap,
Formatter *f,
std::ostream& ss,
bufferlist *out)
#pragma GCC push_options
#pragma GCC optimize ("O0")
-static void leak_some_memory() {
+static void leak_some_memory(CephContext* cc) {
+ lgeneric_derr(cc) << "Leaking some memory" << dendl;
volatile char *foo = new char[1234];
(void)foo;
}
}
}
if (command == "leak_some_memory") {
- leak_some_memory();
+ leak_some_memory(this);
}
else if (command == "perfcounters_dump" || command == "1" ||
command == "perf dump") {