Lines Matching +full:traces +full:- +full:db
3 # Use of this source code is governed by a BSD-style license that can be
9 #set -ex
29 …echo " --root, -r Path to a root directory that contains the sources for mesa, virglrendere…
30 echo " --mesa, -m Path to Mesa source code (overrides path generated from root)"
31 echo " --virgl, -v Path to virglrenderer source code (overrides path generated from root)"
32 echo " --kernel, -k Path to Linux kernel source code"
33 …echo " --traces-db, -d Path to the directory containing the traces (overrides path generated fro…
34 echo " --trace, -t Trace to be run (path relative to traces-db) (required)"
35 …echo " --benchmark, -b Number of times the last frame should be run for benchmarking (default 0=…
36 …echo " --perfetto, -p Number of times the last frame should be loop for perfetto (default 10; 0…
37 echo " --snapshot, -s Make per-frame snapshots"
38 echo " --debug Enable extra logging"
40 echo " --help, -h Print this help"
45 while [ -n "$1" ] ; do
48 --root|-r)
53 --mesa|-m)
58 --virgl|-v)
63 --traces-db|-d)
68 --kernel|-k)
73 --help|-h)
78 --trace|-t)
83 --benchmark|-b)
84 command="$command -b $2"
88 --perfetto|-p)
89 command="$command -p $2"
93 --wait-after-frame|-w)
94 command="$command -w"
97 --snapshot|-s)
98 command="$command -s"
101 --debug)
102 command="$command --debug"
105 echo "Unknown option '$1' given, run with option --help to see supported options"
121 traces_db="$root_dir/traces-db"
136 if [ ! -d "$mesa_src/src/mesa" ]; then
146 if [ ! -d "$virgl_src/vtest" ]; then
156 if [ ! -f "$traces_db/$trace" ]; then
157 echo "Given trace file '$trace' doesn't exist in traces db dir '$traces_db'" >&2;
162 if [ ! -f "$traces_db/$trace" ]; then
173 re='^[0-9]+$'
186 docker run -it --rm \
187 --privileged \
188 --ipc=host \
189 -v /dev/log:/dev/log \
190 -v /dev/vhost-net:/dev/vhost-net \
191 -v /sys/kernel/debug:/sys/kernel/debug \
192 -v "$mesa_src":/mesa \
193 -v "$virgl_src":/virglrenderer \
194 -v "$traces_db":/traces-db \
195 -v "$kernel_src":/kernel \
196 --volume "$pwd":/wd \
197 --workdir /wd \
199 -t "$trace" \