Ignore:
Timestamp:
08/25/15 17:40:12 (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:
2fa43fa
Parents:
03aca91
Message:

Fix #5 make trace_pstart fallback to the single threaded format

If starting a parallel format fails we now retry as a single threaded format.
This fixes ring/int on older (pre 3.1 kernels) machines without PACKET_FANOUT.
This behaviour can be detected using trace_is_parallel()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_linux_int.c

    re99c493 rf2066fa  
    6969{
    7070        int ret = linuxcommon_start_input_stream(libtrace, FORMAT_DATA_FIRST);
    71         if (ret != 0) {
    72                 libtrace_list_deinit(FORMAT_DATA->per_stream);
    73                 free(libtrace->format_data);
    74                 libtrace->format_data = NULL;
    75         }
    7671        return ret;
    7772}
Note: See TracChangeset for help on using the changeset viewer.