Changeset aeb8e90 in rtems-testing for sim-scripts


Ignore:
Timestamp:
Aug 10, 2009, 3:03:10 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 8895273c193787f84c4585a10f6d6aceb3b25dc4
Children:
8ebb308
Parents:
18e240c
Message:

2009-08-10 Joel Sherrill <joel.sherrill@…>

  • Makefile: Fix dependencies on tsim scripts.
  • edb7312.in: Disable instruction limit until tuned. Only do coverage on 1 MB of RAM. Code is smaller than that and it is faster.
  • gdb-sim-run.in: Clean up killing simulator to hopefully avoid zero length coverage files.
  • rtl22xx.in: Attempt to add coverage and shutdown device support.
  • smdk2410.in: Add coverage and shutdown device support.
  • tsim-support: Tune time limits.
Location:
sim-scripts
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • sim-scripts/ChangeLog

    r18e240c raeb8e90  
     12009-08-10      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * Makefile: Fix dependencies on tsim scripts.
     4        * edb7312.in: Disable instruction limit until tuned. Only do coverage
     5        on 1 MB of RAM.  Code is smaller than that and it is faster.
     6        * gdb-sim-run.in: Clean up killing simulator to hopefully avoid
     7        zero length coverage files.
     8        * rtl22xx.in: Attempt to add coverage and shutdown device support.
     9        * smdk2410.in: Add coverage and shutdown device support.
     10        * tsim-support: Tune time limits.
     11
    1122009-08-04      Xi Yang <hiyangxi@gmail.com>
    213
  • sim-scripts/Makefile

    r18e240c raeb8e90  
    6565
    6666### TSIM Simulator BSPs
    67 erc32: gdb-sim-run.in erc32.in
     67erc32: gdb-sim-run.in erc32.in tsim-support
    6868        ./mkrun no SPARC sparc erc32
    6969
    70 leon2: gdb-sim-run.in leon2.in
     70leon2: gdb-sim-run.in leon2.in tsim-support
    7171        ./mkrun no SPARC sparc leon2
    7272
    73 leon3: gdb-sim-run.in leon3.in
     73leon3: gdb-sim-run.in leon3.in tsim-support
    7474        ./mkrun no SPARC sparc leon3
    7575
  • sim-scripts/edb7312.in

    r18e240c raeb8e90  
    2929mem_bank: map=M, type=RW, addr=0x00000000, size=0x1000000
    3030uart: mod=pipe, desc_in=/dev/null, desc_out=/dev/stdout
    31 shutdown_device: addr=0xb0000000, max_ins=0xffffffff
     31shutdown_device: addr=0xb0000000, max_ins=0
    3232EOF
    3333#shutdown_device: addr=0xb0000000, max_ins=${limit}0000000
    3434
    3535if [ ${coverage} = yes ] ; then
     36  # enable 1 MB of RAM to be analyzed.
    3637  echo "code_coverage: state=on, filename=${2}.cov, start=0x00000000, end=0x00100000"
    3738fi
  • sim-scripts/gdb-sim-run.in

    r18e240c raeb8e90  
    153153type ${runBSP}
    154154check_status $? "Path appears to be broken (cannot find ${runBSP})"
     155
     156killpid()
     157{
     158  pid=$1
     159  kill -2 $pid 2> /dev/null
     160  if [ ${coverage} = "yes" ] ; then
     161    sleep 1
     162  else
     163    usleep 1000
     164  fi
     165  kill -9 $pid 2> /dev/null
     166}
    155167
    156168## These are faults any BSP may generate.  They are common to RTEMS.
     
    178190          running=$?
    179191          if [ $running -eq 0 ] ; then
    180             kill -2 ${pid} 2>/dev/null  # SIGINT
    181             sleep 1
    182             kill -9 ${pid} 2>/dev/null
     192            killpid ${pid}
    183193          else
    184194            return 1
     
    261271    if [ $running -eq 0 ] ; then
    262272      if [ ${milliseconds} -ge ${millilimit} ]; then
    263         kill -2 $pid 2> /dev/null
    264         usleep 1000
    265         kill -9 $pid 2> /dev/null
     273        killpid ${pid}
    266274        catLog ${logfile}
    267275        echo "${testname} killed after running ${max_run_time} seconds"
     
    278286      genericExits=$?
    279287      if [ ${bspFaults} -ne 0 -o ${genericExits} -ne 0 ] ; then
    280         kill -2 $pid 2> /dev/null
    281         usleep 1000
    282         kill -9 ${pid} >/dev/null 2>&1
     288        killpid ${pid}
    283289        catLog ${logfile}
    284290        echo Ran in ${milliseconds} milliseconds
     
    293299  fi
    294300  done
    295   kill -9 $pid >/dev/null 2>&1
    296301}
    297302
  • sim-scripts/rtl22xx.in

    r18e240c raeb8e90  
    4545mem_bank: map=I, type=RW, addr=0xE0000000, size=0xFFFFFFF
    4646mem_bank: map=I, type=RW, addr=0xF0000000, size=0xFFFFFFF
     47shutdown_device: addr=0xb0000000, max_ins=0
    4748EOF
     49#shutdown_device: addr=0xb0000000, max_ins=${limit}0000000
    4850if [ ${coverage} = yes ] ; then
    49   echo "code_coverage: state=on, filename=${2}.cov, start=0x81000000, end=0x81080000"
     51  echo "code_coverage: state=on, filename=${2}.cov, start=0x81000000, end=0x81100000"
    5052fi
    5153}
  • sim-scripts/smdk2410.in

    r18e240c raeb8e90  
    4343mem_bank: map=I, type=RW, addr=0x48000000, size=0x20000000
    4444uart: mod=pipe, desc_in=/dev/null, desc_out=/dev/stdout
     45shutdown_device: addr=0xb0000000, max_ins=0
    4546EOF
     47#shutdown_device: addr=0xb0000000, max_ins=${limit}0000000
     48
     49if [ ${coverage} = yes ] ; then
     50  # enable 1 MB of RAM to be analyzed.
     51  echo "code_coverage: state=on, filename=${2}.cov, start=0x30000000, end=0x30100000"
     52fi
    4653}
  • sim-scripts/tsim-support

    r18e240c raeb8e90  
    3636    *stackchk*)limit=5 ;;
    3737    *fatal*)   limit=1 ;;
    38     *psxtime*) limit=180 ;;
     38    *psxtime*)
     39       case ${tsimName} in
     40         leon) limit=240 ;;  # ran in 200 seconds on idle england
     41         leon3) limit=240 ;;  # ran in 200 seconds on idle england
     42         *)     limit=180 ;;
     43       esac
     44       ;;
    3945    *)         limit=60 ;;
    4046  esac
Note: See TracChangeset for help on using the changeset viewer.