Changeset 9c4b5e3 for tools


Ignore:
Timestamp:
03/20/06 18:29:00 (16 years ago)
Author:
Perry Lorier <perry@…>
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:
c219603
Parents:
25efeac
Message:

Added support for nonblocking events for format_rt

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/tracertstats/tracertstats.c

    r3d4fb8f r9c4b5e3  
    5454#include "libtrace.h"
    5555#include "output.h"
     56#include "rt_protocol.h"
     57#include "dagformat.h"
    5658
    5759struct libtrace_t *trace;
     
    128130        for (;;) {
    129131                int psize;
     132                dag_record_t *erf_hdr;
    130133                if ((psize = trace_read_packet(trace, packet)) <1) {
    131134                        break;
    132135                }
     136                erf_hdr = (dag_record_t *)packet->header;
     137               
     138                if (trace_get_link(packet) == NULL) {
     139                        continue;
     140                }
     141               
    133142                ts = trace_get_seconds(packet);
    134 
    135143                for(i=0;i<filter_count;++i) {
    136144                        if(trace_bpf_filter(filters[i].filter,packet)) {
Note: See TracChangeset for help on using the changeset viewer.