Skip to content

Commit

Permalink
scripts: don't use i915-perf-recorder if disabled
Browse files Browse the repository at this point in the history
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
  • Loading branch information
llandwerlin-intel authored and mikesart committed Apr 16, 2020
1 parent d9a6ba7 commit 30eba58
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions sample/trace-cmd-start-tracing.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,11 @@ if [ -e /tmp/.i915-perf-record ]; then
$CMD
fi

CMD="i915-perf-recorder -m ${I915_PERF_METRIC} -s 8000 -k ${CLOCK}"
echo $CMD
$CMD &
if [ "${USE_I915_PERF}" ]; then
CMD="i915-perf-recorder -m ${I915_PERF_METRIC} -s 8000 -k ${CLOCK}"
echo $CMD
$CMD &
fi

echo
./trace-cmd-status.sh

0 comments on commit 30eba58

Please sign in to comment.