Changeset 2fbcb26


Ignore:
Timestamp:
03/22/07 15:29:17 (15 years ago)
Author:
Shane Alcock <salcock@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, 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:
344da9f
Parents:
b778083
Message:

tracedump now ignores packets that are not actual data packets, particularly RT meta-data packets.
Corrected the calculation of get_capture_length for RT meta-data packets.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • lib/format_rt.c

    rb778083 r2fbcb26  
    633633                        /* This is a little trickier to work out */
    634634                        rt_md_hdr = (rt_metadata_t *)packet->buffer;
    635                         return rt_md_hdr->label_len + rt_md_hdr->value_len;
     635                        return rt_md_hdr->label_len + rt_md_hdr->value_len +
     636                                sizeof(rt_metadata_t);
    636637                default:
    637638                        printf("Unknown type: %d\n", packet->type);
  • lib/libtrace.h.in

    rb778083 r2fbcb26  
    276276        TRACE_RT_DUCK_2_5       =14,/**< Dag 2.5 Duck */
    277277        TRACE_RT_LOSTCONN       =15,/**< Lost connection to server */
    278         TRACE_RT_SERVERSTART    =16,/**< Server has been restarted */
     278        TRACE_RT_SERVERSTART    =16,/**< Reliable server has been restarted */
    279279        TRACE_RT_CLIENTDROP     =17,/**< Reliable client was lost */
    280280        TRACE_RT_METADATA       =18,/**< Packet contains server meta-data */
  • tools/tracedump/tracedump.cc

    re2d49d5 r2fbcb26  
    8383                        if (filter && !trace_apply_filter(filter,packet))
    8484                                continue;
    85 
     85                        if (packet->type < TRACE_RT_DATA_SIMPLE)
     86                                /* Ignore RT messages */
     87                                continue;
    8688                        trace_dump_packet(packet);
    8789
Note: See TracChangeset for help on using the changeset viewer.