]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
Merge pull request #131 in SNORT/snort3 from ~JOCORNET/snort3:rearrange_time_dir...
authorRuss Combs (rucombs) <rucombs@cisco.com>
Fri, 13 Nov 2015 18:25:26 +0000 (13:25 -0500)
committerRuss Combs (rucombs) <rucombs@cisco.com>
Fri, 13 Nov 2015 18:25:26 +0000 (13:25 -0500)
Squashed commit of the following:

commit 9a2fb92580e29b331a85a1ad97a117f134b54c80
Author: Joel Cornett <joel.cornett@gmail.com>
Date:   Thu Nov 12 17:23:46 2015 -0500

    added include

commit b4e5a52f19c70958223919c6aa18e8d533b60305
Author: Joel Cornett <joel.cornett@gmail.com>
Date:   Thu Nov 12 17:05:20 2015 -0500

    further cleanup

commit 9069e256c3d50c4e3dfa95d288bc7a95d3dc333f
Author: Joel Cornett <joel.cornett@gmail.com>
Date:   Thu Nov 12 16:53:13 2015 -0500

    added forward declarations for profilestats

commit 86a6864733ff5fd1a40931b6a7ae92619b6f292d
Author: Joel Cornett <joel.cornett@gmail.com>
Date:   Thu Nov 12 16:38:14 2015 -0500

    moved profiler to its own directory

commit 3660246db180aa0048ac9a55fe43e05947857c9f
Author: Joel Cornett <joel.cornett@gmail.com>
Date:   Thu Nov 12 16:13:32 2015 -0500

    moved ppm to its own directory

148 files changed:
configure.ac
src/CMakeLists.txt
src/Makefile.am
src/actions/act_react.cc
src/actions/act_reject.cc
src/detection/detect.cc
src/detection/detect.h
src/detection/detection_options.cc
src/detection/fp_detect.cc
src/detection/fp_detect.h
src/framework/mpse.cc
src/framework/mpse.h
src/helpers/chunk.cc
src/ips_options/ips_ack.cc
src/ips_options/ips_asn1.cc
src/ips_options/ips_base64.cc
src/ips_options/ips_bufferlen.cc
src/ips_options/ips_byte_extract.cc
src/ips_options/ips_byte_jump.cc
src/ips_options/ips_byte_test.cc
src/ips_options/ips_content.cc
src/ips_options/ips_cvs.cc
src/ips_options/ips_dsize.cc
src/ips_options/ips_file_data.cc
src/ips_options/ips_flags.cc
src/ips_options/ips_flow.cc
src/ips_options/ips_flowbits.cc
src/ips_options/ips_fragbits.cc
src/ips_options/ips_fragoffset.cc
src/ips_options/ips_hash.cc
src/ips_options/ips_http.cc
src/ips_options/ips_http_header.cc
src/ips_options/ips_icmp_id.cc
src/ips_options/ips_icmp_seq.cc
src/ips_options/ips_icode.cc
src/ips_options/ips_id.cc
src/ips_options/ips_ip_proto.cc
src/ips_options/ips_ipopts.cc
src/ips_options/ips_isdataat.cc
src/ips_options/ips_itype.cc
src/ips_options/ips_luajit.cc
src/ips_options/ips_pcre.cc
src/ips_options/ips_pkt_data.cc
src/ips_options/ips_raw_data.cc
src/ips_options/ips_regex.cc
src/ips_options/ips_replace.cc
src/ips_options/ips_rpc.cc
src/ips_options/ips_seq.cc
src/ips_options/ips_session.cc
src/ips_options/ips_so.cc
src/ips_options/ips_tos.cc
src/ips_options/ips_ttl.cc
src/ips_options/ips_window.cc
src/loggers/alert_luajit.cc
src/main.cc
src/main/modules.cc
src/main/snort.cc
src/main/snort_config.cc
src/managers/inspector_manager.cc
src/managers/module_manager.cc
src/network_inspectors/arp_spoof/arp_spoof.cc
src/network_inspectors/binder/binder.cc
src/network_inspectors/normalize/normalize.cc
src/network_inspectors/perf_monitor/perf_monitor.cc
src/network_inspectors/port_scan/port_scan.cc
src/parser/parse_rule.cc
src/parser/parser.cc
src/parser/vars.cc
src/ppm/CMakeLists.txt [new file with mode: 0644]
src/ppm/Makefile.am [new file with mode: 0644]
src/ppm/ppm.cc [moved from src/time/ppm.cc with 97% similarity]
src/ppm/ppm.h [moved from src/time/ppm.h with 98% similarity]
src/ppm/ppm_module.cc [moved from src/time/ppm_module.cc with 99% similarity]
src/ppm/ppm_module.h [moved from src/time/ppm_module.h with 92% similarity]
src/profiler/CMakeLists.txt [new file with mode: 0644]
src/profiler/Makefile.am [new file with mode: 0644]
src/profiler/profiler.cc [moved from src/time/profiler.cc with 100% similarity]
src/profiler/profiler.h [moved from src/time/profiler.h with 100% similarity]
src/protocols/packet_manager.cc
src/search_engines/ac_banded.cc
src/search_engines/ac_bnfa.cc
src/search_engines/ac_bnfa_q.cc
src/search_engines/ac_full.cc
src/search_engines/ac_full_q.cc
src/search_engines/ac_sparse.cc
src/search_engines/ac_sparse_bands.cc
src/search_engines/ac_std.cc
src/search_engines/intel_cpm.cc
src/service_inspectors/back_orifice/back_orifice.cc
src/service_inspectors/dns/dns.cc
src/service_inspectors/dns/dns.h
src/service_inspectors/ftp_telnet/ft_main.cc
src/service_inspectors/ftp_telnet/ft_main.h
src/service_inspectors/ftp_telnet/ftp.cc
src/service_inspectors/ftp_telnet/ftp_data.cc
src/service_inspectors/ftp_telnet/ftp_parse.cc
src/service_inspectors/ftp_telnet/ftp_print.cc
src/service_inspectors/ftp_telnet/telnet.cc
src/service_inspectors/gtp/gtp.cc
src/service_inspectors/gtp/gtp_inspect.cc
src/service_inspectors/gtp/gtp_module.cc
src/service_inspectors/gtp/ips_gtp_info.cc
src/service_inspectors/gtp/ips_gtp_type.cc
src/service_inspectors/gtp/ips_gtp_version.cc
src/service_inspectors/http_inspect/hi_main.cc
src/service_inspectors/http_inspect/hi_main.h
src/service_inspectors/http_inspect/http_inspect.cc
src/service_inspectors/imap/imap.cc
src/service_inspectors/imap/imap.h
src/service_inspectors/modbus/ips_modbus_data.cc
src/service_inspectors/modbus/ips_modbus_func.cc
src/service_inspectors/modbus/ips_modbus_unit.cc
src/service_inspectors/modbus/modbus.cc
src/service_inspectors/modbus/modbus_module.cc
src/service_inspectors/pop/pop.cc
src/service_inspectors/pop/pop.h
src/service_inspectors/rpc_decode/rpc_decode.cc
src/service_inspectors/sip/ips_sip.cc
src/service_inspectors/sip/ips_sip_method.cc
src/service_inspectors/sip/ips_sip_stat_code.cc
src/service_inspectors/sip/sip.cc
src/service_inspectors/sip/sip.h
src/service_inspectors/smtp/smtp.cc
src/service_inspectors/smtp/smtp.h
src/service_inspectors/ssh/ssh.cc
src/service_inspectors/ssh/ssh.h
src/service_inspectors/ssl/ips_ssl_state.cc
src/service_inspectors/ssl/ips_ssl_version.cc
src/service_inspectors/ssl/ssl_inspector.cc
src/service_inspectors/ssl/ssl_inspector.h
src/service_inspectors/wizard/wizard.cc
src/stream/base/stream_base.cc
src/stream/file/file_session.cc
src/stream/icmp/icmp_session.cc
src/stream/ip/ip_defrag.cc
src/stream/ip/ip_session.cc
src/stream/tcp/ips_stream_reassemble.cc
src/stream/tcp/ips_stream_size.cc
src/stream/tcp/tcp_module.cc
src/stream/tcp/tcp_module.h
src/stream/tcp/tcp_reassembler.cc
src/stream/tcp/tcp_session.cc
src/stream/udp/udp_session.cc
src/stream/user/user_session.cc
src/time/CMakeLists.txt
src/time/Makefile.am
src/utils/stats.cc
src/utils/util.cc

index 23b8af07056fc2da73f82ccc5295d46952e6ede1..bd8e73d205fc827c1e7ae9f86436221cc9e3bf3e 100644 (file)
@@ -343,7 +343,10 @@ AC_ARG_ENABLE(ppm,
     AC_HELP_STRING([--enable-ppm],[enable packet/rule performance monitor]),
     enable_ppm="$enableval", enable_ppm="no")
 
+AM_CONDITIONAL(PPM_MGR, test "x$enable_ppm" = "xyes")
+
 if test "x$enable_ppm" = "xyes"; then
+    CPPFLAGS="$CPPFLAGS -DPPM_MGR"
     AC_DEFINE(PPM_MGR, [1], [build ppm manager])
 fi
 
@@ -1031,6 +1034,8 @@ src/sfrt/Makefile \
 src/target_based/Makefile \
 src/catch/Makefile \
 src/time/Makefile \
