Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Feb 2009 20:18:20 +0100
From:      =?UTF-8?Q?Nikola_Kne=C5=BEevi=C4=87?= <laladelausanne@gmail.com>
To:        freebsd-hackers@freebsd.org
Subject:   Obtaining l2 misses and cpu utilization in a module
Message-ID:  <E8C5F8E2-9482-45FE-B5F8-4232193B263C@gmail.com>

next in thread | raw e-mail | index | archive | help
Hi,

I would like to obtain fore mentioned data from within my module. I  
need these performance metrics to see how certain code executes, and  
make decisions during the runtime. pmc(3) seems complete, but it also  
seems to be intended for use in the userland.

How to use pmc from modules? Is there any other way? Also, module is  
amd64 only, so I don't care about portability.

Cheers,
Nikola



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E8C5F8E2-9482-45FE-B5F8-4232193B263C>