Ignore:
Timestamp:
01/09/15 09:22:03 (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:
bdc8b36
Parents:
0a1d2d0
Message:

Fix received counter always displaying 0 rather than unknown.
Fix saving counters for the single threaded fast path.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/trace_parallel.c

    rd7fd648 r1919caf  
    18291829        }
    18301830
    1831         if (trace_supports_parallel(libtrace) && !trace_has_dedicated_hasher(libtrace)) {
    1832                 uint64_t tmp_stats;
    1833                 libtrace->dropped_packets = trace_get_dropped_packets(libtrace);
    1834                 libtrace->received_packets = trace_get_received_packets(libtrace);
    1835                 if (libtrace->format->get_filtered_packets) {
    1836                         if ((tmp_stats = libtrace->format->get_filtered_packets(libtrace)) != UINT64_MAX) {
    1837                                 libtrace->filtered_packets += tmp_stats;
    1838                         }
    1839                 }
     1831        /* Cache values before we pause */
     1832        libtrace->dropped_packets = trace_get_dropped_packets(libtrace);
     1833        libtrace->received_packets = trace_get_received_packets(libtrace);
     1834        uint64_t tmp_stats;
     1835        if (libtrace->format->get_filtered_packets) {
     1836                if ((tmp_stats = libtrace->format->get_filtered_packets(libtrace)) != UINT64_MAX) {
     1837                        libtrace->filtered_packets += tmp_stats;
     1838                }
     1839        }
     1840        if (trace_supports_parallel(libtrace) && !trace_has_dedicated_hasher(libtrace) && libtrace->perpkt_thread_count > 1) {
    18401841                libtrace->started = false;
    18411842                if (libtrace->format->ppause_input)
Note: See TracChangeset for help on using the changeset viewer.