Re: [PATCH V2 1/3] perf/x86: Disable non generic regs for software/probe events

From: Liang, Kan
Date: Tue May 28 2019 - 10:29:39 EST




On 5/28/2019 10:05 AM, Peter Zijlstra wrote:
On Tue, May 28, 2019 at 09:33:40AM -0400, Liang, Kan wrote:
Uncore PMU doesn't support sampling. It will return -EINVAL.
There is no regs support for counting. The request will be ignored.

I think current check for uncore is good enough.

breakpoints then.. There's also no guarantee you covered all software
events, and the core rewrite will allow other per-task/sampling PMUs
too.

The approach you take is just not complete, don't do that.


OK. I will send V3 base on your proposed patches.

Thanks,
Kan