Changeset 50ce607 for lib/libtrace.h.in


Ignore:
Timestamp:
07/18/14 14:20:32 (7 years ago)
Author:
Richard Sanger <rsangerarj@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, 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:
b4b6b75
Parents:
8af0d01
Message:

Adds per thread storage to for the format to use against libtrace_threads.
Passes threads as arguments to reads to save overhead of looking these up.
Various changes to the DPDK system including registering a thread to allow our threads to be start with different DPDK thread numbers for thread local memory caches.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/libtrace.h.in

    r9594cf9 r50ce607  
    194194#  define PRINTF(formatpos, argpos)
    195195#endif
     196
     197// Used to fight against false sharing
     198#define CACHE_LINE_SIZE 64
     199#define ALIGN_STRUCT(x) __attribute__((aligned(x)))
    196200
    197201#ifdef _MSC_VER
     
    31633167
    31643168DLLEXPORT int trace_pstart(libtrace_t *libtrace, void* global_blob, fn_per_pkt per_pkt, fn_reducer reducer);
    3165 DLLEXPORT int trace_pread_packet(libtrace_t *libtrace, libtrace_packet_t **packet);
     3169DLLEXPORT int trace_pread_packet(libtrace_t *libtrace, libtrace_thread_t *t, libtrace_packet_t **packet);
    31663170DLLEXPORT int trace_ppause(libtrace_t *libtrace);
    31673171DLLEXPORT int trace_pstop(libtrace_t *libtrace);
Note: See TracChangeset for help on using the changeset viewer.