[131335]: nouveau-pm / init-trace.sh Maximize Restore History

Download this file

init-trace.sh    21 lines (16 with data), 547 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
if [ $UID -ne 0 ]; then
echo "The script must be run as root"
exit 1
fi
mount -t debugfs debugfs /sys/kernel/debug
for TRACER in `cat /sys/kernel/debug/tracing/available_tracers`
do
if test "x$TRACER" = xmmiotrace; then
echo 128000 > /sys/kernel/debug/tracing/buffer_size_kb
echo mmiotrace > /sys/kernel/debug/tracing/current_tracer
exit 0
fi
done
echo "ERROR - Cannot find mmiotrace in the list of available tracers"
echo "Please ensure that you are using the correct kernel/kernel has been built with CONFIG_MMIOTRACE"