From b903eae7e5c0db350c9d0cb079db40a2b83d808e Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Fri, 5 Jul 2024 16:23:09 +0200 Subject: [PATCH] Disable ftrace for now as it hangs the boot --- lagarto-ox.nix | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/lagarto-ox.nix b/lagarto-ox.nix index f8f8a65..0aeb392 100644 --- a/lagarto-ox.nix +++ b/lagarto-ox.nix @@ -93,19 +93,21 @@ '' echo 0 > /proc/sys/vm/compaction_proactiveness '' - + - # 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 - # sched_switch events. - '' - echo "Mount debugfs" - mkdir -p /sys/kernel/debug/ - mount -t debugfs none /sys/kernel/debug/ - echo "Exclude pid 2 from sched" - echo '(prev_pid != 2 && next_pid != 2)' > /sys/kernel/debug/tracing/events/sched/filter - echo "Enable sched_switch events" - echo 1 > /sys/kernel/debug/tracing/events/sched/sched_switch/enable - ''; +# 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 +# # sched_switch events. +# '' +# echo "Mount debugfs" +# mkdir -p /sys/kernel/debug/ +# mount -t debugfs none /sys/kernel/debug/ +# echo "Exclude pid 2 from sched" +# echo '(prev_pid != 2 && next_pid != 2)' > /sys/kernel/debug/tracing/events/sched/filter +# echo "Enable sched_switch events" +# echo 1 > /sys/kernel/debug/tracing/events/sched/sched_switch/enable +# '' + ; }; loader = {