On Tue, Mar 23, 2010 at 8:38 PM, perumal316 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.
What's wrong with the strace application?
Or the kernel audit subsyste
Hi,
If you want to monitor system calls for an aplication, you could make use of
strace command or refer tot its code for your use case.
Regards,
Karthik Poduval
On Tue, Mar 23, 2010 at 10:38 PM, perumal316 wrote:
> Hi,
>
> I have come up with a kernel module doing monitoring of system calls
>
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 wrote:
> Though I am not sure about your needbut a simple solution which I can
> think of is
>
> dmesg > file.log (or >> for appending
Though I am not sure about your needbut 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() mess
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" wrote:
Hi,
I have come up with a kernel module doing monitoring of system c
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 ther