]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Move SBufDetailedStats to src/sbuf
authorFrancesco Chemolli <kinkie@squid-cache.org>
Wed, 24 Feb 2016 12:16:16 +0000 (13:16 +0100)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Wed, 24 Feb 2016 12:16:16 +0000 (13:16 +0100)
src/Makefile.am
src/SBufStatsAction.cc
src/mk-string-arrays.awk
src/sbuf/Makefile.am
src/sbuf/SBufDetailedStats.cc [moved from src/SBufDetailedStats.cc with 100% similarity]
src/sbuf/SBufDetailedStats.h [moved from src/SBufDetailedStats.h with 100% similarity]
src/tests/stub_SBufDetailedStats.cc

index f1c3edd19c92a0de9b47228e560fa2b0ff7c3736..b25f524e85c16f84184251028016dce1c9e388e1 100644 (file)
@@ -10,13 +10,7 @@ include $(top_srcdir)/src/Common.am
 DNSSOURCE = \
        dns_internal.cc
 
-SBUF_SOURCE= \
-       base/CharacterSet.h \
-       base/InstanceId.h \
-       sbuf/MemBlob.h \
-       sbuf/OutOfBoundsException.h \
-       sbuf/SBuf.h \
-       sbuf/SBufExceptions.h
+SBUF_SOURCE=
 
 STOREMETA_SOURCE = \
        StoreMeta.cc \
@@ -418,8 +412,6 @@ squid_SOURCES = \
        RemovalPolicy.h \
        send-announce.h \
        send-announce.cc \
-       SBufDetailedStats.h \
-       SBufDetailedStats.cc \
        SBufStatsAction.h \
        SBufStatsAction.cc \
        $(SNMP_SOURCE) \
@@ -544,7 +536,6 @@ squid_LDADD = \
        $(AUTH_LIBS) \
        acl/libapi.la \
        clients/libclients.la \
-       sbuf/libsbuf.la \
        servers/libservers.la \
        ftp/libftp.la \
        helper/libhelper.la \
@@ -994,7 +985,6 @@ tests_testHttpReply_SOURCES=\
        Notes.cc \
        SquidString.h \
        SquidTime.h \
-       SBufDetailedStats.h \
        tests/stub_SBufDetailedStats.cc \
        String.cc \
        StrList.h \
@@ -1105,7 +1095,6 @@ tests_testACLMaxUserIP_SOURCES= \
        StrList.cc \
        tests/stub_StatHist.cc \
        stmem.cc \
-       SBufDetailedStats.h \
        tests/stub_SBufDetailedStats.cc \
        String.cc \
        StoreIOState.cc \
@@ -1371,7 +1360,6 @@ tests_testCacheManager_SOURCES = \
        refresh.h \
        refresh.cc \
        RemovalPolicy.cc \
-       SBufDetailedStats.h \
        tests/stub_SBufDetailedStats.cc \
        $(SNMP_SOURCE) \
        SquidMath.h \
@@ -1542,7 +1530,6 @@ tests_testDiskIO_SOURCES = \
        StatHist.h \
        tests/stub_StatHist.cc \
        stmem.cc \
-       SBufDetailedStats.h \
        tests/stub_SBufDetailedStats.cc \
        StoreFileSystem.cc \
        StoreIOState.cc \
@@ -1806,7 +1793,6 @@ tests_testEvent_SOURCES = \
        RemovalPolicy.cc \
        StrList.h \
        StrList.cc \
-       SBufDetailedStats.h \
        tests/stub_SBufDetailedStats.cc \
        $(SNMP_SOURCE) \
        SquidMath.cc \
@@ -2048,7 +2034,6 @@ tests_testEventLoop_SOURCES = \
        refresh.h \
        refresh.cc \
        $(SBUF_SOURCE) \
-       SBufDetailedStats.h \
        tests/stub_SBufDetailedStats.cc \
        $(SNMP_SOURCE) \
        SquidMath.h \
@@ -2288,7 +2273,6 @@ tests_test_http_range_SOURCES = \
        refresh.cc \
        RemovalPolicy.cc \
        $(SBUF_SOURCE) \
-       SBufDetailedStats.h \
        tests/stub_SBufDetailedStats.cc \
        $(SNMP_SOURCE) \
        SquidMath.h \
@@ -2614,7 +2598,6 @@ tests_testHttpRequest_SOURCES = \
        refresh.cc \
        RemovalPolicy.cc \
        $(SBUF_SOURCE) \
-       SBufDetailedStats.h \
        tests/stub_SBufDetailedStats.cc \
        $(SNMP_SOURCE) \
        SquidMath.h \
@@ -2824,7 +2807,6 @@ tests_testStore_SOURCES= \
        store_key_md5.h \
        store_key_md5.cc \
        $(SBUF_SOURCE) \
-       SBufDetailedStats.h \
        tests/stub_SBufDetailedStats.cc \
        String.cc \
        StrList.h \
@@ -2935,7 +2917,6 @@ tests_testString_SOURCES = \
        MemBuf.cc \
        String.cc \
        $(SBUF_SOURCE) \
