Changeset 0ec8a7c for test


Ignore:
Timestamp:
02/27/15 17:31:03 (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:
98dc1ba
Parents:
7718e54
Message:

Change the user interface from a message and a packet to only messages.

Now a packet is a type of message (MESSAGE_PACKET).
I expanded the message structure into seperate arguments such that these
will be passed in registers on x64 systems. As such performance has
remained identical if not better.

I renamed libtrace_generic_types_t to libtrace_generic_t so it was shorter.

Location:
test
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • test/test-format-parallel-hasher.c

    r43d3e73 r0ec8a7c  
    165165                        // All threads publish to verify the thread count
    166166                        assert(tls->count == 25 || tls->count == 75);
    167                         trace_publish_result(trace, t, (uint64_t) 0, (libtrace_generic_types_t){.sint=tls->count}, RESULT_NORMAL);
     167                        trace_publish_result(trace, t, (uint64_t) 0, (libtrace_generic_t){.sint=tls->count}, RESULT_NORMAL);
    168168                        trace_post_reporter(trace);
    169169                        free(tls);
  • test/test-format-parallel-reporter.c

    rd994324 r0ec8a7c  
    131131                }
    132132                x = c;
    133                 trace_publish_result(trace, t, trace_packet_get_order(pkt), (libtrace_generic_types_t){.pkt=pkt}, RESULT_PACKET);
     133                trace_publish_result(trace, t, trace_packet_get_order(pkt), (libtrace_generic_t){.pkt=pkt}, RESULT_PACKET);
    134134                return NULL;
    135135        }
     
    160160        if (strcmp(argv[1],"rtclient")==0) expected=101;
    161161
    162         trace_set_combiner(trace, &combiner_ordered, (libtrace_generic_types_t){0});
     162        trace_set_combiner(trace, &combiner_ordered, (libtrace_generic_t){0});
    163163
    164164        trace_pstart(trace, NULL, per_packet, reporter);
  • test/test-format-parallel-singlethreaded-hasher.c

    rd994324 r0ec8a7c  
    163163
    164164                        // All threads publish to verify the thread count
    165                         trace_publish_result(trace, t, (uint64_t) 0, (libtrace_generic_types_t){.sint=tls->count}, RESULT_NORMAL);
     165                        trace_publish_result(trace, t, (uint64_t) 0, (libtrace_generic_t){.sint=tls->count}, RESULT_NORMAL);
    166166                        trace_post_reporter(trace);
    167167                        free(tls);
  • test/test-format-parallel-singlethreaded.c

    rd994324 r0ec8a7c  
    162162
    163163                        // All threads publish to verify the thread count
    164                         trace_publish_result(trace, t, (uint64_t) 0, (libtrace_generic_types_t){.sint=tls->count}, RESULT_NORMAL);
     164                        trace_publish_result(trace, t, (uint64_t) 0, (libtrace_generic_t){.sint=tls->count}, RESULT_NORMAL);
    165165                        trace_post_reporter(trace);
    166166                        free(tls);
  • test/test-format-parallel-stressthreads.c

    rd994324 r0ec8a7c  
    162162
    163163                        // All threads publish to verify the thread count
    164                         trace_publish_result(trace, t, (uint64_t) 0, (libtrace_generic_types_t){.sint=tls->count}, RESULT_NORMAL);
     164                        trace_publish_result(trace, t, (uint64_t) 0, (libtrace_generic_t){.sint=tls->count}, RESULT_NORMAL);
    165165                        trace_post_reporter(trace);
    166166                        free(tls);
  • test/test-format-parallel.c

    rd994324 r0ec8a7c  
    172172
    173173                        // All threads publish to verify the thread count
    174                         trace_publish_result(trace, t, (uint64_t) 0, (libtrace_generic_types_t){.sint = count}, RESULT_NORMAL);
     174                        trace_publish_result(trace, t, (uint64_t) 0, (libtrace_generic_t){.sint = count}, RESULT_NORMAL);
    175175                        trace_post_reporter(trace);
    176176                        break;
Note: See TracChangeset for help on using the changeset viewer.