Ignore:
Timestamp:
03/12/15 17:14:42 (7 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
  • test/test-format-parallel.c

    r6a082f8 r6a6e6a8  
    106106        switch (mesg) {
    107107        case MESSAGE_RESULT:
    108                 assert(libtrace_result_get_key(data.res) == 0);
    109                 printf("%d,", libtrace_result_get_value(data.res).sint);
     108                assert(data.res->key == 0);
     109                printf("%d,", data.res->value.sint);
    110110                totalthreads++;
    111                 totalpkts += libtrace_result_get_value(data.res).sint;
     111                totalpkts += data.res->value.sint;
    112112                break;
    113113        case MESSAGE_STARTING:
     
    173173
    174174                // All threads publish to verify the thread count
    175                 trace_publish_result(trace, t, (uint64_t) 0, (libtrace_generic_t){.sint = count}, RESULT_NORMAL);
     175                trace_publish_result(trace, t, (uint64_t) 0, (libtrace_generic_t){.sint = count}, RESULT_USER);
    176176                trace_post_reporter(trace);
    177177                break;
    178         case MESSAGE_TICK:
     178        case MESSAGE_TICK_INTERVAL:
     179        case MESSAGE_TICK_COUNT:
    179180                assert(seen_start_message);
    180181                fprintf(stderr, "Not expecting a tick packet\n");
Note: See TracChangeset for help on using the changeset viewer.