processor_info x86 perf. counters
processor_info x86 perf. counters
- Subject: processor_info x86 perf. counters
- From: ray dhurandhar <email@hidden>
- Date: Thu, 13 May 2010 06:29:23 -0700
Hi,
I'm running Snow Leopard (10.6.3) on a core 2 duo macbook and am
wondering
if the processor_info calls to get performance counter
information
are implemented.
In processor_info.h there is
#define
PROCESSOR_BASIC_INFO 1 /* basic information */
#define PROCESSOR_CPU_LOAD_INFO 2 /* cpu load information */
#define
PROCESSOR_PM_REGS_INFO 0x10000001 /* performance monitor register
info */
#define PROCESSOR_TEMPERATURE 0x10000002 /*
Processor core temperature */
however, there are no corresponding result structures for
PROCESSOR_PM_REGS_INFO and PROCESSOR_TEMPERATURE
In the kernel
code, I see the ppc directory has some code for the perf counters, but
nothing equivalent under x86 that I can
find. are these just not implemented for x86 ?
What's the best way to
access the performance counters programmatically ?
Thanks,
Ray
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden