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

    r773a2a3 rf2066fa  
    661661                        linuxcommon_close_input_stream(libtrace, stream);
    662662                }
    663                 libtrace_list_deinit(FORMAT_DATA->per_stream);
    664                 free(libtrace->format_data);
    665                 libtrace->format_data = NULL;
    666663                return -1;
    667664        }
Note: See TracChangeset for help on using the changeset viewer.