File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ TC_DEBUG=NO
29
29
TC_PF_RING_DIR=NONE
30
30
TC_DETECT_MEMORY=NO
31
31
TC_PCAP_NEEDED=NO
32
+ TC_TCMALLOC=NO
32
33
33
34
TC_CC_OPT=
34
35
TC_LD_OPT=
76
77
--udp) TC_UDP=YES ;;
77
78
78
79
--with-debug) TC_DEBUG=YES ;;
80
+ --with-tcmalloc) TC_TCMALLOC=YES ;;
79
81
--with-pfring=*) TC_PF_RING_DIR="$value" ;;
80
82
--with-detect-memory) TC_DETECT_MEMORY=YES ;;
81
83
@@ -111,6 +113,7 @@ cat << END
111
113
--with-ld-opt=OPTIONS set additional linker options
112
114
--with-pfring=PATH set path to PF_RING library sources
113
115
--with-debug enable debug logging
116
+ --with-tcmalloc use tcmalloc instead of malloc
114
117
115
118
--offline run tcpcopy at offline mode
116
119
--single run tcpcopy at non-distributed mode
Original file line number Diff line number Diff line change @@ -82,6 +82,10 @@ if [ $TC_PCAP_NEEDED = YES ]; then
82
82
fi
83
83
fi
84
84
85
+ if [ $TC_TCMALLOC = YES ]; then
86
+ CORE_LIBS=" $CORE_LIBS -ltcmalloc"
87
+ fi
88
+
85
89
if [ $TC_MILLION_SUPPORT = YES ]; then
86
90
have=TC_MILLION_SUPPORT . auto/have
87
91
fi
You can’t perform that action at this time.
0 commit comments