Changeset 76291d1 for lib/trace.c


Ignore:
Timestamp:
03/31/15 16:02:53 (6 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:
4007dbb
Parents:
58bfabf
Message:

Add a quick mockup of shanes interface using functions for each message

I.e. set a function for MESSAGE_PACKET etc. which only receives packets.

Ported tracestats_parallel to use this interface.

Note it is not yet complete, however should give a feel of how it will work.
And provide a good work around to the thread issues on older machines.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/trace.c

    r8370482 r76291d1  
    287287        ZERO_USER_CONFIG(libtrace->config);
    288288        memset(&libtrace->combiner, 0, sizeof(libtrace->combiner));
     289        memset(&libtrace->callbacks, 0, sizeof(libtrace->callbacks));
    289290
    290291        /* Parse the URI to determine what sort of trace we are dealing with */
     
    405406        ZERO_USER_CONFIG(libtrace->config);
    406407        memset(&libtrace->combiner, 0, sizeof(libtrace->combiner));
     408        memset(&libtrace->callbacks, 0, sizeof(libtrace->callbacks));
    407409       
    408410        for(tmp=formats_list;tmp;tmp=tmp->next) {
Note: See TracChangeset for help on using the changeset viewer.