I am trying to trace kernel functions and I am using -finstrument-functions
to do that, but I get undefined reference errors as below:
arch/arm/kernel/elf.c:9: undefined reference to `__cyg_profile_func_enter'
arch/arm/kernel/elf.c:13: undefined reference to `__cyg_profile_func_exit'
arch/arm/kernel/built-in.o: In function `elf_set_personality':
arch/arm/kernel/elf.c:42: undefined reference to `__cyg_profile_func_enter'
arch/arm/kernel/elf.c:75: undefined reference to `__cyg_profile_func_exit'
There are many more errors similar to above in drivers
also.
I have exported the __cyg_profile_func_enter
and __cyg_profile_func_exit
symbols, but still I get this error. I use linux 4.1 kernel
and arm board.