Disable ftrace for now as it hangs the boot
This commit is contained in:
parent
7e6fdff142
commit
b903eae7e5
@ -93,19 +93,21 @@
|
|||||||
''
|
''
|
||||||
echo 0 > /proc/sys/vm/compaction_proactiveness
|
echo 0 > /proc/sys/vm/compaction_proactiveness
|
||||||
''
|
''
|
||||||
+
|
# FIXME: Disable sched_switch for now, as it still hangs the boot...
|
||||||
# Exclude the second pid, which is the kthread that will dump the trace to
|
# +
|
||||||
# the console, otherwise we live lock the kernel. Then enable the
|
# # Exclude the second pid, which is the kthread that will dump the trace to
|
||||||
# sched_switch events.
|
# # the console, otherwise we live lock the kernel. Then enable the
|
||||||
''
|
# # sched_switch events.
|
||||||
echo "Mount debugfs"
|
# ''
|
||||||
mkdir -p /sys/kernel/debug/
|
# echo "Mount debugfs"
|
||||||
mount -t debugfs none /sys/kernel/debug/
|
# mkdir -p /sys/kernel/debug/
|
||||||
echo "Exclude pid 2 from sched"
|
# mount -t debugfs none /sys/kernel/debug/
|
||||||
echo '(prev_pid != 2 && next_pid != 2)' > /sys/kernel/debug/tracing/events/sched/filter
|
# echo "Exclude pid 2 from sched"
|
||||||
echo "Enable sched_switch events"
|
# echo '(prev_pid != 2 && next_pid != 2)' > /sys/kernel/debug/tracing/events/sched/filter
|
||||||
echo 1 > /sys/kernel/debug/tracing/events/sched/sched_switch/enable
|
# echo "Enable sched_switch events"
|
||||||
'';
|
# echo 1 > /sys/kernel/debug/tracing/events/sched/sched_switch/enable
|
||||||
|
# ''
|
||||||
|
;
|
||||||
};
|
};
|
||||||
|
|
||||||
loader = {
|
loader = {
|
||||||
|
Loading…
Reference in New Issue
Block a user