From 32f4d117dbed958c00378d13848201b198939578 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Fri, 5 Jul 2024 15:37:50 +0200 Subject: [PATCH] Only enable sched_switch events As sched_stat_runtime is flooding the console. --- lagarto-ox.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 ''; };