Changeset 37dc1fb
- Timestamp:
- 10/31/05 17:12:06 (15 years ago)
- Branches:
- 4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
- Children:
- 5c095c8
- Parents:
- 144fc8d
- Files:
-
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
configure.in
r144fc8d r37dc1fb 128 128 AC_PROG_GCC_TRADITIONAL 129 129 AC_CHECK_FUNCS(socket strdup) 130 131 ## configure time option for __attribute__((pure))132 #test_pure=true133 #AC_ARG_WITH(pure,134 # AC_HELP_STRING([--with-pure],135 # [use __attribute__((pure)) for optimisation]),136 #[137 # if test "$withval" = no -o "$withval" = false138 # then139 # test_pure=false140 # else141 # test_pure=true142 # fi143 #],[144 # test_pure=true145 #])146 #147 #libtrace_pure=false148 #if test "$test_pure" = true; then149 # AC_MSG_CHECKING([if compiler supports __attribute__((pure))])150 # OLDCFLAGS="$CFLAGS"151 # CFLAGS="$CFLAGS -Werror"152 #153 # AC_COMPILE_IFELSE([AC_LANG_PROGRAM(154 # [[155 ##define SIMPLE_FUNCTION __attribute__((pure))156 #SIMPLE_FUNCTION157 #void foo() {158 #}159 # ]])],160 # [AC_DEFINE(HAVE_ATTR_PURE,1,[define to test for __attribute__((pure)) support]) libtrace_pure=true],161 # [AC_DEFINE(HAVE_ATTR_PURE,0,[define to test for __attribute__((pure)) support]) libtrace_pure=false])162 #163 # AC_MSG_RESULT($libtrace_pure)164 # CFLAGS="$OLDCFLAGS"165 #166 # if test "$libtrace_pure" = true; then167 # perl -pi -e 's/#define HAVE_ATTR_PURE.*/#define HAVE_ATTR_PURE 1/' lib/libtrace.h168 # else169 # perl -pi -e 's/#define HAVE_ATTR_PURE.*/#define HAVE_ATTR_PURE 0/' lib/libtrace.h170 # fi171 #172 #fi173 130 174 131 # configure time options for man pages … … 340 297 reportopt "Compiled with PCAP support" $libtrace_pcap 341 298 reportopt "Compiled with compressed trace (zlib) support" $libtrace_zlib 342 reportopt "Compiled with __attribute__((pure))" $libtrace_pure343 299 reportopt "Compiled with DAG support (libdag)" $libtrace_dag 344 300 reportopt "Compiled with DAG support (DAG 2.4)" $libtrace_dag2_4 -
tools/tracedump/tracedump.cc
rfd9d44c r37dc1fb 67 67 while(trace_read_packet(trace,&packet)> 0 ){ 68 68 time_t sec = (time_t)trace_get_seconds(&packet); 69 char *link=(char *)trace_get_link(&packet);70 69 if (filter && !trace_bpf_filter(filter,&packet)) 71 70 continue;
Note: See TracChangeset
for help on using the changeset viewer.