mirror of
https://github.com/gatieme/LDD-LinuxDeviceDrivers.git
synced 2026-08-19 10:26:03 +08:00
17 lines
164 B
Bash
17 lines
164 B
Bash
#!/bin/bash
|
|
|
|
if [ $# -eq 1 ]; then
|
|
PID=$1
|
|
else
|
|
PID=$$
|
|
fi
|
|
|
|
|
|
insmod show_task.ko
|
|
|
|
echo $PID > /proc/sched_show_task
|
|
|
|
cat /proc/sched_show_task
|
|
|
|
rmmod show_task.ko
|