Re: [PATCH v3 0/5] Cavium ThunderX uncore PMU support

From: Peter Zijlstra
Date: Thu Oct 20 2016 - 06:37:15 EST


On Thu, Oct 20, 2016 at 11:30:36AM +0200, Jan Glauber wrote:
> Note:
> I'm using perf_sw_context in difference to perf_invalid_context
> (see WARN_ON in perf_pmu_register). Reason is that with perf_invalid_context
> add() is never called and the counter results are shown as "unsupported" by
> perf. With perf_sw_context everything works as expected.

What?! All the uncore PMUs use perf_invalid_context. What doesn't work
for you?