From 44211103f2585b202b58aa54d48c707cab16f1c8 Mon Sep 17 00:00:00 2001 From: Glenn Elliott Date: Wed, 7 Mar 2012 10:45:50 -0500 Subject: Set tracer to FIFO instead of reniced. --- Makefile | 2 +- st_trace | 19 +++++++++++++++++-- 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 @@ -include .config # Where is the LITMUS^RT userspace library source tree? -LIBLITMUS ?= ../liblitmus2010 +LIBLITMUS ?= ../liblitmus # Include default configuration from liblitmus # 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 @@ #!/bin/bash +export PATH=$PATH:. + if [ "$1" == "-s" ] then AUTO=1 @@ -40,19 +42,32 @@ NUM_CPUS=`egrep -c '^processor|online' /proc/cpuinfo` # 508 - sched_trace_task_resume # 509 - sched_trace_action # 510 - sched_trace_sys_release -ST_IDS="501 502 503 504 505 506 507 508 509 510" + +# 511 - sched_trace_tasklet_release +# 512 - sched_trace_tasklet_begin +# 513 - sched_trace_tasklet_end +# 514 - sched_trace_work_release +# 515 - sched_trace_work_begin +# 516 - sched_trace_work_end +# 517 - sched_trace_eff_prio_change +# 518 - sched_trace_nv_interrupt_begin +# 519 - sched_trace_nv_interrupt_end +ST_IDS="501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519" TAG=$1 PIDS="" for x in `seq 0 $(($NUM_CPUS - 1))` do - TARGET="st-${TAG}-${x}.bin" + TARGET="/dev/shm/st-${TAG}-${x}.bin" echo -n "CPU $x: " $FTCAT "$FTDEV$x" $ST_IDS > "$TARGET" & PIDS="$PIDS $!" echo $! "> $TARGET [$?]" done +# boost their priority to FIFO +/usr/bin/schedtool -F -p 80 `pidof ftcat` + if [[ $AUTO != 1 ]] then echo "Press Enter to end tracing..." -- cgit v1.2.2