Mount debugfs first

This commit is contained in:
Rodrigo Arias 2024-07-05 15:24:43 +02:00
parent 934b67ac0b
commit bc05dc2676

View File

@ -93,6 +93,9 @@
# the console, otherwise we live lock the kernel. Then enable the sched # the console, otherwise we live lock the kernel. Then enable the sched
# events. # events.
'' ''
echo "Mount debugfs"
mkdir -p /sys/kernel/debug/
mount -t debugfs none /sys/kernel/debug/
echo "Exclude pid 2 from sched" echo "Exclude pid 2 from sched"
echo '(prev_pid != 2 && next_pid != 2)' > /sys/kernel/debug/tracing/events/sched/filter echo '(prev_pid != 2 && next_pid != 2)' > /sys/kernel/debug/tracing/events/sched/filter
echo "Enable all events from sched subsystem" echo "Enable all events from sched subsystem"