+src/ppm/Makefile \
+src/profiler/Makefile \
 src/utils/Makefile \
 src/utils/test/Makefile \
 lua/Makefile \
index a5d45f22d81dc96a0685951cab01950e1cd74d13..aa0aae10b139f1a086cc42a33da33467387c396e 100644 (file)
@@ -74,6 +74,14 @@ if (BUILD_PIGLET)
     add_subdirectory(piglet_plugins)
 endif (BUILD_PIGLET)
 
+if (ENABLE_PPM)
+    set(PPM_LIBRARIES ppm)
+    add_subdirectory(ppm)
+endif (ENABLE_PPM)
+
+if (ENABLE_PERFPROFILING)
+    set(PERFPROFILING_LIBRARIES profiler)
+endif (ENABLE_PERFPROFILING)
 
 #  The main Snort executableRA
 add_executable( snort
@@ -124,6 +132,8 @@ target_link_libraries( snort
     detection
     framework
     time
+    ${PPM_LIBRARIES}
+    ${PERFPROFILING_LIBRARIES}
     ips_actions
     events
     hash
@@ -164,6 +174,7 @@ add_subdirectory(service_inspectors)
 add_subdirectory(stream)
 add_subdirectory(target_based)
 add_subdirectory(time)
+add_subdirectory(profiler)
 add_subdirectory(utils)
 add_subdirectory(helpers)
 add_subdirectory(lua)
index 91bc097c416ecec1c8f3642594393f825da09a5b..468d65d12b154e617e0eb84bcb709e204b0a1d4b 100644 (file)
@@ -36,6 +36,14 @@ piglet/libpiglet.a \
 piglet_plugins/libpiglet_plugins.a
 endif
 
+if PPM_MGR
+ppm_list = ppm/libppm.a
+endif
+
+if PERF_PROFILING
+profiler_list = profiler/libprofiler.a
+endif
+
 snort_LDFLAGS = -export-dynamic
 
 # order libs to avoid undefined symbols
@@ -85,6 +93,8 @@ filters/libfilter.a \
 detection/libdetection.a \
 framework/libframework.a \
 time/libtime.a \
+$(ppm_list) \
+$(profiler_list) \
 actions/libips_actions.a \
 events/libevents.a \
 hash/libhash.a \
@@ -131,6 +141,7 @@ sfrt \
 stream \
 target_based \
 time \
+profiler \
 utils
 
 if BUILD_UNIT_TESTS
@@ -141,3 +152,6 @@ if BUILD_PIGLET
 SUBDIRS += piglet piglet_plugins
 endif
 
+if PPM_MGR
+SUBDIRS += ppm
+endif
index 8506c14d390c1f6cf14814f9a26d88c303262451..69d0fb2c3ec651ca99f299f0daa994fa736c7cb4 100644 (file)
@@ -54,7 +54,7 @@
 #include "main/snort_types.h"
 #include "main/snort_debug.h"
 #include "protocols/packet.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "packet_io/active.h"
 #include "parser/parser.h"
 #include "framework/ips_action.h"
index e31eacf372b0ac5bef201a84c031bb7bfc71492a..33eb4e4cf97f3237161d829de24ab9a2e884c8f8 100644 (file)
@@ -51,7 +51,7 @@
 #include "main/snort_types.h"
 #include "main/snort_debug.h"
 #include "protocols/packet.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "packet_io/active.h"
 #include "utils/util.h"
 #include "framework/ips_action.h"
index a720231728d072e61426ca781c3905e7f06f4828..734f7a7e979b881e48d2c433cf938586ba6b31e5 100644 (file)
@@ -53,8 +53,8 @@
 #include "events/event_wrapper.h"
 #include "events/event_queue.h"
 #include "log/obfuscation.h"
-#include "time/profiler.h"
-#include "time/ppm.h"
+#include "profiler/profiler.h"
+#include "ppm/ppm.h"
 #include "stream/stream_api.h"
 #include "packet_io/active.h"
 #include "managers/inspector_manager.h"
index c8056dfdf5deb6a50f8efdd3b6d253813e716a57..5b7a75ee0807d0fa63d31b7f52b2019faa9b76a8 100644 (file)
@@ -31,7 +31,6 @@
 #include "detection/rules.h"
 #include "detection/treenodes.h"
 #include "parser/parser.h"
-#include "time/profiler.h"
 #include "log/log.h"
 #include "events/event.h"
 
@@ -39,6 +38,7 @@ extern SO_PUBLIC THREAD_LOCAL int do_detect;
 extern SO_PUBLIC THREAD_LOCAL int do_detect_content;
 
 #ifdef PERF_PROFILING
+struct ProfileStats;
 extern THREAD_LOCAL ProfileStats eventqPerfStats;
 extern THREAD_LOCAL ProfileStats detectPerfStats;
 extern THREAD_LOCAL ProfileStats rebuiltPacketPerfStats;
index ca4d1d131209e0b1f4f6b1db47725ef915864df8..c1df6a9b96657c8d8b6f3c74ffc4dd61cf66e8f1 100644 (file)
@@ -39,8 +39,8 @@
 #include "fp_detect.h"
 #include "rules.h"
 
-#include "time/ppm.h"
-#include "time/profiler.h"
+#include "ppm/ppm.h"
+#include "profiler/profiler.h"
 #include "utils/util.h"
 #include "hash/sfxhash.h"
 #include "hash/sfhashfcn.h"
index 96136aeb4f99a4a38b130d4eff8174052b22374d..35b4c8aa95f91e7ecc582e5d07f1334404a0047e 100644 (file)
@@ -67,7 +67,8 @@
 #include "stream/stream_api.h"
 #include "utils/sflsq.h"
 #include "utils/util.h"
-#include "time/ppm.h"
+#include "ppm/ppm.h"
+#include "profiler/profiler.h"
 #include "actions/actions.h"
 #include "sfip/sf_ip.h"
 #include "managers/action_manager.h"
index e92a56b90ed5c6c813d59a1fbe4427be51ced4a3..477bee25e737381ced300df83004548a4cebef36 100644 (file)
 #include "detection/fp_create.h"
 #include "main/snort_debug.h"
 #include "protocols/packet.h"
-#include "time/profiler.h"
 #include "utils/sflsq.h"
 
 #define REBUILD_FLAGS (PKT_REBUILT_FRAG | PKT_REBUILT_STREAM)
 
 #ifdef PERF_PROFILING
+struct ProfileStats;
 extern THREAD_LOCAL ProfileStats rulePerfStats;
 extern THREAD_LOCAL ProfileStats ruleRTNEvalPerfStats;
 extern THREAD_LOCAL ProfileStats ruleOTNEvalPerfStats;
index a5bf4696555cea68083c5a6e935799eba4bdda43..c506f98f35e7584acf36045b11080457c740caa5 100644 (file)
@@ -26,6 +26,7 @@ using namespace std;
 
 #include "main/snort_debug.h"
 #include "main/snort_types.h"
+#include "profiler/profiler.h"
 
 // this is accumulated only for fast pattern
 // searches for the detection engine
index 7faddf7aae55b2cffa8ece88860eb9defc29d0cf..cfd44b52fa96f6a451d6cef047558b06086ffa46 100644 (file)
@@ -33,7 +33,6 @@
 #include "main/snort_types.h"
 #include "main/thread.h"
 #include "framework/base_api.h"
-#include "time/profiler.h"
 
 /*
 *   Move these defines to a generic Win32/Unix compatability file,
@@ -101,6 +100,7 @@ private:
 };
 
 #ifdef PERF_PROFILING
+struct ProfileStats;
 extern THREAD_LOCAL ProfileStats mpsePerfStats;
 #endif
 
index 344044ee780b75846b60b1f90dce7c8e45c9ab26..db8b7598bae6ed33eafa051f5658f5a11acf4da2 100644 (file)
@@ -25,7 +25,7 @@
 #include "hash/sfhashfcn.h"
 #include "parser/parser.h"
 #include "framework/cursor.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "lua/lua.h"
 
 #ifdef UNIT_TEST
index e7b00b392671e16b5aabcd1ad58b4c71e45ef97e..e9025567f37d9693b8b9ba2661e51a95570d4a7a 100644 (file)
@@ -31,7 +31,7 @@
 #include "protocols/packet.h"
 #include "parser/parser.h"
 #include "utils/util.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "hash/sfhashfcn.h"
 #include "detection/detection_defines.h"
 #include "framework/ips_option.h"
index 43b9838f2229ed6519df503752d82dd36ec38502..cb184add14d268404739569443c6064c30691cf5 100644 (file)
@@ -71,7 +71,7 @@
 #include "detection/treenodes.h"
 #include "detection/detection_util.h"
 #include "detection/detection_defines.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "framework/cursor.h"
 #include "framework/ips_option.h"
 #include "framework/parameter.h"
index 46030762b7091d893a7516ce76e30ef3012f0932..7f43485c5189c8c62ee2eec8687cecc3f1fd68e7 100644 (file)
@@ -32,7 +32,7 @@
 #include "main/snort_debug.h"
 #include "protocols/packet.h"
 #include "parser/parser.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "utils/util.h"
 #include "mime/decode_b64.h"
 #include "utils/util_unfold.h"
index 81e055b13930c49578f176e388692b96f06c186e..4e31d4ecc34b69503aa7edd0644171736573a9d6 100644 (file)
@@ -27,7 +27,7 @@
 #include "main/snort_types.h"
 #include "main/snort_debug.h"
 #include "hash/sfhashfcn.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "detection/detection_defines.h"
 #include "framework/range.h"
 #include "framework/ips_option.h"
index 8558a992b6b574005bdf5f31538de4028538711f..d210102c21a87e6288a0270e4ae958e1fe336892 100644 (file)
@@ -30,7 +30,7 @@
 #include "detection/detection_defines.h"
 #include "detection/detection_util.h"
 #include "hash/sfhashfcn.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "framework/ips_option.h"
 #include "framework/cursor.h"
 #include "framework/parameter.h"
index b4450c20dd028790b4a79f5e95413ce484778518..727f63c8c957dd927362cd4b7328fc0f1846714a 100644 (file)
@@ -82,7 +82,7 @@
 #include "utils/util.h"
 #include "utils/snort_bounds.h"
 #include "hash/sfhashfcn.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "detection/treenodes.h"
 #include "detection/detection_defines.h"
 #include "detection/detection_util.h"
index 673a850797032253a16b0aa1c948eb4dd32baadf..f8c64301fdfbe686c0500de690af4e9cd4c7dfa1 100644 (file)
@@ -102,7 +102,7 @@ using namespace std;
 #include "parser/parser.h"
 #include "utils/util.h"
 #include "utils/snort_bounds.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "hash/sfhashfcn.h"
 #include "detection/treenodes.h"
 #include "detection/detection_defines.h"
index 1c51f618c9f80a8698794550df34999136faa97b..2b597ea509ca6ec14b9f76d944221e6beb9ae0cf 100644 (file)
@@ -38,7 +38,7 @@
 #include "parser/parser.h"
 #include "parser/parse_utils.h"
 #include "hash/sfhashfcn.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "detection/treenodes.h"
 #include "detection/detection_defines.h"
 #include "detection/detection_util.h"
index 314b12baf8ca8a4487c44c259110580bce453691..a3783b8628b1b99a89dab7d310d5cba738d8a563 100644 (file)
@@ -51,7 +51,7 @@
 #include "parser/parser.h"
 #include "utils/util.h"
 #include "utils/snort_bounds.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "hash/sfhashfcn.h"
 #include "detection/treenodes.h"
 #include "detection/detection_defines.h"
index 878b82cd6573de0a94839eb261fc4f3808062c47..9677eea0b25fe554b8449a3e703243d55ac49104 100644 (file)
@@ -31,7 +31,7 @@
 #include "parser/parser.h"
 #include "utils/util.h"
 #include "hash/sfhashfcn.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "detection/treenodes.h"
 #include "detection/detection_defines.h"
 #include "framework/ips_option.h"
index eb99ac6caa546dbe3e713df349d9facc552da745..9d83ae350ab7324ec0e67a092e3d189947420afb 100644 (file)
@@ -29,7 +29,7 @@
 
 #include "main/snort_types.h"
 #include "main/snort_debug.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "detection/detection_defines.h"
 #include "detection/detection_util.h"
 #include "framework/cursor.h"
index 454c2c89315117fe846c7d250ffcf4c0403c0ab6..ecd7d55bc60577b6ca8b67b9fdf80ac604ab4606 100644 (file)
@@ -33,7 +33,7 @@
 #include "protocols/tcp.h"
 #include "parser/parser.h"
 #include "utils/util.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "hash/sfhashfcn.h"
 #include "detection/treenodes.h"
 #include "detection/detection_defines.h"
index 75e69750278896f73b1f8bc89796dfcaa76d4125..c134a7b6fdd764fbb9347b3fdac10f52d9baa0dc 100644 (file)
@@ -35,7 +35,7 @@
 #include "utils/util.h"
 #include "hash/sfhashfcn.h"
 #include "stream/stream_api.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "detection/detection_defines.h"
 #include "framework/ips_option.h"
 #include "framework/parameter.h"
index 1fd63b8e4f60ce4abf8f96400cd163725a2e6645..40255055c1f0eafe420f0163b8f6b10874d51b74 100644 (file)
@@ -62,7 +62,7 @@ using namespace std;
 #include "hash/sfghash.h"
 #include "parser/mstring.h"
 #include "stream/stream_api.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "hash/sfhashfcn.h"
 #include "detection/detection_defines.h"
 #include "framework/ips_option.h"
index e990b6de6b754a2c453c3b08e4f3dcd3062264f0..5c574cb1c1978aa740f8ce7cc8ebd79b520b0fdf 100644 (file)
@@ -56,7 +56,7 @@
 #include "protocols/packet.h"
 #include "parser/parser.h"
 #include "utils/util.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "hash/sfhashfcn.h"
 #include "detection/treenodes.h"
 #include "detection/detection_defines.h"
index 9056ff27b024086452fc759d384fbcedf3a63d4f..5151779fca2bb2059cdb1af2bb00c4714fb0c2b4 100644 (file)
@@ -29,7 +29,7 @@
 #include "main/snort_types.h"
 #include "main/snort_debug.h"
 #include "protocols/packet.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "hash/sfhashfcn.h"
 #include "detection/detection_defines.h"
 #include "framework/ips_option.h"
index 302403857a10c229c9218488e5b4f7e4debbc53a..6c49953d6f3781bfeb13e534fd9092b12b474ac9 100644 (file)
@@ -32,7 +32,7 @@
 #include "hash/hashes.h"
 #include "framework/cursor.h"
 #include "framework/ips_option.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "detection/detection_defines.h"
 #include "detection/detection_util.h"
 #include "framework/parameter.h"
index dc368bbae454193a8851c63878e3bc1d5e477b16..4bbbd0177d177232c5ef4415a35ccadb89e58d65 100644 (file)
@@ -24,7 +24,7 @@
 #include "main/snort_types.h"
 #include "main/snort_debug.h"
 #include "protocols/packet.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "flow/flow.h"
 #include "detection/detection_defines.h"
 #include "framework/ips_option.h"
index 0e19a0b5d4210e59c32e5e37c546549fe31cb0b7..5b2130ea0f50baa20bccd2d77cb0b35246e2a120 100644 (file)
@@ -27,7 +27,7 @@ using namespace std;
 #include "main/snort_types.h"
 #include "main/snort_debug.h"
 #include "parser/parser.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "flow/flow.h"
 #include "detection/detection_defines.h"
 #include "framework/ips_option.h"
index 395b5357832ae875fe3fbffd6c6342f4847e798b..a0b009d6f2ea100fda190998a98a0ae3e441b192 100644 (file)
@@ -48,7 +48,7 @@
 #include "main/snort_types.h"
 #include "main/snort_debug.h"
 #include "protocols/packet.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "hash/sfhashfcn.h"
 #include "detection/detection_defines.h"
 #include "framework/ips_option.h"
index 3caede13e81e602cd55ab2c57cc31b1f21e752d8..1f1ca07e08d95d2d5cdae18c78b7cacdb0a97119 100644 (file)
@@ -47,7 +47,7 @@
 
 #include "main/snort_types.h"
 #include "main/snort_debug.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "hash/sfhashfcn.h"
 #include "detection/detection_defines.h"
 #include "framework/ips_option.h"
index 00fb6035d0863241b7a134e2b9947bf5c26977c6..48948fd8f9c6c1b85e6641b2633f779a56a761ff 100644 (file)
@@ -29,7 +29,7 @@
 #include "main/snort_debug.h"
 #include "protocols/packet.h"
 #include "hash/sfhashfcn.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "detection/detection_defines.h"
 #include "framework/ips_option.h"
 #include "framework/parameter.h"
index f8f795df5851144973c888143dc85da26f4bcdb9..6fb8de88002a15316f120d97bca6e5a37efac05e 100644 (file)
@@ -26,7 +26,7 @@
 #include "main/snort_types.h"
 #include "main/snort_debug.h"
 #include "protocols/packet.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "hash/sfhashfcn.h"
 #include "detection/detection_defines.h"
 #include "framework/ips_option.h"
index 43d6134884201d18a1c74145eab9db1c0bafabc4..34769a7608afba37b65832b991edb423e3b79268 100644 (file)
@@ -31,7 +31,7 @@
 #include "protocols/packet.h"
 #include "parser/parser.h"
 #include "utils/util.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "hash/sfhashfcn.h"
 #include "detection/treenodes.h"
 #include "detection/detection_defines.h"
index 86301bb2980fab33716ac22aa1a657e6c83c1598..6d2d2fab3f95710d1febad618cd60cd2c01d85a5 100644 (file)
@@ -34,7 +34,7 @@
 #include "protocols/ipv4_options.h"
 #include "parser/parser.h"
 #include "utils/util.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "hash/sfhashfcn.h"
 #include "detection/treenodes.h"
 #include "detection/detection_defines.h"
index 1b43ad3143629bed24855c99faea2d506b0475af..437d75cdc94bd3a82bd4308c38e7d53f6015ae4b 100644 (file)
@@ -50,7 +50,7 @@
 #include "main/snort_types.h"
 #include "utils/snort_bounds.h"
 #include "utils/util.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "hash/sfhashfcn.h"
 #include "detection/treenodes.h"
 #include "detection/detection_defines.h"
index 362a6f85a6e8418eb2109af57cb9a3b64ff829f3..4bba006c0cf6dd1915ccdc467fdc96b345a7158f 100644 (file)
@@ -25,7 +25,7 @@
 #include "main/snort_debug.h"
 #include "protocols/packet.h"
 #include "hash/sfhashfcn.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "detection/detection_defines.h"
 #include "framework/ips_option.h"
 #include "framework/parameter.h"
index 96a34ee8dac7ab74910d968efd6b8024f67dd8ec..35fd91ca3feb68d61c0ae6fb2f3b88bbddb13e7e 100644 (file)
@@ -33,7 +33,7 @@
 #include "framework/module.h"
 #include "framework/parameter.h"
 #include "log/messages.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "detection/detection_defines.h"
 
 static THREAD_LOCAL ProfileStats luaIpsPerfStats;
index 461d04759883161bbe8df0c5000a0d7d9625e831..67da20c6d50abd194560cd5d6c7517525f7ab1ce 100644 (file)
@@ -36,7 +36,7 @@
 #include "utils/util.h"
 #include "utils/snort_bounds.h"
 #include "hash/sfhashfcn.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "detection/treenodes.h"
 #include "detection/detection_defines.h"
 #include "detection/detection_util.h"
index 9fb274f40639e0a4906899f626bd3d78c33fc539..97276f7891fb5f373147584b1be098aaf4a5cbc6 100644 (file)
@@ -25,7 +25,7 @@
 #include "main/snort_debug.h"
 #include "utils/snort_bounds.h"
 #include "protocols/packet.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "framework/cursor.h"
 #include "framework/ips_option.h"
 #include "framework/module.h"
index b63133d3ad3c7f9b33afd4139762f6f93582ca91..ca806d011e7df28448db6bce6fb18a1e9c99bd03 100644 (file)
@@ -24,7 +24,7 @@
 #include "main/snort_types.h"
 #include "main/snort_debug.h"
 #include "protocols/packet.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "detection/detection_defines.h"
 #include "detection/detection_util.h"
 #include "framework/cursor.h"
index 74fddab41e26f003eabcd2f5a64791a7f49e1ecd..d9140f759a74f63fafd145ebd20cd37c16120576 100644 (file)
@@ -33,7 +33,7 @@
 #include "main/snort_config.h"
 #include "main/thread.h"
 #include "parser/parser.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 
 #define s_name "regex"
 
index d354519dc339081d7edfaf1f1b14687b1f7a9b4c..c4ac92dab9d9f91cb0faf60727d547d69dc6e987 100644 (file)
@@ -42,7 +42,7 @@ using namespace std;
 #include "detection/detection_defines.h"
 #include "actions/act_replace.h"
 #include "hash/sfhashfcn.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 
 static void replace_parse(const char* args, string& s)
 {
index ab5fc694735db8256497e7bf52bafe6a08a50110..9e4a349205134f8fa4a6dbb6bc99352eb4a43bc1 100644 (file)
@@ -32,7 +32,7 @@
 #include "main/snort_debug.h"
 #include "utils/util.h"
 #include "hash/sfhashfcn.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "detection/treenodes.h"
 #include "detection/detection_defines.h"
 #include "framework/ips_option.h"
index 5e6948dad4564baf5548270a7f9be6247d6c9e52..6814810cefcc8a7f6bdc07e0c638364e0c5add93 100644 (file)
@@ -23,7 +23,7 @@
 
 #include "main/snort_types.h"
 #include "main/snort_debug.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "hash/sfhashfcn.h"
 #include "detection/detection_defines.h"
 #include "framework/ips_option.h"
index bc6f8dac38bd01b81b9b25240de4529109cb1572..c5f2f682d66d648ca39c4783357d6d1a47f64bc7 100644 (file)
@@ -58,7 +58,7 @@
 #include "protocols/packet.h"
 #include "main/snort_debug.h"
 #include "utils/util.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "hash/sfhashfcn.h"
 #include "detection/detection_defines.h"
 #include "detection/treenodes.h"
index 7a7f7db82a71f8671790ca70cc9644f66294f25d..ebf8eb146f37be30fbfceb4f80786cad78f0b036 100644 (file)
@@ -31,7 +31,7 @@ using namespace std;
 #include "managers/so_manager.h"
 #include "hash/sfhashfcn.h"
 #include "parser/parser.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 
 #define s_name "so"
 
index 48459a116fe10a45c40dcf2e2b69d644cc010a14..4f289ad2694e4b218689512d2d9c20de7cacf100 100644 (file)
@@ -23,7 +23,7 @@
 
 #include "main/snort_debug.h"
 #include "protocols/packet.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "hash/sfhashfcn.h"
 #include "detection/detection_defines.h"
 #include "framework/ips_option.h"
index 6a84005ab9113d17ede813f8df8939e6d93c4ffd..6a1fd1f6179d58f9baf8abe2461af1a680caea07 100644 (file)
@@ -25,7 +25,7 @@
 #include "main/snort_debug.h"
 #include "protocols/packet.h"
 #include "hash/sfhashfcn.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "detection/detection_defines.h"
 #include "framework/ips_option.h"
 #include "framework/parameter.h"
index 51f043500a26af9d6d5ae6497a7c937bd7057246..1dafff676b76e240065f613a9dd2f2ed40df91bc 100644 (file)
@@ -24,7 +24,7 @@
 #include "main/snort_types.h"
 #include "main/snort_debug.h"
 #include "protocols/packet.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "hash/sfhashfcn.h"
 #include "detection/detection_defines.h"
 #include "framework/ips_option.h"
index d3e5417e5b75c1f12ab8dedeef3ac52546cb00d1..d931b4a045983c131a6d33625c57fcaacbbec940 100644 (file)
@@ -35,7 +35,7 @@
 #include "framework/logger.h"
 #include "framework/module.h"
 #include "framework/parameter.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "utils/stats.h"
 
 static THREAD_LOCAL ProfileStats luaLogPerfStats;
index 66e6939271d8aa394bc78ec42e92c80203bdfa97..efdba1f6013fb637b385c4ed966b21f44bdba4e6 100644 (file)
@@ -61,7 +61,7 @@ using namespace std;
 #include "lua/lua.h"
 #include "helpers/process.h"
 #include "helpers/swapper.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "time/periodic.h"
 
 #ifdef UNIT_TEST
index 2a493d3a4b6abc2a08f4bd1a6780adf8a66060b8..3472ad517aeb7bc76da8f0c2ddffbe724c51845f 100644 (file)
@@ -49,8 +49,8 @@ using namespace std;
 #include "filters/sfrf.h"
 #include "filters/rate_filter.h"
 #include "codecs/codec_module.h"
-#include "time/ppm_module.h"
-#include "time/profiler.h"
+#include "ppm/ppm_module.h"
+#include "profiler/profiler.h"
 #include "target_based/sftarget_data.h"
 #include "detection/fp_config.h"
 #include "detection/signature.h"
index 9b60ca4b7d2acb7656fb38a0c268298949f9fa48..60e5b0c64632792a92547b8eebb1d3497a58bb29 100644 (file)
@@ -81,8 +81,8 @@ using namespace std;
 #include "filters/rate_filter.h"
 #include "filters/detection_filter.h"
 #include "time/packet_time.h"
-#include "time/ppm.h"
-#include "time/profiler.h"
+#include "ppm/ppm.h"
+#include "profiler/profiler.h"
 #include "time/periodic.h"
 #include "perf_monitor/perf.h"
 #include "ips_options/ips_flowbits.h"
index 1de0243b4c9e94f2d5d59a3a7b79153873403897..56d7da1fd3aaa4e54cdcd5dff7948def75898ce7 100644 (file)
@@ -54,8 +54,8 @@
 #include "ips_options/ips_pcre.h"
 #include "ips_options/ips_regex.h"
 #include "protocols/udp.h"
-#include "time/ppm.h"
-#include "time/profiler.h"
+#include "ppm/ppm.h"
+#include "profiler/profiler.h"
 #include "sfip/sf_ip.h"
 
 THREAD_LOCAL SnortConfig* snort_conf = nullptr;
index eb8fccf1f49a0c288a17f49e943f2c75965e0095..1c36224640d92609a40ad653eb66ef1d2d9de5ab 100644 (file)
@@ -33,7 +33,7 @@
 #include "log/obfuscation.h"
 #include "log/messages.h"
 #include "packet_io/active.h"
-#include "time/ppm.h"
+#include "ppm/ppm.h"
 #include "target_based/snort_protocols.h"
 #include "binder/bind_module.h"
 
index 44d95f727970398b26b0a13f688e99fd843d6320..b53ec2cc09d09a05b00c125f7748e123173921d3 100644 (file)
@@ -39,7 +39,7 @@
 #include "parser/parser.h"
 #include "parser/parse_conf.h"
 #include "parser/vars.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "helpers/markup.h"
 #include "utils/stats.h"
 
index da56605414c5356ded50ba07a3939e18b5bfa94e..6116440d7e972654221189d46276f1cf7d1ef830 100644 (file)
@@ -85,7 +85,7 @@
 #include "events/event_queue.h"
 #include "parser/parser.h"
 #include "utils/util.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "framework/inspector.h"
 #include "protocols/packet.h"
 #include "protocols/layer.h"
index c9b9c3d3399a30fc24cc131d3bd190a9ea714298..a1568b21cb5506200ec3ec382bd0c914283aea82 100644 (file)
@@ -32,7 +32,7 @@ using namespace std;
 #include "protocols/layer.h"
 #include "stream/stream_api.h"
 #include "stream/stream_splitter.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "utils/stats.h"
 #include "log/messages.h"
 #include "main/snort_config.h"
index 685493a8e1fed1e14a075e1c96d915dba402db9f..dfb9ab244181db3f6d6e4b518fbec1fe3c045c60 100644 (file)
@@ -24,7 +24,7 @@
 #include "packet_io/active.h"
 #include "packet_io/sfdaq.h"
 #include "parser/parser.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "main/snort_types.h"
 #include "main/snort_config.h"
 #include "framework/inspector.h"
index ef898ebc42f51bf28c78829a36a11d3313973afe..b1fc307c946d51c3f52356b1ddb211f5e50f410e 100644 (file)
@@ -46,7 +46,7 @@
 #include "main/snort_debug.h"
 #include "parser/parser.h"
 #include "packet_io/sfdaq.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "framework/inspector.h"
 #include "utils/stats.h"
 #include "utils/util.h"
index 43ec3b1a73b856bc120c5ad5046a25ed97d92209..af1c31608107c4c2dbc1216551a93164eb7c6175 100644 (file)
@@ -64,7 +64,7 @@
 #include "utils/util.h"
 #include "utils/sfsnprintfappend.h"
 #include "framework/inspector.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "time/packet_time.h"
 #include "detection/detect.h"
 
index a35dd4d58aad3dd0dee60539e473fe900f9e1c45..f1ac3a47ff92eb031d3e1fd5d4e8e01481f17350 100644 (file)
@@ -66,7 +66,7 @@
 #include "utils/sflsq.h"
 #include "utils/util.h"
 #include "utils/snort_bounds.h"
-#include "time/ppm.h"
+#include "ppm/ppm.h"
 #include "filters/rate_filter.h"
 #include "filters/detection_filter.h"
 #include "packet_io/active.h"
index 53a765846e9ec97306185057e77672d0362f4f64..3af982b3e47b77c1869ab2cb0e6c6b13f852d5b1 100644 (file)
@@ -74,7 +74,7 @@
 #include "sfip/sf_vartable.h"
 #include "sfip/sf_ip.h"
 #include "sfip/sf_ipvar.h"
-#include "time/ppm.h"
+#include "ppm/ppm.h"
 #include "packet_io/active.h"
 #include "file_api/libs/file_config.h"
 #include "actions/actions.h"
index 28a2c373e4221fd478976ff34afe25fc7adc545e..47767331761ca8274830fdbaf4bc1ac8f64205c2 100644 (file)
@@ -63,7 +63,7 @@
 #include "sfip/sf_vartable.h"
 #include "sfip/sf_ip.h"
 #include "sfip/sf_ipvar.h"
-#include "time/ppm.h"
+#include "ppm/ppm.h"
 #include "packet_io/active.h"
 #include "file_api/libs/file_config.h"
 #include "framework/ips_option.h"
diff --git a/src/ppm/CMakeLists.txt b/src/ppm/CMakeLists.txt
new file mode 100644 (file)
index 0000000..19b6e02
--- /dev/null
@@ -0,0 +1,11 @@
+set ( PPM_SOURCES ppm.cc ppm_module.cc )
+set ( PPM_INCLUDES ppm.h )
+
+add_library ( ppm STATIC
+    ${PPM_SOURCES}
+    ${PPM_INCLUDES}
+)
+
+install (FILES ${PPM_INCLUDES}
+    DESTINATION "${INCLUDE_INSTALL_PATH}/ppm"
+)
diff --git a/src/ppm/Makefile.am b/src/ppm/Makefile.am
new file mode 100644 (file)
index 0000000..53faefb
--- /dev/null
@@ -0,0 +1,11 @@
+noinst_LIBRARIES = libppm.a
+
+x_includedir = $(pkgincludedir)/ppm
+
+x_include_HEADERS = ppm.h
+
+libppm_a_SOURCES = \
+ppm.cc \
+ppm.h \
+ppm_module.cc \
+ppm_module.h
similarity index 97%
rename from src/time/ppm.cc
rename to src/ppm/ppm.cc
index e9a315cf1eac4c1eca65af4df131eb6d5e9074e7..cf2e8001e8b16ba43379302ff3b2396e7a93d540 100644 (file)
 #include "config.h"
 #endif
 
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-#include <syslog.h>
-#include <time.h>
-
 #include "ppm_module.h"
-#include "main/snort_types.h"
-#include "detection/rules.h"
-#include "detection/treenodes.h"
-#include "detection/rules.h"
 #include "detection/fp_create.h"
-#include "detection/detect.h"
 #include "parser/parser.h"
 #include "events/event_queue.h"
-#include "events/event_wrapper.h"
-#include "actions/actions.h"
-#include "protocols/packet.h"
 #include "utils/stats.h"
-#include "utils/util.h"
 #include "sfip/sf_ip.h"
-
-#ifdef PPM_MGR
+#include "time/cpuclock.h"
 
 #define PPM_BASE_SUSPEND_RULE_GID 1000
 #define PPM_BASE_CLEAR_RULE_GID   2000
@@ -526,6 +509,3 @@ void ppm_set_rule_threshold(ppm_cfg_t* ppm_cfg, unsigned int cnt)
 {
     ppm_cfg->rule_threshold = cnt;
 }
-
-#endif
-
similarity index 98%
rename from src/time/ppm.h
rename to src/ppm/ppm.h
index 16354710ed1db18116233bae81027f77d54eea1b..2461506563642ce63d5282a3b60cbb70d0f4e174 100644 (file)
 #include "config.h"
 #endif
 
-// FIXIT-M: Instead of an empty source file, use CMake/Make to enable/disable
-//          this compilation unit
-#ifdef PPM_MGR
-#include "main/snort_types.h"
 #include "main/thread.h"
-#include "time/cpuclock.h"
 #include "detection/detection_options.h"
 
 typedef uint64_t PPM_TICKS;
@@ -314,7 +309,5 @@ void ppm_set_rule(detection_option_tree_root_t*, PPM_TICKS);
 #define PPM_GET_TIME()
 #define PPM_SET_TIME()
 
-#endif // PPM_MGR
-
 #endif
 
similarity index 99%
rename from src/time/ppm_module.cc
rename to src/ppm/ppm_module.cc
index ebc22a51d10c68b7f6fba27dda6eca34347097a7..d480e2415930c45f5cf1cc108e6fe56a454e1786 100644 (file)
@@ -31,8 +31,6 @@
 // ppm attributes
 //-------------------------------------------------------------------------
 
-#ifdef PPM_MGR
-
 #define s_name "ppm"
 #define s_help \
     "packet and rule latency monitoring and control (requires --enable-ppm)"
@@ -140,6 +138,3 @@ bool PpmModule::set(const char*, Value& v, SnortConfig* sc)
 
     return true;
 }
-
-#endif
-
similarity index 92%
rename from src/time/ppm_module.h
rename to src/ppm/ppm_module.h
index a2f759073e8d86982e9fbc619d20be8d37bf8986..cbcf9f7fb686439aac35f99085dc4ab33cf78dac 100644 (file)
@@ -26,9 +26,6 @@
 #include "config.h"
 #endif
 
-// FIXIT-M: Instead of an empty source file, use CMake/Make to enable/disable
-//          this compilation unit
-#ifdef PPM_MGR
 #include "framework/module.h"
 
 #define GID_PPM 134
@@ -52,6 +49,5 @@ public:
     { return GID_PPM; }
 };
 
-#endif // PPM_MGR
 #endif
 
diff --git a/src/profiler/CMakeLists.txt b/src/profiler/CMakeLists.txt
new file mode 100644 (file)
index 0000000..b53ced4
--- /dev/null
@@ -0,0 +1,15 @@
+set ( PROFILER_SOURCES profiler.cc )
+set ( PROFILER_INCLUDES profiler.h )
+
+if ( ENABLE_PERFPROFILING )
+
+    add_library ( profiler STATIC
+        ${PROFILER_SOURCES}
+        ${PROFILER_INCLUDES}
+    )
+
+endif ( ENABLE_PERFPROFILING )
+
+install (FILES ${PROFILER_INCLUDES}
+    DESTINATION "${INCLUDE_INSTALL_PATH}/profiler"
+)
diff --git a/src/profiler/Makefile.am b/src/profiler/Makefile.am
new file mode 100644 (file)
index 0000000..d41d2f6
--- /dev/null
@@ -0,0 +1,13 @@
+if PERF_PROFILING
+noinst_LIBRARIES = libprofiler.a
+endif
+
+x_includedir = $(pkgincludedir)/profiler
+
+x_include_HEADERS = profiler.h
+
+if PERF_PROFILING
+libprofiler_a_SOURCES = \
+profiler.cc \
+profiler.h
+endif
similarity index 100%
rename from src/time/profiler.h
rename to src/profiler/profiler.h
index 8441900095a3e03863130b437cfea639391d1f0f..cfb3c7c02eec64458f8405f6d24b84c43af064b5 100644 (file)
@@ -38,7 +38,7 @@
 #include "protocols/eth.h"
 #include "protocols/icmp4.h"
 #include "protocols/icmp6.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "parser/parser.h"
 
 #include "codecs/codec_module.h"
index e9ebf14896b32a1dba21141d2548a1a698c23ff3..17e57e4bbac39fd14ea23213f1ff08fe8a2f7549 100644 (file)
@@ -24,7 +24,7 @@
 #include "main/snort_types.h"
 #include "main/snort_config.h"
 #include "utils/util.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "framework/mpse.h"
 
 //-------------------------------------------------------------------------
index 91be11bd70381b10a660e804b8343e9ac5a51623..88a853ddf4725425ad43d15cacccbd39a646a8f4 100644 (file)
@@ -32,7 +32,7 @@
 #include "main/snort_types.h"
 #include "main/snort_config.h"
 #include "utils/util.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "framework/mpse.h"
 
 //-------------------------------------------------------------------------
index 1d26237afbbf09be2fbbf844adf8052bcb5a40eb..964622e7d16ea189fb437ae6e0f4ae8e649f8088 100644 (file)
@@ -32,7 +32,7 @@
 #include "main/snort_types.h"
 #include "main/snort_config.h"
 #include "utils/util.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "framework/mpse.h"
 
 //-------------------------------------------------------------------------
index f8a6521657b64df9fe685eb83578205f13f0dade..78394fb94517a25fdd41f34864c0ab404b0f6088 100644 (file)
@@ -24,7 +24,7 @@
 #include "main/snort_types.h"
 #include "main/snort_config.h"
 #include "utils/util.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "framework/mpse.h"
 
 //-------------------------------------------------------------------------
index c29cf45b2a4289c4d3fea710835e2ef417b235b7..6a34a0962d815771b5acd26575ff427049f7d68d 100644 (file)
@@ -24,7 +24,7 @@
 #include "main/snort_types.h"
 #include "main/snort_config.h"
 #include "utils/util.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "framework/mpse.h"
 
 //-------------------------------------------------------------------------
index 37b74fbe900d5d155af07611c0800353e53a0b35..8e247434f748c2abff37f94192b0bc613034b073 100644 (file)
@@ -24,7 +24,7 @@
 #include "main/snort_types.h"
 #include "main/snort_config.h"
 #include "utils/util.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "framework/mpse.h"
 
 //-------------------------------------------------------------------------
index f797940bb955f197dd382f266a4d7c459e85f7ef..6317a73eb8db88bfef73b29550650424678c635f 100644 (file)
@@ -24,7 +24,7 @@
 #include "main/snort_types.h"
 #include "main/snort_config.h"
 #include "utils/util.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "framework/mpse.h"
 
 //-------------------------------------------------------------------------
index b7085c23b6d4938ee14086483a7c717c0d2db918..4cf66762fd6519183c9e0c3e7a0ca489a94b482f 100644 (file)
@@ -28,7 +28,7 @@
 #include "main/snort_types.h"
 #include "main/snort_config.h"
 #include "utils/util.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "framework/mpse.h"
 
 //-------------------------------------------------------------------------
index d8ff050ad28209106c4577f6d51740b0bcbf272a..fb342bc5ede06692e46bba1dc109796a21dddec4 100644 (file)
@@ -28,7 +28,7 @@
 #include "main/snort_types.h"
 #include "main/snort_config.h"
 #include "utils/util.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "framework/mpse.h"
 
 //-------------------------------------------------------------------------
index 17e35ee021435fe10b6efc8522c1e1127dcf87b5..c4553afaf48fb53632ed185c16526008af5f5e29 100644 (file)
 #include "events/event_queue.h"
 #include "parser/parser.h"
 #include "utils/util.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "framework/inspector.h"
 #include "framework/module.h"
 #include "protocols/udp.h"
index 9f4fffdf1b325ee6b2dc26a7dc56da18914a53f0..ba9a2fc687548575c2e985f10dff23396c3caddd 100644 (file)
@@ -35,7 +35,7 @@
 #include "events/event_queue.h"
 #include "main/snort_types.h"
 #include "main/snort_debug.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "stream/stream_api.h"
 #include "parser/parser.h"
 #include "framework/inspector.h"
index a8c0df9f63a89fab83b5633e99d70ef88a0e730d..f002cf84e8cc7aa387c79693f6df833776aba985 100644 (file)
@@ -24,7 +24,6 @@
 
 #include "protocols/packet.h"
 #include "stream/stream_api.h"
-#include "time/profiler.h"
 
 // Implementation header with definitions, datatypes and flowdata class for
 // DNS service inspector.
index c0d3d15e8c8c4177bd7221209c03649d9f38da07..bf3a5136b2af23382e8c5d73bdd3c30b4d141425 100644 (file)
@@ -61,7 +61,7 @@
 #include "main/snort_types.h"
 #include "main/snort_debug.h"
 #include "stream/stream_api.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "detection/detection_util.h"
 #include "parser/parser.h"
 #include "utils/sfsnprintfappend.h"
index 3ac9e8c2d7d5ecdb68154c1a1e087e98bb648851..0f82c9b18beb5fa646755dff13a143e15e0212a3 100644 (file)
@@ -39,7 +39,6 @@
 #include "ftpp_ui_config.h"
 #include "protocols/packet.h"
 #include "framework/bits.h"
-#include "time/profiler.h"
 
 #define BUF_SIZE 1024
 
@@ -59,6 +58,7 @@ FTP_CLIENT_PROTO_CONF* get_ftp_client(Packet*);
 FTP_SERVER_PROTO_CONF* get_ftp_server(Packet*);
 
 #ifdef PERF_PROFILING
+struct ProfileStats;
 void ft_update_perf(ProfileStats&);
 #endif
 
index 8454f1537e9d84734532eb670904e42f3e11d4b1..b3896fde7e5f064a5e48565569588e1e8f832402 100644 (file)
@@ -48,7 +48,7 @@
 #include "managers/inspector_manager.h"
 #include "detection/detection_util.h"
 #include "target_based/snort_protocols.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 
 int16_t ftp_data_app_id = SFTARGET_UNKNOWN_PROTOCOL;
 
index 5b18658eddcc6fb2b3fa24a0b40db93af7e5c9d2..7bb0e8976e44dcb657b677675fcc7c2f65cc0f03 100644 (file)
@@ -49,7 +49,7 @@
 #include "framework/inspector.h"
 #include "detection/detection_util.h"
 #include "protocols/tcp.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 
 #define s_name "ftp_data"
 
index 2bad132b6aa69f0851a893b5305ffc66a3e9af69..20d6654cfae74b8505c5e35405ae291a53870142 100644 (file)
@@ -46,7 +46,7 @@
 #include "main/snort_types.h"
 #include "main/snort_debug.h"
 #include "stream/stream_api.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "detection/detection_util.h"
 #include "parser/parser.h"
 #include "parser/mstring.h"
index baa69b71d194275d275e644e69eb6f438418466d..d4e9bed16b61a36bf997ace22a9d822cf24635f1 100644 (file)
@@ -48,7 +48,7 @@
 #include "main/snort_types.h"
 #include "main/snort_debug.h"
 #include "stream/stream_api.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "detection/detection_util.h"
 #include "parser/parser.h"
 #include "utils/sfsnprintfappend.h"
index dda3f7fa17b8fafeadc205dfa051d1ccc0d5500b..a4dc5e00ce78f8bcfbd731ef06d87f19a7afe2e8 100644 (file)
@@ -38,7 +38,7 @@
 
 #include "main/snort_types.h"
 #include "main/snort_debug.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "stream/stream_api.h"
 #include "file_api/file_api.h"
 #include "parser/parser.h"
index 06688b2e3b21337556e834673d2e100c41e594e6..231ea0b0233beb629709bbdf1bd4fae2431c2a00 100644 (file)
@@ -41,7 +41,7 @@
 #include "main/snort_debug.h"
 #include "main/snort_types.h"
 #include "protocols/packet.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 
 #include "gtp.h"
 #include "gtp_inspect.h"
index 8bc74f45eada758dd1b61e45033371ca590e1b73..3c8f604a19808512f03e21aa9f1a9c97f9e78e3e 100644 (file)
@@ -27,7 +27,7 @@
 
 #include "managers/inspector_manager.h"
 #include "protocols/packet.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 
 #include "gtp.h"
 #include "gtp_module.h"
index 024b9a742d7611900c3f3f505c07e177a6a5c2ce..77b6f6474887df46099ff0357c85f35ff26cc591 100644 (file)
@@ -23,7 +23,7 @@
 #include <cassert>
 
 #include "gtp.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 
 THREAD_LOCAL ProfileStats gtp_inspect_prof;
 
index 5119d6c5a75bec9ba7fee2ca97308f41d1b18230..07ec4c59833b1e5cd363be58bd61205cd0a2100f 100644 (file)
@@ -32,7 +32,7 @@
 #include "framework/module.h"
 #include "hash/sfhashfcn.h"
 #include "protocols/packet.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 
 #include "gtp.h"
 #include "gtp_inspect.h"
index a021608305f770921d28f819a86572c6f226e297..29ee80470fbcf3aa890d0ecd0ac0a5a4a859bce4 100644 (file)
@@ -32,7 +32,7 @@
 #include "framework/module.h"
 #include "hash/sfhashfcn.h"
 #include "protocols/packet.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 
 #include "gtp.h"
 #include "gtp_inspect.h"
index ea1547f9e19a78d7dcc99bde0ee949177d948f28..d81a12647c2118471b3465adba6a3c2208619bc0 100644 (file)
@@ -31,7 +31,7 @@
 #include "framework/module.h"
 #include "hash/sfhashfcn.h"
 #include "protocols/packet.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 
 #include "gtp_inspect.h"
 
index 0a6f049812fc7a14aa3689379a2d4082d3e922e9..cb9e3ae78bcee53be9971a01f518c3b7953cb962 100644 (file)
@@ -67,7 +67,7 @@
 #include "utils/sfsnprintfappend.h"
 #include <mime/decode_base.h>
 #include "stream/stream_api.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "loggers/unified2_common.h"
 #include "file_api/file_api.h"
 #include "file_api/file_flows.h"
index f76684c867adbbf37a212ec0acc2f056f4dedd07..3e6ee4345026347bb1e5adb570c651cb4e8b0b5b 100644 (file)
@@ -31,7 +31,6 @@
 #include "stream/stream_api.h"
 #include "detection/detection_util.h"
 #include "search_engines/search_tool.h"
-#include "time/profiler.h"
 #include "utils/util_jsnorm.h"
 #include "utils/util_utf.h"
 
@@ -78,6 +77,7 @@ extern SO_PUBLIC THREAD_LOCAL HttpBuffer http_buffer[HTTP_BUFFER_MAX];
 extern THREAD_LOCAL DataBuffer HttpDecodeBuf;
 
 #ifdef PERF_PROFILING
+struct ProfileStats;
 extern THREAD_LOCAL ProfileStats hiDetectPerfStats;
 extern THREAD_LOCAL int hiDetectCalled;
 #endif
index 88c655acdca16a6ddc4c9286d6632c0b7ef18846..a97fa8bae71d044d1cab7047f474e972e8d23c4f 100644 (file)
@@ -44,7 +44,7 @@
 #include "main/snort_debug.h"
 #include "parser/parser.h"
 #include "decompress/file_decomp.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "detection/detection_util.h"
 #include "stream/stream_api.h"
 #include "target_based/snort_protocols.h"
index c9650934765cf864400d4ecff1b6f637833c23df..3e7a5017759eed6cb7c3fa5f76abb1216c3fe397 100644 (file)
@@ -32,7 +32,7 @@
 #include "events/event_queue.h"
 #include "main/snort_types.h"
 #include "main/snort_debug.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "stream/stream_api.h"
 #include "file_api/file_api.h"
 #include "parser/parser.h"
index c172662f83fa78e9dd48705ce248bebf02b74350..3cdb885ba02aaac34a69d074da6740cb5a2f59b9 100644 (file)
@@ -26,7 +26,6 @@
 
 #include "protocols/packet.h"
 #include "stream/stream_api.h"
-#include "time/profiler.h"
 #include "imap_config.h"
 
 // Direction packet is coming from, if we can figure it out
index ef9aacfc5b6d4f74aa3502486ed9661fc6d92789..4cebf97312c49827379ce733eb07e32c92312761 100644 (file)
@@ -27,7 +27,7 @@
 #include "framework/module.h"
 #include "hash/sfhashfcn.h"
 #include "protocols/packet.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 
 #include "modbus.h"
 #include "modbus_decode.h"
index a2e278e8b201ecda54ea791048244b078270599c..b7a36d06efb6b0519c63e6faece925ac393bb690 100644 (file)
@@ -26,7 +26,7 @@
 #include "framework/module.h"
 #include "hash/sfhashfcn.h"
 #include "protocols/packet.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 
 #include "modbus.h"
 
index f04642be217b8558f74f7a5e20a04953db0ba024..1e5f889c5aa7f1c507bb11dea41bc0220681dd9b 100644 (file)
@@ -26,7 +26,7 @@
 #include "framework/module.h"
 #include "hash/sfhashfcn.h"
 #include "protocols/packet.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 
 #include "modbus.h"
 
index 97a87a2d02f5f4843d328dbe4cf021414175fea2..60416ea228851f229dbb82632ed23a5022822adc 100644 (file)
@@ -26,7 +26,7 @@
 
 #include "events/event_queue.h"
 #include "managers/inspector_manager.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 
 #include "modbus_decode.h"
 #include "modbus_module.h"
index e9371daa1e2436dfc7df542442413ce5c2a52418..8fd46ffdfd5db6114cbfe2c1cbd940c1c61f63ca 100644 (file)
@@ -21,7 +21,7 @@
 #include "modbus_module.h"
 
 #include "modbus.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 
 THREAD_LOCAL ProfileStats modbus_prof;
 
index 9aa82f1b1f9d13f095b5d031b4ece6e25b8f923d..68ea49a0cafa8a2990ca503d150a4d294cbb3c60 100644 (file)
@@ -30,7 +30,7 @@
 #include "events/event_queue.h"
 #include "main/snort_types.h"
 #include "main/snort_debug.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "stream/stream_api.h"
 #include "parser/parser.h"
 #include "framework/inspector.h"
index f9a4e8124607a9a093bc3632cb52af3bd911c39d..257c4d1be2e3c94974f42ac545a6328764d787f2 100644 (file)
@@ -26,7 +26,6 @@
 
 #include "protocols/packet.h"
 #include "stream/stream_api.h"
-#include "time/profiler.h"
 #include "pop_config.h"
 
 // Direction packet is coming from, if we can figure it out
index c9aa53dbc2372c4ef34866bb827d6c2efc33eda3..e4fc332da8bc07718c7934a05c01a01f57e5f998 100644 (file)
@@ -49,7 +49,7 @@
 #include "main/snort_debug.h"
 #include "detection/detect.h"
 #include "log/log.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "utils/snort_bounds.h"
 #include "utils/util.h"
 #include "detection/detection_util.h"
index efb8d13b3c1b519eacf3ec7f9d9af65b1e11dac5..85ab019dbc694cfaaa5d2624d1c255d9c7319654 100644 (file)
@@ -28,7 +28,7 @@
 #include "main/snort_types.h"
 #include "main/snort_debug.h"
 #include "protocols/packet.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "flow/flow.h"
 #include "detection/detection_defines.h"
 #include "framework/ips_option.h"
index bb86b7095208583eb4d2e79c91bdcf3e2c160102..564485716fdc04d6da552df4128a421d2a66ad3c 100644 (file)
@@ -34,7 +34,7 @@
 #include "detection/detect.h"
 #include "detection/detection_defines.h"
 #include "hash/sfhashfcn.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 
 //-------------------------------------------------------------------------
 // sip_method
index 71b6ac6953396df2d7dfd33e662a1d31564e13f6..04ad8428dc92aa0a729acbad626c91a0f391f4ec 100644 (file)
@@ -34,7 +34,7 @@
 #include "detection/detect.h"
 #include "detection/detection_defines.h"
 #include "hash/sfhashfcn.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 
 //-------------------------------------------------------------------------
 // sip_stat_code
index f6d1babc866fd295f82a76ce8c8f4bb9b0c19d2f..1441a0674aff35d949e908c876a9814f033f2ab8 100644 (file)
@@ -31,7 +31,7 @@
 #include "main/snort_types.h"
 #include "main/snort_debug.h"
 #include "main/snort_config.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "stream/stream_api.h"
 #include "file_api/file_api.h"
 #include "parser/parser.h"
index d3927a9d43e09334d055dad1cb25821b8be86b09..20ccfa91aa334a6ef31ec357753833fa59b68894 100644 (file)
@@ -23,7 +23,6 @@
 
 #include "protocols/packet.h"
 #include "stream/stream_api.h"
-#include "time/profiler.h"
 #include "sip_config.h"
 #include "sip_dialog.h"
 #include "sip_parser.h"
index decd144958c1b041be77f3f4011b245c9a92f959..7924d1e330e00e269f3628994281ccaf9e73815d 100644 (file)
@@ -29,7 +29,7 @@
 
 #include "main/snort_types.h"
 #include "main/snort_debug.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "stream/stream_api.h"
 #include "file_api/file_api.h"
 #include "mime/file_mime_process.h"
index 7d8f660a6b64ddb4e8db913f671b79f700678527..13cb8f02d06c77f78abe1163f9f69a1475f4b173 100644 (file)
@@ -27,7 +27,6 @@
 #include "protocols/packet.h"
 #include "stream/stream_api.h"
 #include "main/thread.h"
-#include "time/profiler.h"
 #include "smtp_config.h"
 
 // Direction packet is coming from, if we can figure it out
index 87a6b3a5969c2c7cddc0d216c429989aef7ec3ff..1976f23c7bc96280fd3c07581dc467561352dd3e 100644 (file)
@@ -34,7 +34,7 @@
 #include "events/event_queue.h"
 #include "main/snort_types.h"
 #include "main/snort_debug.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "stream/stream_api.h"
 #include "file_api/file_api.h"
 #include "parser/parser.h"
index d5fbc2516a0c93f214e4086b7f9c047d3a1dcf3b..06bb6836efc209ac628d386749cd5d45a8dcc05d 100644 (file)
@@ -32,7 +32,6 @@
 
 #include "protocols/packet.h"
 #include "stream/stream_api.h"
-#include "time/profiler.h"
 #include "ssh_config.h"
 
 // Per-session data block containing current state
index b3c950de673f2831f58685c16e25adc1ebcb487b..eb888474ca024f25b025a29f8e95810292a379e1 100644 (file)
@@ -28,7 +28,7 @@
 #include "detection/detect.h"
 #include "detection/detection_defines.h"
 #include "hash/sfhashfcn.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 
 #include "ssl_inspector.h"
 
index 156d5247cb3b6085bbadf5b8ec801450ff5513bc..f03bbbf34d9ef6978a0e677800f95d20a24cca5b 100644 (file)
@@ -28,7 +28,7 @@
 #include "detection/detect.h"
 #include "detection/detection_defines.h"
 #include "hash/sfhashfcn.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 
 #include "ssl_inspector.h"
 
index 5f8e19c76b6b9bef961ae07d4c75bddb0ba0ca2d..0439c956c60811438938b8280ed89fd3c53adce5 100644 (file)
@@ -36,7 +36,7 @@
 #include "events/event_queue.h"
 #include "main/snort_types.h"
 #include "main/snort_debug.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "stream/stream_api.h"
 #include "parser/parser.h"
 #include "framework/inspector.h"
index ad6c47fec4b59b2dce6e60559c703ed57570e4b0..055dbdc375df6d6d1ee090ff0940ec839006a25c 100644 (file)
@@ -23,7 +23,6 @@
 
 #include "protocols/packet.h"
 #include "stream/stream_api.h"
-#include "time/profiler.h"
 #include "ssl_config.h"
 
 #define SSLPP_ENCRYPTED_FLAGS \
index 033400b4909047bdd239cc45b3f720db829215a0..212a60755c8d084154294584f51d1ba50bb0595c 100644 (file)
@@ -25,7 +25,7 @@ using namespace std;
 #include "managers/inspector_manager.h"
 #include "protocols/packet.h"
 #include "stream/stream_splitter.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "utils/stats.h"
 #include "log/messages.h"
 
index 344e9a365978edcdea749de6b5e03ff8e0e52a2f..8be1402b0345425eadf2477f4cf6e3a1e036ca3c 100644 (file)
@@ -29,7 +29,7 @@
 #include "managers/inspector_manager.h"
 #include "flow/flow_control.h"
 #include "stream/stream_api.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "stream/tcp/tcp_session.h"
 
 //-------------------------------------------------------------------------
index 891b09310d572a9f0328ef71ab0fc8154d5a2b9a..f932ad8c617e6978855269e450fa0cd738d333d9 100644 (file)
@@ -26,7 +26,7 @@
 #include "file_api/file_api.h"
 #include "file_api/file_flows.h"
 #include "perf_monitor/perf.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "packet_io/sfdaq.h"
 #include "detection/detection_util.h"
 #include "target_based/snort_protocols.h"
index 0b276e49ef059044b874a74b673ebe8852da0cd2..991e6332293df7bd49c46bf16cc09970ad006d63 100644 (file)
@@ -32,7 +32,7 @@
 #include "flow/flow_control.h"
 #include "flow/session.h"
 #include "perf_monitor/perf.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "protocols/packet.h"
 #include "protocols/layer.h"
 #include "protocols/vlan.h"
index 141a9d2d76fa5be67eb2ff59f22027f5b0421e13..4d1faf173460d18d8c09dd718312fb10c7556443 100644 (file)
@@ -89,7 +89,7 @@
 #include "protocols/ipv4_options.h"
 #include "protocols/packet_manager.h"
 #include "main/snort_debug.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "time/timersub.h"
 #include "perf_monitor/perf.h"
 #include "utils/stats.h"
index ca78b21082c523d099c523331b348f9b04adce8b..a16cd9052ce87242dd803bead886d413b5c72c70 100644 (file)
@@ -30,7 +30,7 @@
 #include "perf_monitor/perf.h"
 #include "flow/flow_control.h"
 #include "sfip/sf_ip.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 
 THREAD_LOCAL ProfileStats ip_perf_stats;
 
index 003ca410c0ff32b2347525901738e3769c88c6d1..15ca79d1826112d21fb99a58ab5fceb76f2cb6d3 100644 (file)
@@ -31,7 +31,7 @@
 #include "detection/detect.h"
 #include "detection/detection_defines.h"
 #include "hash/sfhashfcn.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 
 #ifdef UNIT_TEST
 #include "catch/catch.hpp"
index 77a7136910e35c6b8de31ad00ce2c5166d922250..708210f6b5d079f01e810150cd9fe48bfb827b25 100644 (file)
@@ -29,7 +29,7 @@
 #include "detection/detect.h"
 #include "detection/detection_defines.h"
 #include "hash/sfhashfcn.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "sfip/sf_ip.h"
 
 //-------------------------------------------------------------------------
index 84601a05be27945afde3ab84875d4dc4a66d587b..19fc335122211f7ffc287a8f124ff8330a473846 100644 (file)
 #include "tcp_module.h"
 
 #include <string>
-using namespace std;
 
+#include "profiler/profiler.h"
 #include "stream_tcp.h"
 #include "stream/stream.h"
 
+using namespace std;
+
 //-------------------------------------------------------------------------
 // stream_tcp module
 //-------------------------------------------------------------------------
index 2ca30f951da6137feb1032e31958a04b7f21f402..f7707cf284d72e8ad38d5d444c827413de079692 100644 (file)
@@ -27,7 +27,6 @@
 #include "main/snort_types.h"
 #include "main/thread.h"
 #include "framework/module.h"
-#include "time/profiler.h"
 #include "stream/stream.h"
 
 #define GID_STREAM_TCP  129
index 9e908b5512f3104893f97d7e4bfd2ed15cb4114b..e65437ac721fbdf8ce5390551de36dfb08f78abd 100644 (file)
@@ -26,7 +26,7 @@
 #include "main/snort.h"
 #include "protocols/packet.h"
 #include "stream/stream.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "flow/flow_control.h"
 
 #include "tcp_module.h"
index 0502d641db63df2f2413766fac02bb063a6a5808..92b430a1a8a5ec2862366d8c834b592dca4d258b 100644 (file)
@@ -91,7 +91,7 @@
 #include "flow/flow_control.h"
 #include "flow/session.h"
 #include "flow/memcap.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "file_api/file_api.h"
 #include "sfip/sf_ip.h"
 #include "filters/sfrf.h"
index 18a1ee7d403eb94218fb5caea77e787fbdab6fdb..cce10d5125b3f40f0525638cd6d218825fa0b338 100644 (file)
@@ -39,7 +39,7 @@
 #include "flow/session.h"
 #include "packet_io/active.h"
 #include "perf_monitor/perf.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "sfip/sf_ip.h"
 
 // NOTE:  sender is assumed to be client
index c10ba0273d3d6f1acea5121ee9ad675e202953bd..0b984e7a5e61fa50a87d2a7e03d9b0a977fc9d09 100644 (file)
@@ -32,7 +32,7 @@
 #include "perf_monitor/perf.h"
 #include "flow/flow_control.h"
 #include "sfip/sf_ip.h"
-#include "time/profiler.h"
+#include "profiler/profiler.h"
 #include "main/snort.h"
 
 THREAD_LOCAL ProfileStats user_perf_stats;
index 45bc1d5b5cacea4e46501644f84458ce98333b01..ee7b71cfabdda3342d67c79d783c249c485e2737 100644 (file)
@@ -1,12 +1,3 @@
-if ( ENABLE_PERFPROFILING )
-    set ( PROFILER_SOURCES profiler.cc )
-endif ( ENABLE_PERFPROFILING )
-set ( PROFILER_INCLUDES profiler.h )
-
-# FIXIT-L Should this be conditionally compiled as well?
-set ( PPM_SOURCES ppm.cc ppm_module.cc ppm_module.h )
-set ( PPM_INCLUDES ppm.h )
-
 set ( TIME_INTERNAL_SOURCES
     packet_time.cc
     packet_time.h
@@ -16,14 +7,10 @@ set ( TIME_INTERNAL_SOURCES
     )
 
 set ( TIME_INCLUDES
-    ${PROFILER_INCLUDES}
-    ${PPM_INCLUDES}
     cpuclock.h
     )
 
 add_library ( time STATIC
-    ${PROFILER_SOURCES}
-    ${PPM_SOURCES}
     ${TIME_INTERNAL_SOURCES}
     ${TIME_INCLUDES}
     )
index 27c7aedb2748d7a9395aa974769a7ef7de62a676..84f17f391d0104299d2fd857025e75202fa9de73 100644 (file)
@@ -1,23 +1,13 @@
-
 noinst_LIBRARIES = libtime.a
 
 x_includedir = $(pkgincludedir)/time
 
 x_include_HEADERS = \
-cpuclock.h \
-profiler.h \
-ppm.h
+cpuclock.h
 
 libtime_a_SOURCES = \
 packet_time.cc \
 packet_time.h \
-ppm.cc \
-ppm_module.cc \
-ppm_module.h \
 periodic.cc \
 periodic.h \
 timersub.h
-
-if PERF_PROFILING
-libtime_a_SOURCES += profiler.cc
-endif
index 05e69f6f44f9a4fc347f8457bdb298804a0916a7..cbc82a31f7aa3ce613f2533bc107a65b2b31d81c 100644 (file)
@@ -35,8 +35,8 @@
 #include "protocols/packet_manager.h"
 #include "detection/fp_create.h"
 #include "filters/sfthreshold.h"
-#include "time/ppm.h"
-#include "time/profiler.h"
+#include "ppm/ppm.h"
+#include "profiler/profiler.h"
 #include "time/timersub.h"
 #include "file_api/file_stats.h"
 
index 1d1e9d270221090129067ca703203aef15851693..be54880029c299545633690ad96304a13ebe1a45 100644 (file)
@@ -65,7 +65,7 @@
 #include "packet_io/sfdaq.h"
 #include "packet_io/active.h"
 #include "ips_options/ips_pcre.h"
-#include "time/ppm.h"
+#include "ppm/ppm.h"
 #include "time/packet_time.h"
 #include "time/timersub.h"
 #include "stream/stream.h"