Changeset 8c62b8d in rtems-testing


Ignore:
Timestamp:
Apr 23, 2010, 8:38:20 PM (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 8895273c193787f84c4585a10f6d6aceb3b25dc4
Children:
93eecc2
Parents:
04afd22
Message:

2010-04-23 Joel Sherrill <joel.sherrill@…>

  • covoar.cc, do_coverage: Add -s argument for symbols of interest file.
Location:
rtems-coverage
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • rtems-coverage/ChangeLog

    r04afd22 r8c62b8d  
     12010-04-23      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * covoar.cc, do_coverage: Add -s argument for symbols of interest file.
     4
    152010-04-23      Joel Sherrill <joel.sherrill@oarcorp.com>
    26
  • rtems-coverage/covoar.cc

    r04afd22 r8c62b8d  
    4444bool                                 singleExecutable = false;
    4545const char*                          sizeReportFile = "sizes.txt";
    46 const char*                          symbolsFile = "rtems.syms";
     46const char*                          symbolsFile = NULL;
    4747char*                                target = NULL;
    4848
     
    6464           "(RTEMS, QEMU, TSIM or Skyeye)\n"
    6565    "  -E EXPLANATIONS           - name of file with explanations\n"
     66    "  -s SYMBOLS_FILE           - name of file with symbols of interest\n"
    6667    "  -1 EXECUTABLE             - name of executable to get symbols from\n"
    6768    "  -e EXE_EXTENSION          - extension of the executables to analyze\n"
     
    9495  progname = argv[0];
    9596
    96   while ((opt = getopt(argc, argv, "1:e:c:E:f:T:v")) != -1) {
     97  while ((opt = getopt(argc, argv, "1:e:c:E:f:s:T:v")) != -1) {
    9798    switch (opt) {
    9899      case '1':
     
    110111         break;
    111112      case 'E': explanations          = optarg;  break;
     113      case 's': symbolsFile           = optarg;  break;
    112114      case 'T': target                = optarg;  break;
    113115      case 'v': Verbose               = true;    break;
     
    195197  if (!format) {
    196198    fprintf( stderr, "ERROR: coverage format report not specified\n" );
     199    usage();
     200    exit(-1);
     201  }
     202
     203  // Validate that we have a symbols of interest file.
     204  if (!symbolsFile) {
     205    fprintf( stderr, "ERROR: symbols of interest file not specified\n" );
    197206    usage();
    198207    exit(-1);
  • rtems-coverage/do_coverage

    r04afd22 r8c62b8d  
    335335    -T ${TARGET} \
    336336    -f ${COVERAGE_FORMAT} \
     337    -s rtems.syms \
    337338    -E ${COVBASE}/Explanations.txt \
    338339    -e exe -c ${RTEMSEXT}.${COVEXT} \
Note: See TracChangeset for help on using the changeset viewer.