summaryrefslogtreecommitdiff
path: root/schulung_tools/sleep_wake/README
diff options
context:
space:
mode:
Diffstat (limited to 'schulung_tools/sleep_wake/README')
-rw-r--r--schulung_tools/sleep_wake/README19
1 files changed, 19 insertions, 0 deletions
diff --git a/schulung_tools/sleep_wake/README b/schulung_tools/sleep_wake/README
new file mode 100644
index 0000000..b18efa9
--- /dev/null
+++ b/schulung_tools/sleep_wake/README
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+sudo trace-cmd record -e sched:* -e timer:* -e syscalls:* chrt -f 98 /bin/sleep 2
+
+# Notice the chain of events:
+#
+# sys_enter_nanosleep
+# hrtimer_init
+# hrtimer_start
+# sched_switch
+# ...
+# hrtimer_cancel
+# hrtimer_expire_entry
+# sched_wakeup
+# hrtimer_expire_exit
+# sched_switch
+# sys_exit_nanosleep
+
+kernelshark