]> 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)
commitad7814404305f0200cc35373f04694bceb585074
tree5862cf843d3d5613ac58bbbd28d7acb57523823a
parentb92bae0921d52560e0d95bd6afe7b081f76b73e1
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