On Tue, May 22, 2012 at 9:18 PM, drewd77.gm <[email protected]> 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 [email protected] http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
