[PATCH v2 03/10] powerpc/xmon: Add PowerISA v3.1 PMU SPRs
Athira Rajeev
atrajeev at linux.vnet.ibm.com
Thu Jul 9 11:57:46 AEST 2020
> On 08-Jul-2020, at 4:34 PM, Michael Ellerman <mpe at ellerman.id.au> wrote:
>
> Athira Rajeev <atrajeev at linux.vnet.ibm.com <mailto:atrajeev at linux.vnet.ibm.com>> writes:
>> From: Madhavan Srinivasan <maddy at linux.ibm.com>
>>
>> PowerISA v3.1 added three new perfromance
>> monitoring unit (PMU) speical purpose register (SPR).
>> They are Monitor Mode Control Register 3 (MMCR3),
>> Sampled Instruction Event Register 2 (SIER2),
>> Sampled Instruction Event Register 3 (SIER3).
>>
>> Patch here adds a new dump function dump_310_sprs
>> to print these SPR values.
>>
>> Signed-off-by: Madhavan Srinivasan <maddy at linux.ibm.com>
>> ---
>> arch/powerpc/xmon/xmon.c | 15 +++++++++++++++
>> 1 file changed, 15 insertions(+)
>>
>> diff --git a/arch/powerpc/xmon/xmon.c b/arch/powerpc/xmon/xmon.c
>> index 7efe4bc..8917fe8 100644
>> --- a/arch/powerpc/xmon/xmon.c
>> +++ b/arch/powerpc/xmon/xmon.c
>> @@ -2022,6 +2022,20 @@ static void dump_300_sprs(void)
>> #endif
>> }
>>
>> +static void dump_310_sprs(void)
>> +{
>> +#ifdef CONFIG_PPC64
>> + if (!cpu_has_feature(CPU_FTR_ARCH_31))
>> + return;
>> +
>> + printf("mmcr3 = %.16lx\n",
>> + mfspr(SPRN_MMCR3));
>> +
>> + printf("sier2 = %.16lx sier3 = %.16lx\n",
>> + mfspr(SPRN_SIER2), mfspr(SPRN_SIER3));
>
> Why not all on one line like many of the others?
Sure, will change this to one line
Thanks
Athira
>
> cheers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20200709/b2c41eb3/attachment-0001.htm>
More information about the Linuxppc-dev
mailing list