Fabien Thomas wrote:
>> So, what's going on here? Is this the intended behavior, or can it
>> be changed? And how do I get accurate readings?
> If i remember well:
> The current code will get real HW PMC if the PMC is running and attached to owner.
> The first case is not true in your code so you get the saved value which is updated at
> process switch out time.
> I think you can do: