2018-10-15 01:35:07 +08:00
|
|
|
/*
|
2021-03-27 17:51:56 +08:00
|
|
|
* Copyright (c) 2006-2021, RT-Thread Development Team
|
2018-10-15 01:35:07 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*
|
|
|
|
* Change Logs:
|
|
|
|
* Date Author Notes
|
|
|
|
*/
|
2014-03-29 12:14:24 +08:00
|
|
|
#include <rtthread.h>
|
|
|
|
#include "pmu.h"
|
|
|
|
|
|
|
|
void rt_hw_pmu_dump_feature(void)
|
|
|
|
{
|
|
|
|
unsigned long reg;
|
|
|
|
|
|
|
|
reg = rt_hw_pmu_get_control();
|
|
|
|
rt_kprintf("ARM PMU Implementor: %c, ID code: %02x, %d counters\n",
|
|
|
|
reg >> 24, (reg >> 16) & 0xff, (reg >> 11) & 0x1f);
|
|
|
|
RT_ASSERT(ARM_PMU_CNTER_NR == ((reg >> 11) & 0x1f));
|
|
|
|
}
|