-       SBufDetailedStats.h \
        tests/stub_SBufDetailedStats.cc \
        tests/testString.cc \
        tests/testString.h \
@@ -3065,7 +3046,6 @@ tests_testUfs_SOURCES = \
        tests/stub_helper.cc \
        cbdata.cc \
        $(SBUF_SOURCE) \
-       SBufDetailedStats.h \
        tests/stub_SBufDetailedStats.cc \
        String.cc \
        tests/stub_debug.cc \
@@ -3243,7 +3223,6 @@ tests_testRock_SOURCES = \
        store_swapmeta.cc \
        store_swapout.cc \
        $(SBUF_SOURCE) \
-       SBufDetailedStats.h \
        tests/stub_SBufDetailedStats.cc \
        String.cc \
        StrList.h \
@@ -3461,7 +3440,6 @@ tests_testURL_SOURCES = \
        refresh.cc \
        RemovalPolicy.cc \
        $(SBUF_SOURCE) \
-       SBufDetailedStats.h \
        tests/stub_SBufDetailedStats.cc \
        $(SNMP_SOURCE) \
        SquidMath.h \
@@ -3586,7 +3564,6 @@ tests_testSBuf_SOURCES= \
        tests/SBufFindTest.h \
        tests/SBufFindTest.cc \
        $(SBUF_SOURCE) \
-       SBufDetailedStats.h \
        tests/stub_SBufDetailedStats.cc \
        tests/stub_time.cc \
        tests/stub_debug.cc \
@@ -3622,7 +3599,6 @@ tests_testSBufList_SOURCES= \
        tests/testSBufList.h \
        tests/testSBufList.cc \
        $(SBUF_SOURCE) \
-       SBufDetailedStats.h \
        tests/stub_SBufDetailedStats.cc \
        tests/stub_time.cc \
        tests/stub_MemObject.cc \
@@ -3664,7 +3640,6 @@ tests_testConfigParser_SOURCES = \
        tests/stub_MemBuf.cc \
        tests/stub_time.cc \
        $(SBUF_SOURCE) \
-       SBufDetailedStats.h \
        tests/stub_SBufDetailedStats.cc \
        String.cc \
        ConfigParser.cc \
@@ -3706,7 +3681,6 @@ tests_testStatHist_SOURCES = \
        tests/stub_fatal.cc \
        tests/stub_MemBuf.cc \
        $(SBUF_SOURCE) \
-       SBufDetailedStats.h \
        tests/stub_SBufDetailedStats.cc \
        StatHist.cc \
        StatHist.h \
index 53213894c547f3c69306b9bc88cb8d33cac6376e..e10366eca46ee7f21e7910a260ace0fc4fda9e42 100644 (file)
@@ -11,7 +11,7 @@
 #include "ipc/Messages.h"
 #include "ipc/TypedMsgHdr.h"
 #include "mgr/Registration.h"
-#include "SBufDetailedStats.h"
+#include "sbuf/SBufDetailedStats.h"
 #include "SBufStatsAction.h"
 
 SBufStatsAction::SBufStatsAction(const Mgr::CommandPointer &cmd_):
index ae4253f096855e9c18125be476cb04b4908793f4..18b879296d1798cb411b5693832d5d3cc1d5d1bf 100644 (file)
@@ -73,7 +73,7 @@ codeSkip == 1         { next }
 }
 
 END {
-       if (sbuf) print "#include \"SBuf.h\""
+       if (sbuf) print "#include \"sbuf/SBuf.h\""
        print "#include \"" nspath type ".h\""
 
        # if namesapce is not empty ??
index 5e0bae53dcf45572b072b7926e1258bf5e1cd63d..982371f97cf3b3d24c90c410b91ca3657ce26876 100644 (file)
@@ -19,6 +19,8 @@ libsbuf_la_SOURCES = \
        SBuf.h \
        SBufAlgos.cc \
        SBufAlgos.h \
+       SBufDetailedStats.cc \
+       SBufDetailedStats.h \
        SBufExceptions.cc \
        SBufExceptions.h \
        SBufList.cc \
index 7d552822d8699deb4fe5b63366dbb33f394b92b3..17a228347807eab45827119a8572dc121e3f4dac 100644 (file)
@@ -14,8 +14,8 @@
 
 class StatHist;
 
-void recordSBufSizeAtDestruct(SBuf::size_type) {}
-const StatHist * collectSBufDestructTimeStats() STUB_RETVAL(NULL)
-void recordMemBlobSizeAtDestruct(SBuf::size_type) {}
-const StatHist * collectMemBlobDestructTimeStats() STUB_RETVAL(NULL)
+void recordSBufSizeAtDestruct(SBuf::size_type) STUB_NOP
+const StatHist * collectSBufDestructTimeStats() STUB_RETVAL(nullptr)
+void recordMemBlobSizeAtDestruct(SBuf::size_type) STUB_NOP
+const StatHist * collectMemBlobDestructTimeStats() STUB_RETVAL(nullptr)