On Mon, Oct 18, 2010 at 11:42, Andreas Leppert <[email protected]> wrote:
> Hello,
>
> I know that I can use the perf* tools to get information about SW and HW
> events while a program is running.
>
> I write a kernel module which needs information dynamically about the HW
> status via performance counter so that the kernel module can react
> appropriately. Thus I want to read out the performance counter values
> while being in the kernel (module), and so I cannot use the above
> mentioned perf* tools.

How about mimic-ing the way oprofile user space tool reading info
provided by oprofile kernel module? Surely there must be reusable APIs
there.... or netlink or something...



-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [email protected]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to