Thread (8 messages) 8 messages, 3 authors, 2014-06-12

Re: [PATCH] powerpc, xmon: Enable hardware instruction breakpoint support on POWER8

From: Anshuman Khandual <hidden>
Date: 2014-06-03 08:33:39

On 06/02/2014 02:18 PM, Anshuman Khandual wrote:
On 06/01/2014 11:48 AM, Michael Neuling wrote:
quoted
quoted
On Fri, 2014-05-30 at 17:40 +0530, Anshuman Khandual wrote:
quoted
quoted
This patch enables support for hardware instruction breakpoints on POWER8 with
the help of a new register called CIABR (Completed Instruction Address Breakpoint
Register). With this patch, single hardware instruction breakpoint can be added
and cleared during any active xmon debug session. This hardware based instruction
breakpoint mechanism works correctly along with the existing TRAP based instruction
breakpoints available on xmon. Example usage as follows.
Have you actually tried this on a guest?
Yeah on a guest which runs on PVM.
quoted
quoted
Please also compile with a range of configs.  It doesn't compile with
ppc64e_defconfig.
Yeah. Need to change the way we get the "plapr_set_ciabr" function from plpar_wrappers.h
header file. Will add this hunk of code in "xmon.h" header and remove the CONFIG_PPC64 ifdef
code from the function write_ciabr.

+#ifdef CONFIG_PPC_BOOK3S_64
"#if defined(CONFIG_PPC_BOOK3S_64) && defined(CONFIG_PPC_SPLPAR)" here actually makes it build
on all these configurations listed below.

pseries_defconfig
ppc64_defconfig
ppc64e_defconfig
pmac32_defconfig
ppc44x_defconfig
ppc6xx_defconfig
mpc85xx_smp_defconfig
mpc85xx_defconfig
chroma_defconfig
ps3_defconfig
celleb_defconfig
allnoconfig
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help