diff options
| author | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-07 10:45:50 -0500 |
|---|---|---|
| committer | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-07 10:45:50 -0500 |
| commit | 44211103f2585b202b58aa54d48c707cab16f1c8 (patch) | |
| tree | 13eeda793304dcca1cfcb646e4979af83b80048a | |
| parent | 2089e7a47d1e081cfd2b444e9ffb512732e6d082 (diff) | |
Set tracer to FIFO instead of reniced.wip-irq-trace
| -rw-r--r-- | Makefile | 2 | ||||
| -rwxr-xr-x | st_trace | 19 |
2 files changed, 18 insertions, 3 deletions
| @@ -5,7 +5,7 @@ | |||
| 5 | -include .config | 5 | -include .config |
| 6 | 6 | ||
| 7 | # Where is the LITMUS^RT userspace library source tree? | 7 | # Where is the LITMUS^RT userspace library source tree? |
| 8 | LIBLITMUS ?= ../liblitmus2010 | 8 | LIBLITMUS ?= ../liblitmus |
| 9 | 9 | ||
| 10 | # Include default configuration from liblitmus | 10 | # Include default configuration from liblitmus |
| 11 | # Liblitmus must have been built before ft_tools can be built. | 11 | # Liblitmus must have been built before ft_tools can be built. |
| @@ -1,5 +1,7 @@ | |||
| 1 | #!/bin/bash | 1 | #!/bin/bash |
| 2 | 2 | ||
| 3 | export PATH=$PATH:. | ||
| 4 | |||
| 3 | if [ "$1" == "-s" ] | 5 | if [ "$1" == "-s" ] |
| 4 | then | 6 | then |
| 5 | AUTO=1 | 7 | AUTO=1 |
| @@ -40,19 +42,32 @@ NUM_CPUS=`egrep -c '^processor|online' /proc/cpuinfo` | |||
| 40 | # 508 - sched_trace_task_resume | 42 | # 508 - sched_trace_task_resume |
| 41 | # 509 - sched_trace_action | 43 | # 509 - sched_trace_action |
| 42 | # 510 - sched_trace_sys_release | 44 | # 510 - sched_trace_sys_release |
| 43 | ST_IDS="501 502 503 504 505 506 507 508 509 510" | 45 | |
| 46 | # 511 - sched_trace_tasklet_release | ||
| 47 | # 512 - sched_trace_tasklet_begin | ||
| 48 | # 513 - sched_trace_tasklet_end | ||
| 49 | # 514 - sched_trace_work_release | ||
| 50 | # 515 - sched_trace_work_begin | ||
| 51 | # 516 - sched_trace_work_end | ||
| 52 | # 517 - sched_trace_eff_prio_change | ||
| 53 | # 518 - sched_trace_nv_interrupt_begin | ||
| 54 | # 519 - sched_trace_nv_interrupt_end | ||
| 55 | ST_IDS="501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519" | ||
| 44 | 56 | ||
| 45 | TAG=$1 | 57 | TAG=$1 |
| 46 | PIDS="" | 58 | PIDS="" |
| 47 | for x in `seq 0 $(($NUM_CPUS - 1))` | 59 | for x in `seq 0 $(($NUM_CPUS - 1))` |
| 48 | do | 60 | do |
| 49 | TARGET="st-${TAG}-${x}.bin" | 61 | TARGET="/dev/shm/st-${TAG}-${x}.bin" |
| 50 | echo -n "CPU $x: " | 62 | echo -n "CPU $x: " |
| 51 | $FTCAT "$FTDEV$x" $ST_IDS > "$TARGET" & | 63 | $FTCAT "$FTDEV$x" $ST_IDS > "$TARGET" & |
| 52 | PIDS="$PIDS $!" | 64 | PIDS="$PIDS $!" |
| 53 | echo $! "> $TARGET [$?]" | 65 | echo $! "> $TARGET [$?]" |
| 54 | done | 66 | done |
| 55 | 67 | ||
| 68 | # boost their priority to FIFO | ||
| 69 | /usr/bin/schedtool -F -p 80 `pidof ftcat` | ||
| 70 | |||
| 56 | if [[ $AUTO != 1 ]] | 71 | if [[ $AUTO != 1 ]] |
| 57 | then | 72 | then |
| 58 | echo "Press Enter to end tracing..." | 73 | echo "Press Enter to end tracing..." |
