]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
perfglue: Build ceph-osd without using namespace declarations in headers
authorAdam C. Emerson <aemerson@redhat.com>
Thu, 2 Apr 2020 23:29:22 +0000 (19:29 -0400)
committerAdam C. Emerson <aemerson@redhat.com>
Mon, 6 Apr 2020 15:15:06 +0000 (11:15 -0400)
This is part of a series of commits to clean up using namespace at top
level in headers.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
src/perfglue/cpu_profiler.cc
src/perfglue/cpu_profiler.h
src/perfglue/disabled_stubs.cc
src/perfglue/heap_profiler.cc

index beec88533d0e869c68df53dee4577d026b60712a..ea1be7e959596daa6321c98f527d0b621a08115c 100644 (file)
@@ -20,7 +20,7 @@
 #include "perfglue/cpu_profiler.h"
 
 void cpu_profiler_handle_command(const std::vector<std::string> &cmd,
-                                ostream& out)
+                                std::ostream& out)
 {
   if (cmd[1] == "status") {
     ProfilerState st;
index 5f892adff89f0256375aed582836833dbd005362..a2a8ce4ca35a9939f34ce30c9f05d39e424a7b0c 100644 (file)
@@ -20,6 +20,6 @@
 #include <vector>
 
 void cpu_profiler_handle_command(const std::vector<std::string> &cmd,
-                                ostream& out);
+                                std::ostream& out);
 
 #endif
index dfbc0e663d8a2fecbd7759ae9f6f037375ebb1a9..40474f644fc8e25db65e774a96b54afaa6da9693 100644 (file)
@@ -19,7 +19,7 @@
 #include <string>
 
 void cpu_profiler_handle_command(const std::vector<std::string> &cmd,
-                                ostream& out)
+                                std::ostream& out)
 {
   out << "cpu_profiler support not linked in";
 }
index c5cdbb4ee9627ca68fe30815d0d91e0fcf5ccee1..cbfc9008627b93dbc2fc47cfc5332bb89d93117d 100644 (file)
@@ -141,7 +141,7 @@ void ceph_heap_profiler_dump(const char *reason)
 #define HEAP_PROFILER_STATS_SIZE 2048
 
 void ceph_heap_profiler_handle_command(const std::vector<std::string>& cmd,
-                                       ostream& out)
+                                       std::ostream& out)
 {
 #ifdef HAVE_LIBTCMALLOC
   if (cmd.size() == 1 && cmd[0] == "dump") {