diff --git a/lagarto-ox.nix b/lagarto-ox.nix index 67cfb5a..dfd4f44 100644 --- a/lagarto-ox.nix +++ b/lagarto-ox.nix @@ -90,16 +90,16 @@ '' + # 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 - # events. + # 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 all events from sched subsystem" - echo 1 > /sys/kernel/debug/tracing/events/sched/enable + echo "Enable sched_switch events" + echo 1 > /sys/kernel/debug/tracing/events/sched/sched_switch/enable ''; };