Changeset b54e2da


Ignore:
Timestamp:
03/12/15 15:51:29 (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:
6a6e6a8
Parents:
2330f32
Message:

Fix bug in pausing trace

Packets were incorrectly being sent in tracetime in some cases.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/trace_parallel.c

    r2330f32 rb54e2da  
    376376 * @param packet A pointer to the packet storage, which may be set to null upon
    377377 *               return, or a packet to be finished.
     378 * @param tracetime If true packets are delayed to match with tracetime
    378379 * @return 0 is successful, otherwise if playing back in tracetime
    379380 *         READ_MESSAGE(-2) can be returned in which case the packet is not sent.
     
    414415 * upon return this is updated
    415416 * @param offset [in,out] The offset into the array, upon return this is updated
     417 * @param tracetime If true packets are delayed to match with tracetime
    416418 * @return 0 is successful, otherwise if playing back in tracetime
    417419 *         READ_MESSAGE(-2) can be returned in which case the packet is not sent.
     
    484486                                        store_first_packet(trace, packet, t);
    485487                                }
    486                                 ASSERT_RET(dispatch_packet(trace, t, &packet, 1), == 0);
     488                                ASSERT_RET(dispatch_packet(trace, t, &packet, false), == 0);
    487489                                if (packet == NULL)
    488490                                        libtrace_ocache_alloc(&trace->packet_freelist, (void **) &packet, 1, 1);
Note: See TracChangeset for help on using the changeset viewer.