about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-07-19 02:17:18 +0000
committerEric Wong <normalperson@yhbt.net>2013-07-19 02:17:18 +0000
commitc49cf315dadbf1cfe2f5e80c1f3c1ae27ad0761e (patch)
tree418bf8f4b7dc218a797d27061c8cc66cd285fa5f
parent939abdfed71349df87712559553593dc95f406c5 (diff)
downloadcmogstored-c49cf315dadbf1cfe2f5e80c1f3c1ae27ad0761e.tar.gz
We'll have tracing everywhere, so it's too much maintenance overhead
to add it to every file which wants it.  Increased build-times are
a problem, but less than the maintenance overhead of finding the
right headers.
-rw-r--r--cmogstored.h3
-rw-r--r--http.c1
-rw-r--r--ioq.c1
-rw-r--r--mgmt.c1
-rw-r--r--trywrite.c1
5 files changed, 3 insertions, 4 deletions
diff --git a/cmogstored.h b/cmogstored.h
index 32868cb..3c1801c 100644
--- a/cmogstored.h
+++ b/cmogstored.h
@@ -652,3 +652,6 @@ void mog_ioq_adjust(struct mog_ioq *, unsigned value);
 void mog_ioq_destroy(struct mog_ioq *);
 bool mog_ioq_unblock(struct mog_fd *);
 void mog_ioq_requeue_prepare(struct mog_ioq *);
+
+/* systemtap stuff */
+#include "trace.h"
diff --git a/http.c b/http.c
index a7f9bad..2f3b29b 100644
--- a/http.c
+++ b/http.c
@@ -3,7 +3,6 @@
  * License: GPLv3 or later (see COPYING for details)
  */
 #include "cmogstored.h"
-#include "trace.h"
 #include "http.h"
 
 /*
diff --git a/ioq.c b/ioq.c
index 4f62cc5..339ef3d 100644
--- a/ioq.c
+++ b/ioq.c
@@ -3,7 +3,6 @@
  * License: GPLv3 or later (see COPYING for details)
  */
 #include "cmogstored.h"
-#include "trace.h"
 /*
  * This is a semaphore-like API with explicit queueing and activation,
  * so contended scheduling/wakeups happen via epoll/kqueue and there
diff --git a/mgmt.c b/mgmt.c
index 6dd1b77..bc6b335 100644
--- a/mgmt.c
+++ b/mgmt.c
@@ -3,7 +3,6 @@
  * License: GPLv3 or later (see COPYING for details)
  */
 #include "cmogstored.h"
-#include "trace.h"
 #include "mgmt.h"
 #include "digest.h"
 #include "ioprio.h"
diff --git a/trywrite.c b/trywrite.c
index d19f653..7078748 100644
--- a/trywrite.c
+++ b/trywrite.c
@@ -3,7 +3,6 @@
  * License: GPLv3 or later (see COPYING for details)
  */
 #include "cmogstored.h"
-#include "trace.h"
 
 struct mog_wbuf {
         size_t len;