Changeset 678048a for lib/trace.c


Ignore:
Timestamp:
10/26/04 15:31:03 (17 years ago)
Author:
Daniel Lawson <dlawson@…>
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:
aa27e1e
Parents:
a22c979
Message:

much improved DAG read support. Benchmarked at 770kpps / ~380 MBps (64byte packets)

added 'capture' program for simple diskwriting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/trace.c

    ra22c979 r678048a  
    551551        assert(libtrace);
    552552        assert(packet);
    553         if(packet->buffer == 0) {
    554                 packet->buffer = malloc(LIBTRACE_PACKET_BUFSIZE);
    555         }
     553        //if(packet->buffer == 0) {
     554        //      packet->buffer = malloc(LIBTRACE_PACKET_BUFSIZE);
     555        //}
    556556
    557557        //bzero(buffer,len);
     
    617617                        assert( (size - sizeof(dag_record_t)) < LIBTRACE_PACKET_BUFSIZE);
    618618
    619                         packet->buffer = (void *)erfptr;
     619                        memcpy(packet->buffer, erfptr, size);
     620                        //packet->buffer = (void *)erfptr;
    620621                        packet->size = size;
    621622                        libtrace->dag.offset += size;
Note: See TracChangeset for help on using the changeset viewer.