Skip to content
Commit e8867bd5 authored by Suman Ghosh's avatar Suman Ghosh Committed by Ruiqiang Hao
Browse files

coresight: cpu-debug: Add support to dump PMPCSR



commit f5f4a285b3fe4c6dc29b1617333510f67bce62d3 from
git@git.assembla.com:cavium/WindRiver.linux.git

For ARM cores implementing FEAT_PCSRv8p2, the PC Sample-based
profiling registers are implemented the External PMU register
space. Hence, detect this feature and read PCSR accordingly.

Also introduce a new API, print_arch_cpu_state() which prints
the PC value along with execution state. Thi can be used by
other modules in the kernel for debugging purposes.

Change-Id: Ia73dd0e733b24f84770934ca2f31a81ee0f4197b
Signed-off-by: default avatarSuman Ghosh <sumang@marvell.com>
Signed-off-by: default avatarTanmay Jagdale <tanmay@marvell.com>
Reviewed-on: https://sj1git1.cavium.com/c/IP/SW/kernel/linux/+/102608


Reviewed-by: default avatarLinu Cherian <lcherian@marvell.com>
Tested-by: default avatarLinu Cherian <lcherian@marvell.com>
Signed-off-by: default avatarRuiqiang Hao <Ruiqiang.Hao@windriver.com>
parent 3c6e96da
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment