You mean I should use "dmesg>file.log" in the java program I am
writing to read the printk messages?

Regards,
Perumal

On Mar 24, 5:00 pm, Tirtha Kanti Ghosh <[email protected]> wrote:
> Though I am not sure about your need....but a simple solution which I can
> think of is
>
> dmesg > file.log (or >> for appending)
> read the file.log from your app.
>
> Now, how frequent you need to do dmesg>file.log, that's totally depends on
> your need.
>
> I mean this way you can at least read  printk() messeges.
>
> regards,
> Tirtha
>
> On Wed, Mar 24, 2010 at 9:29 AM, Chris Stratton <[email protected]> wrote:
> > You really want to be looking at generic linux kernel hacking guides as
> > these arent really android specific questions.
>
> > You might want to research how the dmesg command works, too.
>
> > On Mar 23, 2010 11:38 PM, "perumal316" <[email protected]> wrote:
>
> > Hi,
>
> > I have come up with a kernel module doing monitoring of system calls
> > and will printk messages. Now I want to show these messages to user
> > through an application.
>
> > I can write an application to read from file but not from "/proc/kmsg"
> > where the printk messages are stored.
>
> > So I think either there is a way to show "/proc/kmsg' or have to write
> > the printk messages to a file then read from it.
>
> > Regards,
> > Perumal
>
> > On Mar 24, 11:29 am, Greg KH <[email protected]> wrote:
>
> > > On Tue, Mar 23, 2010 at 8:21 PM, perumal316 <[email protected]>
> > wrote:
> > > > Hi All,
>
> > > > I want...
>
> >  --
> > unsubscribe: 
> > [email protected]<android-kernel%[email protected]>
> > website:http://groups.google.com/group/android-kernel
>
> > To unsubscribe from this group, send email to android-kernel+
> > unsubscribegooglegroups.com or reply to this email with the words "REMOVE
> > ME" as the subject.

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-kernel

To unsubscribe from this group, send email to 
android-kernel+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.

Reply via email to