📄 makefile
字号:
all: test.oinclude ../../../rtl.mkhelp: @echo "/*********************************************************/" @echo "/*********************************************************/" @echo "/* This is a simple program to test that the execution */" @echo "/* of a signal handler can be interrupted by other */" @echo "/* higher priority threads. In this test two periodic */" @echo "/* threads are wasting time when they execute their */" @echo "/* signal handlera. Be careful with the amount of */" @echo "/* computing they do in their signal handlers. It can */" @echo "/* lock up slow processors. A high priority thread */" @echo "/* interrupts signal handler executions periodically */" @echo "/* every 1 millisecond. Also a higher priority signal */" @echo "/* handler interrupts a lower priority one. */" @echo "/* A chronogram of what is happening is shown in the */" @echo "/* file testlog.txt. The first task is the Linux-kernel. */" @echo "/* The second and the third task are periodic tasks that */" @echo "/* are executing huge quantity of computing during their */" @echo "/* signal handlers. The last task is a high frequency */" @echo "/* periodic task. Finally, the priority is increasing */" @echo "/* with the number of the task. So the first task has */" @echo "/* the lowest priority and the last the highest. */" @echo "/*********************************************************/" @echo "/*********************************************************/"clean: rm -f *.otest: all help @echo "First we remove any existing rtl-modules" @echo "You may see error warnings from \"make\" - ignore them" @echo "Type <return> to continue" @read junk (cd ../../../; scripts/rmrtl) @echo "Now insert the fifo and scheduler" @echo "Type <return> to continue" @read junk (cd ../../../; scripts/insrtl) @echo "Now start the real-time tasks module" @echo "Type <return> to continue" @read junk @tail -f /var/log/messages -n 0 & @insmod test.o @sleep 10 @echo "Now let's stop the application" @echo "Type <return> to finish" @read junk @rmmod test @kill `pidof -s tail`include ../../../Rules.make
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -