Commit c52e4e02 authored by aumgn's avatar aumgn
Browse files

Add support for wastedcores trace

parent 73a824ca
......@@ -18,6 +18,9 @@ submodules:
make -Cbenchmarks/phoenix/phoenix-2.0
make -C. build-parsec
wastedcores: submodules
cd tools/wastedcores/tools/visualizations_4.1/sched_profiler; make
.PHONY: build-parsec
build-parsec: build-bodytrack build-streamcluster build-volrend #build-vips
......
......@@ -7,6 +7,7 @@ export TMPFS_PATH=$BENCH_PATH/tmpfs
export TRACE_BASE_PREFIX="sudo trace-cmd record -e sched"
export PERF_BASE_PREFIX="sudo perf record -e sched:sched_migrate_task,sched:sched_switch --call-graph dwarf -F 99"
export SCHED_PROFILER_MOD_PATH=tools/wastedcores/tools/visualizations_4.1/sched_profiler/sched_profiler.ko
export PINTHREADS_PATH=$HOME/bench/tools/PinThreads
export PINTHREADS_BIN=$PINTHREADS_PATH/pinthreads
......@@ -217,8 +218,16 @@ run_iterations() {
echo "#### $cmd" >$iteration_dir/command
cat /proc/schedstat >$iteration_dir/schedstat.before
if [[ -n $WITH_WC_VISU ]]; then
sudo insmod $SCHED_PROFILER_MOD_PATH
fi
eval "$cmd" 1>>$output 2>>$errors
echo "$?" >$iteration_dir/exit_status
if [[ -n $WITH_WC_VISU ]]; then
cat /proc/sched_profiler > $iteration_dir/sched_profiler.output
sudo rmmod $SCHED_PROFILER_MOD_PATH
fi
cat /proc/schedstat >$iteration_dir/schedstat.after
printf '.'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment