This issue comes from use of visual studio, where starting the profiler for cpu usage fails with Failed to enable requested events on system provider (0x800700aa)..
This seems to rely on starting a Window Performance Recorder (wpr) session. Trying to do that directly fails with the same error:
wpr -start CPU
The requested resource is in use.
Profile Id: CPU.Verbose.Memory
Error code: 0x800700aa
The requested resource is in use.
Can anyone help me solve this issue?
WPR is able to start certain types of sessions that seem to not rely on performance counters on the CPU.
Windows SDK version is 10.0.26100.418
Short overview of what I've tried:
- I've tried reinstalling the windows SDK, but no difference.
- This question has the same issue, but their solution doesn't help me. I am however able to start an xperf session if that is of importance. https://answers.microsoft.com/en-us/windows/forum/all/windows-performance-recorder-wont-start-recording/958c45c9-dd4f-4ba2-bbe2-b90ba0b01e56
- I've tried stopping other traces using
logman query -etscallinglogman stop "<session name>" -etson all except a few that required elevation.