diff options
author | Anju T Sudhakar <anju@linux.vnet.ibm.com> | 2020-03-13 11:22:37 +0530 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2020-04-03 00:09:58 +1100 |
commit | a36e8ba60b991d563677227f172db69e030797e6 (patch) | |
tree | 3de5db9eb9e0c60f19f57ef44eadc3d74afc5264 /lib/mpi/mpiutil.c | |
parent | a95a0a1654f16366360399574e10efd87e867b39 (diff) |
powerpc/perf: Implement a global lock to avoid races between trace, core and thread imc events.
IMC(In-memory Collection Counters) does performance monitoring in
two different modes, i.e accumulation mode(core-imc and thread-imc events),
and trace mode(trace-imc events). A cpu thread can either be in
accumulation-mode or trace-mode at a time and this is done via the LDBAR
register in POWER architecture. The current design does not address the
races between thread-imc and trace-imc events.
Patch implements a global id and lock to avoid the races between
core, trace and thread imc events. With this global id-lock
implementation, the system can either run core, thread or trace imc
events at a time. i.e. to run any core-imc events, thread/trace imc events
should not be enabled/monitored.
Signed-off-by: Anju T Sudhakar <anju@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200313055238.8656-1-anju@linux.vnet.ibm.com
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions