Re: Communication between kernel and kernel module

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Tue, May 22, 2012 at 9:18 PM, drewd77.gm <drewd77.gm@xxxxxxxxx> 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

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


[Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Networking]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]

Add to Google Powered by Linux