Commit 94cc689f authored by Marco Perronet's avatar Marco Perronet
Browse files

Add script to run trace-sched-event with rtspin

parent f24ea4d3
#!/usr/bin/env python3
import subprocess
import time
import os
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("--output", required=True)
args = parser.parse_args()
# workload = "scripts/evaluation/workloads/uniprocessor_double/1_uni_double_slow.json"
# workload = "scripts/evaluation/workloads/uniprocessor_double/2_uni_double.json"
# workload = "scripts/evaluation/workloads/uniprocessor_double/3_uni_double_fast.json"
# workload = "scripts/evaluation/workloads/uniprocessor_double/4_uni_double_veryfast.json"
workload = "scripts/evaluation/workloads/uniprocessor_all/8_uni_stress_veryfast.json"
print("*** RUNNING WORKLOAD: " + os.path.basename(workload) + " ***")
# Spawn threads to be traced
proc1 = subprocess.Popen(["python3", "scripts/evaluation/", "--workload", workload])
# Skip rtspin init phase
# Get pids to trace and call trace-sched-event
proc2 = subprocess.Popen(["pgrep", "rtspin"], stdout=subprocess.PIPE)
proc3 =["xargs", "./src/tools/trace-sched-event", "--output", args.output,"--pids"], stdin=proc2.stdout)
Supports Markdown
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