Dear List :
I have a
user-program make (SeTopBox implimented with SC1200) hang.
I use to
insert macro (as follows) everywhere in user-program
openlog("",LOG_PID,LOG_USER);
syslog("LOG_INFO","file: %s
line%d\n"__FILE__,__LINE__) ;
closelog();
usleep(3); //
let file be fflushed before HANG
Then I reboot PC & go to /var/log to find
out where it hangs.
But this time ,I traced a bug from
user-program to a driver it called:
I inserted the macro (as above ) to driver , but After I
made driver xxx.o &
insmod xxx.o ,
I got (msg as follows)
"export openlog
export
syslog
export
closelog"
I have 2 questions to consult you :
1. Could I use openlog(),syslog(),closelog() in driver ?
2. Is there a method for dummy to know
where(from
the view of source-code) it hang ?
Thanks in advance !
Henry |