blob: 4a6b917ce611a59bf7701d33fb39d6bf65a01a7a [file] [log] [blame]
Austin Schuh2d183112023-01-03 21:23:53 -08001#!/bin/bash
2
3set -ex
4
5chmod a+rwx /sys/kernel/debug
6
7# Make sure /sys/kernel/tracing is reasonably accessible so --enable_ftrace
8# works.
9chmod a+w /sys/kernel/tracing/trace_marker
10echo 10000 > /sys/kernel/tracing/buffer_size_kb
11chmod a+rw /sys/kernel/tracing/tracing_on
12chmod a+rwx /sys/kernel/tracing
13
14# Make sure we never scale the CPUs down.
15# This takes time to do which we don't have...
16cat /sys/devices/system/cpu/cpufreq/policy0/scaling_max_freq > \
17 /sys/devices/system/cpu/cpufreq/policy0/scaling_min_freq
18cat /sys/devices/system/cpu/cpufreq/policy4/scaling_max_freq > \
19 /sys/devices/system/cpu/cpufreq/policy4/scaling_min_freq