Mikael Olsson | 578af8f | 2023-12-11 17:24:49 +0100 | [diff] [blame] | 1 | /* |
| 2 | * SPDX-FileCopyrightText: Copyright 2023 Arm Limited and/or its affiliates <open-source-office@arm.com> |
| 3 | * SPDX-License-Identifier: Apache-2.0 |
| 4 | * |
| 5 | * Licensed under the Apache License, Version 2.0 (the License); you may |
| 6 | * not use this file except in compliance with the License. |
| 7 | * You may obtain a copy of the License at |
| 8 | * |
| 9 | * www.apache.org/licenses/LICENSE-2.0 |
| 10 | * |
| 11 | * Unless required by applicable law or agreed to in writing, software |
| 12 | * distributed under the License is distributed on an AS IS BASIS, WITHOUT |
| 13 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | * See the License for the specific language governing permissions and |
| 15 | * limitations under the License. |
| 16 | */ |
| 17 | |
| 18 | #include "ethosu_profiler.hpp" |
| 19 | |
| 20 | #define UNUSED(x) ((void)x) |
| 21 | |
| 22 | void __attribute((weak)) ethosu_profiler_start(struct ethosu_profiler_context *ctx) { |
| 23 | UNUSED(ctx); |
| 24 | } |
| 25 | |
| 26 | void __attribute((weak)) ethosu_profiler_end(struct ethosu_profiler_context *ctx) { |
| 27 | UNUSED(ctx); |
| 28 | } |
| 29 | |
| 30 | void __attribute((weak)) ethosu_profiler_reset(struct ethosu_profiler_context *ctx) { |
| 31 | UNUSED(ctx); |
| 32 | } |
| 33 | |
| 34 | uint64_t __attribute((weak)) ethosu_profiler_get_pmu_cycles(struct ethosu_profiler_context *ctx) { |
| 35 | UNUSED(ctx); |
| 36 | return 0U; |
| 37 | } |
| 38 | |
| 39 | void __attribute((weak)) ethosu_profiler_add_to_pmu_cycles(struct ethosu_profiler_context *ctx, uint64_t cycles) { |
| 40 | UNUSED(ctx); |
| 41 | UNUSED(cycles); |
| 42 | } |
| 43 | |
| 44 | void __attribute((weak)) |
| 45 | ethosu_profiler_add_to_pmu_event(struct ethosu_profiler_context *ctx, uint32_t index, uint32_t value) { |
| 46 | UNUSED(ctx); |
| 47 | UNUSED(index); |
| 48 | UNUSED(value); |
| 49 | } |
| 50 | |
| 51 | void __attribute((weak)) ethosu_profiler_report(struct ethosu_profiler_context *ctx) { |
| 52 | UNUSED(ctx); |
| 53 | } |