powerpc/perf: Export memory hierarchy info to user space
authorMadhavan Srinivasan <maddy@linux.vnet.ibm.com>
Tue, 11 Apr 2017 01:51:06 +0000 (07:21 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 19 Apr 2017 10:00:21 +0000 (20:00 +1000)
commit79e96f8f930d425ab48c511f8a6db16ca7fc68b1
tree3387541ca447b33b95fdbd736e392098bc392143
parent8c5073db0ee680c7e70e123918c9b260e49f757d
powerpc/perf: Export memory hierarchy info to user space

The LDST field and DATA_SRC in SIER identifies the memory hierarchy level
(eg: L1, L2 etc), from which a data-cache miss for a marked instruction
was satisfied. Use the 'perf_mem_data_src' object to export this
hierarchy level to user space.

Signed-off-by: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/perf_event_server.h
arch/powerpc/perf/core-book3s.c
arch/powerpc/perf/isa207-common.c
arch/powerpc/perf/isa207-common.h