diff options
author | Kristofer Jonsson <kristofer.jonsson@arm.com> | 2022-09-29 11:52:22 +0200 |
---|---|---|
committer | Kristofer Jonsson <kristofer.jonsson@arm.com> | 2022-10-19 09:18:46 +0200 |
commit | e56b6e4bd75c7ccec69f20b17c1e2d48b7c0892c (patch) | |
tree | aa7838114949917bcd8846a448d7f7921522711f /targets | |
parent | 01c32d4768d8176a32c193f44069da1f43fbf513 (diff) | |
download | ethos-u-core-platform-e56b6e4bd75c7ccec69f20b17c1e2d48b7c0892c.tar.gz |
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
Diffstat (limited to 'targets')
-rw-r--r-- | targets/corstone-300/CMakeLists.txt | 5 | ||||
-rw-r--r-- | targets/corstone-300/event_recorder/EventRecorderConf.h | 47 |
2 files changed, 52 insertions, 0 deletions
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 <open-source-office@arm.com> + * + * 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 >>> -------------------- + +// <h>Event Recorder + +// <o>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 +// <i>Configures size of Event Record Buffer (each record is 16 bytes) +// <i>Must be 2^n (min=8, max=65536) +#define EVENT_RECORD_COUNT 1024U + +// <o>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) +// <i>Selects source for 32-bit time stamp +#define EVENT_TIMESTAMP_SOURCE 0 + +// <o>Time Stamp Clock Frequency [Hz] <0-1000000000> +// <i>Defines initial time stamp clock frequency (0 when not used) +#define EVENT_TIMESTAMP_FREQ 0U + +// </h> + +//------------- <<< end of configuration section >>> --------------------------- |