Re: Reading performance counter within kernel

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

 



On Mon, Oct 18, 2010 at 11:42, Andreas Leppert <wudmx@xxxxxx> 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 ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux