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-singlethreaded.c

    r6a082f8 r6a6e6a8  
    107107        switch (mesg) {
    108108        case MESSAGE_RESULT:
    109                 assert(libtrace_result_get_key(data.res) == 0);
    110                 printf("%d,", libtrace_result_get_value(data.res).sint);
     109                assert(data.res->key == 0);
     110                printf("%d,", data.res->value.sint);
    111111                totalthreads++;
    112                 totalpkts += libtrace_result_get_value(data.res).sint;
     112                totalpkts += data.res->value.sint;
    113113                break;
    114114        case MESSAGE_STARTING:
     
    163163
    164164                // All threads publish to verify the thread count
    165                 trace_publish_result(trace, t, (uint64_t) 0, (libtrace_generic_t){.sint=tls->count}, RESULT_NORMAL);
     165                trace_publish_result(trace, t, (uint64_t) 0, (libtrace_generic_t){.sint=tls->count}, RESULT_USER);
    166166                trace_post_reporter(trace);
    167167                free(tls);
    168168                break;
    169         case MESSAGE_TICK:
     169        case MESSAGE_TICK_INTERVAL:
     170        case MESSAGE_TICK_COUNT:
    170171                assert(tls->seen_start_message );
    171172                fprintf(stderr, "Not expecting a tick packet\n");
Note: See TracChangeset for help on using the changeset viewer.