Re: [RFC PATCH] perf: Provide status of known PMUs

From: Peter Zijlstra
Date: Thu Jul 09 2015 - 08:43:17 EST


On Thu, Jul 09, 2015 at 02:32:05PM +0200, Ingo Molnar wrote:
>
> perf record error: The 'bts' PMU is not available, because the CPU does not support it

This one makes sense.

> perf record error: The 'bts' PMU is not available, because this architecture does not support it
> perf record error: The 'bts' PMU is not available, because its driver is not built into the kernel
>
> Because if it's the wrong architecture or CPU, I look for a box with the right
> one, if it's simply the kernel not having the necessary PMU driver then I'll boot
> a kernel with it enabled.

These not so much; why won't a generic: "Unknown PMU, check arch/kernel"
do?

The thing is, I hate that hard-coded list, its pain I don't need.
--
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/