blob: 6bd09e8080e0b2bbdf63dd52024ed18976d76b37 [file] [log] [blame]
Matthew Fernandez6bd01162015-02-07 14:05:37 +11001/*
Gerwin Klein600fe152021-02-10 19:19:17 +11002 * Copyright 2017, Data61, CSIRO (ABN 41 687 119 230)
Matthew Fernandez6bd01162015-02-07 14:05:37 +11003 *
Gerwin Klein600fe152021-02-10 19:19:17 +11004 * SPDX-License-Identifier: BSD-2-Clause
Matthew Fernandez6bd01162015-02-07 14:05:37 +11005 */
6
Anna Lyons135c6512017-09-28 12:16:03 +10007#pragma once
Matthew Fernandez6bd01162015-02-07 14:05:37 +11008
9/* Instrumentation functions that are optionally provided by this library.
10 * These need to be explicitly tagged as no_instrument_function or GCC will
11 * instrument the instrumentation functions themselves causing infinite
12 * recursion. Why it would ever be desirable to instrument your instrumentation
13 * is left as an exercise to the reader.
14 */
15
16void __cyg_profile_func_enter(void *func, void *caller)
17__attribute__((no_instrument_function));
18
19void __cyg_profile_func_exit(void *func, void *caller)
20__attribute__((no_instrument_function));
21