Ignore:
Timestamp:
03/23/15 17:52:17 (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:
773d5e2
Parents:
963b13b
Message:

Removes pconfig_input() and replaces trace_config() with trace_set_<option>

  • Removes trace_pconfig completely - only trace_set_hasher is left now in trace_config
  • Rework user configuration so this is no longer modified directly. Now we just apply it directly to a trace.
  • Many minor documentation fixes and additions
File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/test-tracetime-parallel.c

    r6c84681 r6b98325  
    6969static void signal_handler(int signal)
    7070{
    71         int i = 0;
    7271        if (signal == SIGALRM) {
    7372                trace_ppause(trace);
     
    7776
    7877                /* Now fullspeed it */
    79                 trace_parallel_config(trace, TRACE_OPTION_TRACETIME, &i);
     78                trace_set_tracetime(trace, false);
    8079
    8180                /* And restart */
     
    155154int test_tracetime(const char *tracename) {
    156155        int error = 0;
    157         int i;
    158156        struct timeval tv;
    159157        double start, end;
     
    167165
    168166        // Always use 2 threads for simplicity
    169         i = 2;
    170         trace_parallel_config(trace, TRACE_OPTION_SET_PERPKT_THREAD_COUNT, &i);
    171         i = 1;
    172         trace_parallel_config(trace, TRACE_OPTION_TRACETIME, &i);
     167        trace_set_perpkt_threads(trace, 2);
     168        trace_set_tracetime(trace, true);
    173169
    174170        // Start it
Note: See TracChangeset for help on using the changeset viewer.