media-trash.sh 397 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#!/bin/bash
echo 15 > /proc/sys/kernel/printk
#echo "file drivers/media/platform/vimc/* +p" > /sys/kernel/debug/dynamic_debug/control

gcc media_syscall.c -o media_syscall
for ((i=1;i<=1000000000000000;i++));
do
	echo $i
	modprobe vimc
	./media_syscall &
	sleep 1;
	echo -n vimc.0 >/sys/bus/platform/drivers/vimc/unbind
	echo -n vimc.0 >/sys/bus/platform/drivers/vimc/bind
	modprobe vimc -r
done