From e56b6e4bd75c7ccec69f20b17c1e2d48b7c0892c Mon Sep 17 00:00:00 2001 From: Kristofer Jonsson Date: Thu, 29 Sep 2022 11:52:22 +0200 Subject: Ethos-U PMU monitor Add Python script demonstrating how to download performance data from device. Write baremetal PMU events to Event Recorder ring buffer and increase the systick sample rate. Change-Id: Ib73c56100a8de2d7b74c455d8f80cda0b59383da --- targets/corstone-300/CMakeLists.txt | 5 +++ .../event_recorder/EventRecorderConf.h | 47 ++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 targets/corstone-300/event_recorder/EventRecorderConf.h (limited to 'targets/corstone-300') diff --git a/targets/corstone-300/CMakeLists.txt b/targets/corstone-300/CMakeLists.txt index b129b71..b76c474 100644 --- a/targets/corstone-300/CMakeLists.txt +++ b/targets/corstone-300/CMakeLists.txt @@ -132,6 +132,11 @@ if (TARGET ethosu_core_driver) ETHOSU) endif() +if (TARGET event_recorder) + target_include_directories(event_recorder BEFORE INTERFACE + event_recorder) +endif() + ############################################################################### # Applications ############################################################################### diff --git a/targets/corstone-300/event_recorder/EventRecorderConf.h b/targets/corstone-300/event_recorder/EventRecorderConf.h new file mode 100644 index 0000000..396cfd9 --- /dev/null +++ b/targets/corstone-300/event_recorder/EventRecorderConf.h @@ -0,0 +1,47 @@ +/* + * SPDX-FileCopyrightText: Copyright 2016-2022 Arm Limited and/or its affiliates + * + * SPDX-License-Identifier: Apache-2.0 + * + * Licensed under the Apache License, Version 2.0 (the License); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an AS IS BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * Name: EventRecorderConf.h + * Purpose: Event Recorder software component configuration options + * Rev.: V1.1.0 + */ + +//-------- <<< Use Configuration Wizard in Context Menu >>> -------------------- + +// Event Recorder + +// Number of Records +// <8=>8 <16=>16 <32=>32 <64=>64 <128=>128 <256=>256 <512=>512 <1024=>1024 +// <2048=>2048 <4096=>4096 <8192=>8192 <16384=>16384 <32768=>32768 +// <65536=>65536 +// Configures size of Event Record Buffer (each record is 16 bytes) +// Must be 2^n (min=8, max=65536) +#define EVENT_RECORD_COUNT 1024U + +// Time Stamp Source +// <0=> DWT Cycle Counter <1=> SysTick <2=> CMSIS-RTOS2 System Timer +// <3=> User Timer (Normal Reset) <4=> User Timer (Power-On Reset) +// Selects source for 32-bit time stamp +#define EVENT_TIMESTAMP_SOURCE 0 + +// Time Stamp Clock Frequency [Hz] <0-1000000000> +// Defines initial time stamp clock frequency (0 when not used) +#define EVENT_TIMESTAMP_FREQ 0U + +// + +//------------- <<< end of configuration section >>> --------------------------- -- cgit v1.2.1