diff --git a/lagarto-ox.nix b/lagarto-ox.nix index 319cb5c..2da2c5e 100644 --- a/lagarto-ox.nix +++ b/lagarto-ox.nix @@ -87,6 +87,16 @@ preDeviceCommands = '' echo "Creating a heartbeat counter at 0x1bfff0000" sh -c 'hb=0; while [ 1 ]; do let hb=$hb+1; devmem 0x1bfff0000 32 $hb; done' & + '' + + + # 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. + '' + 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 ''; };