7dfbd14eba
Add registration function instrumentation API, which can achieve instrumentation of entering and exiting functions through the compiler's functionality. We can use CONFIG_ARCH_INSTRUMENT_ALL to add instrumentation for all source, or add '-finstrument-functions' to CFLAGS for Part of the source. Notice: 1. use CONFIG_ARCH_INSTRUMENT_ALL must mark _start or entry noinstrument_function, becuase bss not set. 2. Make sure your callbacks are not instrumented recursively. use instrument_register to register entry function and exit function. They will be called by the instrumented function Signed-off-by: anjiahao <anjiahao@xiaomi.com> |
||
---|---|---|
.. | ||
arm | ||
arm64 | ||
avr | ||
dummy | ||
hc/m9s12 | ||
mips | ||
misoc/lm32/misoc | ||
or1k/mor1kx/or1k | ||
renesas | ||
risc-v | ||
sim/sim/sim | ||
sparc | ||
x86/qemu/qemu-i486 | ||
x86_64/intel64/qemu-intel64 | ||
xtensa | ||
z16/z16f/z16f2800100zcog | ||
z80 | ||
.gitignore | ||
Board.mk | ||
boardctl.c | ||
CMakeLists.txt | ||
dummy.c | ||
Kconfig | ||
Makefile |