diff options
author | Anju T Sudhakar <anju@linux.vnet.ibm.com> | 2019-04-16 11:48:28 +0200 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2019-05-02 18:54:59 +0200 |
commit | dd50cf7cbc7bdd86483b797ac3d27b37d5aeeaa4 (patch) | |
tree | a43a33c69eeca0b89636d840f1cf4ba42270842f /scripts/extract_xc3028.pl | |
parent | powerpc/include: Add data structures and macros for IMC trace mode (diff) | |
download | linux-dd50cf7cbc7bdd86483b797ac3d27b37d5aeeaa4.tar.xz linux-dd50cf7cbc7bdd86483b797ac3d27b37d5aeeaa4.zip |
powerpc/perf: Rearrange setting of ldbar for thread-imc
LDBAR holds the memory address allocated for each cpu. For thread-imc
the mode bit (i.e bit 1) of LDBAR is set to accumulation.
Currently, ldbar is loaded with per cpu memory address and mode set to
accumulation at boot time.
To enable trace-imc, the mode bit of ldbar should be set to 'trace'. So to
accommodate trace-mode of IMC, reposition setting of ldbar for thread-imc
to thread_imc_event_add(). Also reset ldbar at thread_imc_event_del().
Signed-off-by: Anju T Sudhakar <anju@linux.vnet.ibm.com>
Reviewed-by: Madhavan Srinivasan <maddy@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'scripts/extract_xc3028.pl')
0 files changed, 0 insertions, 0 deletions