Changeset 5e26f1d


Ignore:
Timestamp:
03/12/10 13:48:43 (11 years ago)
Author:
Perry Lorier <perry@…>
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:
b4fd5bc
Parents:
aa0c5c5
Message:

Add support for lzo write compression

Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • configure.in

    r441f34d r5e26f1d  
    272272AC_CHECK_LIB(z, deflate)
    273273AC_CHECK_LIB(bz2, BZ2_bzDecompressInit)
     274AC_CHECK_LIB(lzo2, lzo1x_1_compress)
    274275AC_CHECK_LIB(pthread, pthread_create)
    275276AC_SEARCH_LIBS(mvprintw, ncurses, [], [ AC_MSG_ERROR([NCurses library not available]) ])
     
    282283AM_CONDITIONAL([HAVE_ZLIB], [test "$ac_cv_lib_z_deflate" = yes])
    283284AM_CONDITIONAL([HAVE_BZLIB], [test "$ac_cv_lib_bz2_BZ2_bzDecompressInit" = yes])
     285AM_CONDITIONAL([HAVE_LZO], [test "$ac_cv_lib_lzo2_lzo1x_1_compress" = yes])
    284286AM_CONDITIONAL([HAVE_NETPACKET_PACKET_H], [test "$libtrace_netpacket_packet_h" = true])
    285287AM_CONDITIONAL([HAVE_LIBGDC], [test "$ac_cv_header_gdc_h" = yes])
     
    318320reportopt "Compiled with compressed trace (zlib) support" $ac_cv_lib_z_deflate
    319321reportopt "Compiled with compressed trace (bz2) support" $ac_cv_lib_bz2_BZ2_bzDecompressInit
     322reportopt "Compiled with compressed trace (lzo write only) support" $ac_cv_lib_lzo2_lzo1x_1_compress
    320323if test x"$libtrace_dag" = xtrue; then
    321324        if test "$libtrace_dag_version" = 24; then
  • lib/Makefile.am

    rc66068d r5e26f1d  
    2727endif
    2828
     29if HAVE_LZO
     30LIBTRACEIO_LZO=iow-lzo.c
     31else
     32LIBTRACEIO_LZO=
     33endif
     34
    2935if HAVE_DAG
    3036if DAG2_4
     
    4854                protocols_transport.c protocols.h \
    4955                $(DAGSOURCE) format_erf.h \
    50                 $(LIBTRACEIO_ZLIB) $(LIBTRACEIO_BZLIB) ior-peek.c ior-stdio.c ior-thread.c \
     56                $(LIBTRACEIO_ZLIB) $(LIBTRACEIO_BZLIB) $(LIBTRACEIO_LZO) \
     57                ior-peek.c ior-stdio.c ior-thread.c \
    5158                iow-stdio.c iow-thread.c wandio.c \
    5259                wandio.h
  • lib/wandio.h

    r29d4438 r5e26f1d  
    162162        /** Bzip compression */
    163163        WANDIO_COMPRESS_BZ2     = 2,
     164        /** LZO compression */
     165        WANDIO_COMPRESS_LZO     = 3,
    164166        /** All supported methods - used as a bitmask */
    165167        WANDIO_COMPRESS_MASK    = 7
     
    182184iow_t *zlib_wopen(iow_t *child, int compress_level);
    183185iow_t *bz_wopen(iow_t *child, int compress_level);
     186iow_t *lzo_wopen(iow_t *child, int compress_level);
    184187iow_t *thread_wopen(iow_t *child);
    185188iow_t *stdio_wopen(const char *filename);
Note: See TracChangeset for help on using the changeset viewer.