Changeset 0e0825b in rtems-testing


Ignore:
Timestamp:
May 21, 2010, 2:54:29 PM (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 8895273c193787f84c4585a10f6d6aceb3b25dc4
Children:
2cfb1d3
Parents:
88f41f7
Message:

2010-05-21 Joel Sherrill <joel.sherrilL@…>

  • do_coverage, rtems_items.sed: Add report on size of unreferenced symbols and a report on the size of all uncovered or unreferenced ranges.
Location:
rtems-coverage
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • rtems-coverage/ChangeLog

    r88f41f7 r0e0825b  
     12010-05-21      Joel Sherrill <joel.sherrilL@OARcorp.com>
     2
     3        * do_coverage, rtems_items.sed: Add report on size of unreferenced
     4        symbols and a report on the size of all uncovered or unreferenced
     5        ranges.
     6
    172010-05-19      Joel Sherrill <joel.sherrilL@OARcorp.com>
    28
  • rtems-coverage/do_coverage

    r88f41f7 r0e0825b  
    386386    >${results_dir}/index.html
    387387
     388  RTEMSLIB=${BASEDIR}/b-${BSP}/${TARGET}/${BSP}/lib/librtemscpu.a
     389
     390  if [ -r ${RTEMSLIB} ] ; then
     391    while read symbol
     392    do
     393      line=`${TARGET}-nm --format=sysv \
     394        ${BASEDIR}/b-${BSP}/${TARGET}/${BSP}/lib/librtemscpu.a | \
     395        grep FUNC | sed -e's/|/ | /g' | grep ${symbol}`
     396      size=`echo ${line} | cut -d'|' -f5 | tr "[:lower:]" "[:upper:]"`
     397      size=`echo 16 i ${size} p | dc`
     398      echo "${size}     ${symbol}       unknown"
     399    done <${results_dir}/no_range_uncovered.txt | sort -n -r \
     400         >${results_dir}/sizes_unreferenced.txt
     401  fi
     402
     403  cat ${results_dir}/sizes_unreferenced.txt ${results_dir}/sizes.txt | \
     404    sort -n -r >${results_dir}/sizes_all.txt
     405
    388406  # Now create the archive of information
    389407  cp ${COVBASE}/covoar.css ${COVBASE}/*gif ${COVBASE}/table.js ${results_dir}
  • rtems-coverage/rtems_items.sed

    r88f41f7 r0e0825b  
    77  <li>Tests With Possible Issues \
    88    (<a href="testsWithNoEndOfTest.txt">text<\/a>)<\/li>\
     9  <li>Size of Unreferenced Symbols \
     10    (<a href="sizes_unreferenced.txt">text<\/a>)<\/li>\
     11  <li>Sizes of All Ranges and Unreferenced Symbols \
     12    (<a href="sizes_all.txt">text<\/a>)<\/li>\
    913<\/ul>/g
Note: See TracChangeset for help on using the changeset viewer.