Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
How to do syslog in kernel level?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
hai@asu.edu  
View profile  
 More options Mar 14 2002, 11:40 pm
Newsgroups: comp.os.linux.development.apps
From: h...@asu.edu (h...@asu.edu)
Date: 14 Mar 2002 20:40:49 -0800
Local: Thurs, Mar 14 2002 11:40 pm
Subject: How to do syslog in kernel level?
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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nils O. Selåsdal  
View profile  
 More options Mar 15 2002, 4:35 am
Newsgroups: comp.os.linux.development.apps
From: nosel...@frisurf.no (Nils O. Selåsdal)
Date: Fri, 15 Mar 2002 09:35:32 GMT
Local: Fri, Mar 15 2002 4:35 am
Subject: Re: How to do syslog in kernel level?
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

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
hai@asu.edu  
View profile  
 More options Mar 15 2002, 1:03 pm
Newsgroups: comp.os.linux.development.apps
From: h...@asu.edu (h...@asu.edu)
Date: 15 Mar 2002 10:03:20 -0800
Local: Fri, Mar 15 2002 1:03 pm
Subject: Re: How to do syslog in kernel level?
nosel...@frisurf.no (Nils O. Selåsdal wrote in message <news:slrna93g3a.h6g.noselasd@labsrv.utel.no>...

> 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

thanks a lot.:)

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »