Communication between kernel and kernel module
Vlad Dogaru
ddvlad at rosedu.org
Tue May 22 14:31:45 EDT 2012
On Tue, May 22, 2012 at 9:18 PM, drewd77.gm <drewd77.gm at gmail.com> wrote:
> Hi,
>
> Is there any way to call a function defined in a kernel module from within
> the kernel proper?
>
> Here's what I'm trying to do:
>
> I'm trying to keep track of when and for how long a process is being
> executed on the processor, i.e. I need to know when context switches occur.
Kprobes [1] might be useful. I for one haven't used Kprobes before,
but I'm sure others on this list can provide useful insight.
[1] http://lwn.net/Articles/132196/
Hope this helps,
Vlad
More information about the Kernelnewbies
mailing list