logging in kernel
Hello,
I am a graudate student at Florida State University. My friends and my self
are planning to implement a kernel logger for linux kernel (real-time systems). We are new to linux kernel programming and we have not done kernel programming.
We believe right now most of the system are using printk. We want to write a
tool which can be used for debugging as well as logging of data in the future. Following are the things that we have in mind so far.
1. Implement the logging daemon or the server as a periodic task in the real-time system.
2. Have an api which looks similar to printk
3. Have an option to specify the write the network card or console or a dedicated device.
4. Use it for checkpointing in distributed system.
I am not sure whether such a tool is required but I believe it will give me a taste of kernel programming.
Any suggestions would be highly appreciated.
Thanking you all in anticipation.
-- Amit Khandelwal
Quoted 8 lines · [email protected] wrote:
Hello,
I am a graudate student at Florida State University. My friends and my self
are planning to implement a kernel logger for linux kernel (real-time systems). We are new to linux kernel programming and we have not done kernel programming.
We believe right now most of the system are using printk. We want to write a
tool which can be used for debugging as well as logging of data in the future. Following are the things that we have in mind so far.
Quoted 6 lines
1. Implement the logging daemon or the server as a periodic task in the real-time system.
2. Have an api which looks similar to printk
3. Have an option to specify the write the network card or console or a dedicated device.
4. Use it for checkpointing in distributed system.
There have been quite a few things done in this area already. For starters, you may want to take a look at the Linux Trace Toolkit and the underlying mechanism, relayfs:
http://www.opersys.com/ltt/index.html
http://www.opersys.com/relayfs/index.html
Karim
Signature · 3 lines
Author, Speaker, Developer, Consultant Pushing Embedded and Real-Time Linux Systems Beyond the Limits http://www.opersys.com || [email protected] || 1-866-677-4546