Accessing performance counters for a processor in a multi-processor environment

From: Abhinkar, Sameer
Date: Mon Apr 04 2005 - 17:12:31 EST


Hi there,

I'm a newbie in Linux kernel development and hopefully my question has
some quick solution..

I'm trying to access performance counters on a dual Xeon processor
machine (both processors are 32-bit and HT enabled). Since each
processor (logical/physical) has their own performance counter, I'd like
to get the numbers for a processor. Is there a way I can do some
pre-work before executing rdpmc instruction to set up the context to
access counter information of a certain processor? Or, what is the best
way to do get the counter information for a certain processor in a
multi-processor environment.

If anybody has some information, I'd really grateful..

Thanks in advance,

Regards,
Sameer
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/