aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Elliott <gelliott@cs.unc.edu>2012-03-07 10:45:50 -0500
committerGlenn Elliott <gelliott@cs.unc.edu>2012-03-07 10:45:50 -0500
commit44211103f2585b202b58aa54d48c707cab16f1c8 (patch)
tree13eeda793304dcca1cfcb646e4979af83b80048a
parent2089e7a47d1e081cfd2b444e9ffb512732e6d082 (diff)
Set tracer to FIFO instead of reniced.wip-irq-trace
-rw-r--r--Makefile2
-rwxr-xr-xst_trace19
2 files changed, 18 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index afff4dc..a8072e6 100644
--- a/Makefile
+++ b/Makefile
@@ -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?
8LIBLITMUS ?= ../liblitmus2010 8LIBLITMUS ?= ../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.
diff --git a/st_trace b/st_trace
index e9c1a9f..85541a7 100755
--- a/st_trace
+++ b/st_trace
@@ -1,5 +1,7 @@
1#!/bin/bash 1#!/bin/bash
2 2
3export PATH=$PATH:.
4
3if [ "$1" == "-s" ] 5if [ "$1" == "-s" ]
4then 6then
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
43ST_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
55ST_IDS="501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519"
44 56
45TAG=$1 57TAG=$1
46PIDS="" 58PIDS=""
47for x in `seq 0 $(($NUM_CPUS - 1))` 59for x in `seq 0 $(($NUM_CPUS - 1))`
48do 60do
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 [$?]"
54done 66done
55 67
68# boost their priority to FIFO
69/usr/bin/schedtool -F -p 80 `pidof ftcat`
70
56if [[ $AUTO != 1 ]] 71if [[ $AUTO != 1 ]]
57then 72then
58 echo "Press Enter to end tracing..." 73 echo "Press Enter to end tracing..."