]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1fa9aadb2eee037481cec0d928d565c8bbea66ec
tree5862cf843d3d5613ac58bbbd28d7acb57523823a
parentbd55facfcd61fafd98b990d7b2a68b179d22afdf
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