Changeset 526d9d0 for lib/libtrace_int.h


Ignore:
Timestamp:
02/24/15 17:18:21 (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:
116f970
Parents:
10c47a0
Message:

Move the accepted packet count to dispatching packets for threads.
Accounting for the doubled count when using a single threaded format.

Rework statistics logic slightly to remove duplicated code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/libtrace_int.h

    r10c47a0 r526d9d0  
    836836        uint64_t (*get_dropped_packets)(libtrace_t *trace);
    837837
    838         /** Returns statistics about a trace. Flags are all set to 0 when
    839          * invoked.
     838        /** Returns statistics about a trace.
    840839         *
    841840         * @param trace The libtrace object
    842          * @param stat A zeroed structure ready to be filled.
     841         * @param stat [in,out] A statistics structure ready to be filled
     842         *
     843         * The filtered and accepted statistics will be set to the values
     844         * stored in the library. All other statistics are not set.
     845         *
     846         * @note If filtering of packets is performed by a trace and the number
     847         * of filtered packets is unknown this should be marked as invalid by
     848         * the format.
    843849         */
    844850        void (*get_statistics)(libtrace_t *trace, libtrace_stat_t *stat);
     
    955961        void (*punregister_thread)(libtrace_t *libtrace, libtrace_thread_t *t);
    956962
    957         /**
    958          * Return statistics for a single thread.
     963        /** Returns statistics for a single thread.
     964         *
     965         * @param trace The libtrace object
     966         * @param t The thread to return statistics for
     967         * @param stat [in,out] A statistics structure ready to be filled
     968         *
     969         * The filtered and accepted statistics will be set to the values
     970         * stored in the library. All other statistics are not set.
     971         *
     972         * @note If filtering of packets is performed by a trace and the number
     973         * of filtered packets is unknown this should be marked as invalid by
     974         * the format.
    959975         */
    960976        void (*get_thread_statistics)(libtrace_t *libtrace,
Note: See TracChangeset for help on using the changeset viewer.