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_ring.c

    r9d89626 rf2066fa  
    280280{
    281281        int ret = linuxring_start_input_stream(libtrace, FORMAT_DATA_FIRST);
    282         if (ret != 0) {
    283                 libtrace_list_deinit(FORMAT_DATA->per_stream);
    284                 free(libtrace->format_data);
    285                 libtrace->format_data = NULL;
    286         }
    287282        return ret;
    288283}
Note: See TracChangeset for help on using the changeset viewer.