poll kernel module: overhaul with prints everywhere

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2020-07-11 02:00:01 +00:00
parent f9f6c557cc
commit 8cbf47265f
6 changed files with 90 additions and 22 deletions

View File

@@ -1,6 +1,7 @@
#!/bin/sh
# https://cirosantilli.com/linux-kernel-module-cheat#poll
set -e
insmod poll.ko
insmod poll.ko "$@"
./kernel_modules/poll.out /sys/kernel/debug/lkmc_poll
# TODO capture Ctrl+C and do this automatically.
#rmmod poll