powerpc/64s: Implement PMU override command line option
authorNicholas Piggin <npiggin@gmail.com>
Tue, 23 Nov 2021 09:51:50 +0000 (19:51 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 24 Nov 2021 10:08:57 +0000 (21:08 +1100)
commit0a4b4327ce867e3ac1b3ad15f4d2b686b516b3a2
tree5862cf843d3d5613ac58bbbd28d7acb57523823a
parent245ebf8e7380b3d84c0aac37fbfd9306b45a3a7a
powerpc/64s: Implement PMU override command line option

It can be useful in simulators (with very constrained environments)
to allow some PMCs to run from boot so they can be sampled directly
by a test harness, rather than having to run perf.

A previous change freezes counters at boot by default, so provide
a boot time option to un-freeze (plus a bit more flexibility).

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: Athira Jajeev <atrajeev@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20211123095231.1036501-13-npiggin@gmail.com
Documentation/admin-guide/kernel-parameters.txt
arch/powerpc/perf/core-book3s.c