Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to do syslog in kernel level?

11 views
Skip to first unread message

h...@asu.edu

unread,
Mar 14, 2002, 11:40:49 PM3/14/02
to
hi, now we are working on intercepting the "do_page_fault" interrupt
and log some information. since we are in kernel level, i think we
cannot use printf or so. so we are thinking about to adopt the system
call "syslog". could we just invoke syslog() inside the
"do_page_fault" handler? will that work? i see from the source code
that it allows interrupt by "local_irq_enable". but just want to make
sure. thanks in advance. :)

ps. also another two problem, how to get current system time and how
to do TCP/IP connection in kernel level. thanks.:)

hai

Nils O. Selåsdal

unread,
Mar 15, 2002, 4:35:32 AM3/15/02
to
On 14 Mar 2002 20:40:49 -0800, h...@asu.edu <h...@asu.edu> wrote:
>hi, now we are working on intercepting the "do_page_fault" interrupt
>and log some information. since we are in kernel level, i think we
>cannot use printf or so. so we are thinking about to adopt the system
>call "syslog". could we just invoke syslog() inside the
Certanly not.
>"do_page_fault" handler? will that work? i see from the source code
>that it allows interrupt by "local_irq_enable". but just want to make
>sure. thanks in advance. :)
Remember NO userspace library functions available in the kernel,
use printk(..), sysklogd takes care of sending that to syslogd

h...@asu.edu

unread,
Mar 15, 2002, 1:03:20 PM3/15/02
to
nose...@frisurf.no (Nils O. Selåsdal wrote in message news:<slrna93g3a....@labsrv.utel.no>...

thanks a lot.:)

0 new messages