LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to debug a newly written system cal (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-debug-a-newly-written-system-cal-850800/)

coolsandyforyou 12-17-2010 12:09 AM

how to debug a newly written system cal
 
Hi,
i added a new system call..helloworld...

i rebuild the kernel and when i try to use it, it is returning -1.

can any one tell me how to debug and know where things went wrong..

how to see the kernel log when this syscall is called...i wrote a println in my syscall..but couldnt find that in /var/log/dmesg...

Help me out here

THanks in advance...

kbp 12-17-2010 02:11 AM

I think you need to use 'printk' ...

coolsandyforyou 12-18-2010 11:19 AM

i have given printk itself....but still icant see any logs

kbp 12-18-2010 05:15 PM

Try /var/log/messages


All times are GMT -5. The time now is 10:41 AM.