Ignore:
Timestamp:
08/26/14 23:28:14 (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:
2498008
Parents:
f0e8bd6
Message:

Ensure we've started the output before trying to write to it in traceanon
Remove some uneeded configuration options

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/traceanon/traceanon_parallel.c

    r5b4d121 r50b1bee  
    408408        }
    409409
     410        if (trace_start_output(writer)==-1) {
     411                trace_perror_output(writer,"trace_start_output");
     412                trace_destroy_output(writer);
     413                trace_destroy(trace);
     414                return 1;
     415        }
     416
    410417        // OK parallel changes start here
    411418
     
    417424        int i = 1;
    418425        trace_parallel_config(trace, TRACE_OPTION_ORDERED, &i);
    419         //trace_parallel_config(trace, TRACE_OPTION_SET_PERPKT_BUFFER_SIZE, &i);
    420         i = 6;
    421     trace_parallel_config(trace, TRACE_OPTION_SET_PERPKT_THREAD_COUNT, &i);
    422426        trace_parallel_config(trace, TRACE_OPTION_SET_CONFIG, &uc);
    423         trace_set_hasher(trace, HASHER_CUSTOM, bad_hash, NULL);
     427        //trace_set_hasher(trace, HASHER_CUSTOM, rand_hash, NULL);
    424428       
    425429        if (trace_pstart(trace, NULL, &per_packet, &write_out)==-1) {
     
    428432                trace_destroy(trace);
    429433                return 1;
    430         }
    431        
    432         if (trace_start_output(writer)==-1) {
    433                 trace_perror_output(writer,"trace_start_output");
    434                 trace_destroy_output(writer);
    435                 trace_destroy(trace);
    436                 return 1;
    437434        }
    438435
Note: See TracChangeset for help on using the changeset viewer.