Changeset 2a95fde in rtems-testing


Ignore:
Timestamp:
Apr 23, 2010, 6:57:18 PM (9 years ago)
Author:
Jennifer Averett <Jennifer.Averett@…>
Branches:
4.11, 8895273c193787f84c4585a10f6d6aceb3b25dc4
Children:
af9c097
Parents:
3703147
Message:

2010-04-23 Jennifer Averett <Jennifer.Averett@…

Location:
rtems-coverage
Files:
4 added
6 edited

Legend:

Unmodified
Added
Removed
  • rtems-coverage/ChangeLog

    r3703147 r2a95fde  
     12010-04-23      Jennifer Averett <Jennifer.Averett@OARcorp.com
     2
     3        * Makefile, TraceConverter.cc, TraceList.cc, TraceList.h,
     4        TraceReaderLogQEMU.cc: Finished TraceConverter added TraceWriter
     5        functionality.
     6        * TraceWriterBase.cc, TraceWriterBase.h, TraceWriterQEMU.cc,
     7        TraceWriterQEMU.h: New files.
     8
    192010-04-23      Joel Sherrill <joel.sherrill@oarcorp.com>
    210
  • rtems-coverage/Makefile

    r3703147 r2a95fde  
    4242  TraceList.o \
    4343  TraceReaderBase.o \
    44   TraceReaderLogQEMU.o
     44  TraceReaderLogQEMU.o \
     45  TraceWriterBase.o \
     46  TraceWriterQEMU.o
    4547
    4648COVOAR_OBJS = \
     
    127129TraceReaderBase.o: TraceReaderBase.cc TraceReaderBase.h TraceList.h
    128130TraceReaderLogQEMU.o: TraceReaderLogQEMU.cc TraceReaderLogQEMU.h TraceReaderBase.h TraceList.h
     131TraceWriterBase.o: TraceWriterBase.cc TraceWriterBase.h
     132TraceWriterQEMU.o: TraceWriterQEMU.cc TraceWriterQEMU.h TraceWriterBase.h TraceReaderLogQEMU.h TraceList.h
    129133
    130134clean:
  • rtems-coverage/TraceConverter.cc

    r3703147 r2a95fde  
    1818
    1919#include "TraceReaderLogQEMU.h"
     20#include "TraceWriterQEMU.h"
    2021#include "TraceList.h"
    2122#include "ObjdumpProcessor.h"
     
    2930  fprintf(
    3031    stderr,
    31     "Usage: %s [-v] -c CPU -e executable [-E logfile]\n",
     32    "Usage: %s [-v] -c CPU -e executable -t tracefile [-E logfile]\n",
    3233    progname
    3334  );
     
    4243  int                          opt;
    4344  Trace::TraceReaderLogQEMU    log;
    44   const char                  *cpuname = NULL;
     45  Trace::TraceWriterQEMU       trace;
     46  const char                  *cpuname    = NULL;
    4547  const char                  *executable = NULL;
    46   const char                  *tracefile = NULL;
     48  const char                  *tracefile  = NULL;
    4749  const char                  *logname = "/tmp/qemu.log";
    4850   
     
    5254  progname = argv[0];
    5355
    54   while ((opt = getopt(argc, argv, "c:e:l:v")) != -1) {
     56  while ((opt = getopt(argc, argv, "c:e:l:t:v")) != -1) {
    5557    switch (opt) {
    5658      case 'c': cpuname = optarg;    break;
     
    8890  log.processFile( logname );
    8991
    90   log.Trace.ShowList();
     92  trace.writeFile( tracefile, &log );
     93
    9194}
  • rtems-coverage/TraceList.cc

    r3703147 r2a95fde  
    3131    }
    3232
     33    void TraceList::ShowTrace( traceRange_t *t)
     34    {
     35      printf(
     36        "Start 0x%x, length 0x%03x Reason %d\n",
     37        t->lowAddress,
     38        t->length,
     39        t->exitReason
     40      );
     41    }
     42
    3343    void  TraceList::ShowList()
    3444    {
    3545      ranges_t::iterator   ritr;
     46      traceRange_t         t;
    3647
    3748      for ( ritr=set.begin(); ritr != set.end(); ritr++ ) {
    38         printf(
    39           "Start 0x%x, length 0x%03x Reason %d\n",
    40           ritr->lowAddress,
    41           ritr->length,
    42           ritr->exitReason
    43         );
     49        t = *ritr;
     50        ShowTrace( &t );
    4451      }
    4552    }
  • rtems-coverage/TraceList.h

    r3703147 r2a95fde  
    7272
    7373    /*!
     74     *  This method displays the trace information in the variable t.
     75     */
     76    void ShowTrace( traceRange_t *t);
     77
     78
     79    /*!
    7480     *  This method iterates through set displaying the data on the screen.
    7581     */
  • rtems-coverage/TraceReaderLogQEMU.cc

    r3703147 r2a95fde  
    139139        if (! ReadUntilFound( logFile, QEMU_LOG_IN_KEY )) {
    140140          done = true;
    141         }
    142         if (
     141          nextExecuted = last;
     142        }else if (
    143143          fscanf(
    144144            logFile,
Note: See TracChangeset for help on using the changeset viewer.