7.76 --gnu_instrument, --no_gnu_instrument

Inserts GCC-style instrumentation calls for profiling entry and exit to functions.


The --gnu_instrument option is deprecated from ARM Compiler 5.05 onwards.


After function entry and before function exit, the following profiling functions are called with the address of the current function and its call site:
void __cyg_profile_func_enter(void *current_func, void *callsite);
void __cyg_profile_func_exit(void *current_func, void *callsite);


You must provide definitions of __cyg_profile_func_enter() and __cyg_profile_func_exit().
It is necessary to explicitly mark __cyg_profile_func_enter() and __cyg_profile_func_exit() with __attribute__((no_instrument_function)).
Related reference
9.38 __attribute__((no_instrument_function)) function attribute
Non-ConfidentialPDF file icon PDF versionARM DUI0375F
Copyright © 2007, 2008, 2011, 2012, 2014 ARM. All rights reserved.