Changeset 6a6e6a8 for tools/tracestats


Ignore:
Timestamp:
03/12/15 17:14:42 (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:
a978dec
Parents:
b54e2da
Message:

More documentation, including some renaming and modifications to behaviour

  • Removes accessor functions for libtrace_result_t, instead directly access the structure
  • Documentation for most functions
  • Split tick into interval and count messages for the two modes of operation
  • Normalise interval and packet order to use the erf timestamp format
  • Rename trace_send_message_to_XXX to trace trace_message_XXX
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/tracestats/tracestats_parallel.c

    r6a082f8 r6a6e6a8  
    139139                trace_print_statistics(stats, stderr, NULL);
    140140                free(stats);
    141                 trace_publish_result(trace, t, 0, (libtrace_generic_t){.ptr = results}, RESULT_NORMAL); // Only ever using a single key 0
     141                trace_publish_result(trace, t, 0, (libtrace_generic_t){.ptr = results}, RESULT_USER); // Only ever using a single key 0
    142142                //fprintf(stderr, "tracestats_parallel:\t Stopping thread - publishing results\n");
    143143                break;
     
    168168        case MESSAGE_RESULT:
    169169                /* Get the results from each core and sum 'em up */
    170                 assert(libtrace_result_get_key(data.res) == 0);
    171                 statistics_t * res = libtrace_result_get_value(data.res).ptr;
     170                assert(data.res->key == 0);
     171                statistics_t * res = data.res->value.ptr;
    172172                count += res[0].count;
    173173                bytes += res[0].bytes;
Note: See TracChangeset for help on using the changeset viewer.