Files
linux-kernel-module-cheat/rootfs_overlay/debugfs.sh

11 lines
268 B
Bash
Executable File

#!/bin/sh
set -ex
mkdir -p /debugfs
# We also added a fstab entry that mounts this under /sys/kernel/debug autmoatically.
# That is the most common place to mount it.
mount -t debugfs none /debugfs
insmod /debugfs.ko
cd /debugfs/kernel_module_cheat
cat myfile
# => 42