> 3. development practices: > Do you have a way that you debug or develop Linux software, that > may be different from others. For example, I'm a bit of a > debugging medievalist. I still do probably 70% of my kernel debugging > with printks.
Problem: When tracing user mode application together with kernel, logs are not synchronized often intermixed on a terminal. You can save both logs separately (dmesg and stderr output) but miss synchronization between user mode log and kernel log. Solution: Forward all stderr output to kernel and have synchronized user mode and kernel log: stderr = fopen("/dev/kmsg","r+"); fprintf(stderr,"log message from user mode to kernel\n"); ... call kernel -- Constantine Shulyupin http://www.MakeLinux.com/ Embedded Linux Systems, Device Drivers, TI DaVinci _______________________________________________ Celinux-dev mailing list Celinux-dev@lists.celinuxforum.org https://lists.celinuxforum.org/mailman/listinfo/celinux-dev