@DBrisingr @ShaneCCC This build error cause after I add -finstrument-functions flag to KBUILD_CFLAGS. The complete log after this change please check attached ff.log.
And later I add attribute ((no_instrument_function)) to the function rise above error. Then there’s not compiling error, but report section mismatch error when link vmlinux. Please check attached ff_aa.log.
Follow the note, set CONFIG_SECTION_MISMATCH_WARN_ONLY=y to the project config, the build success finally-check ff_smwo.log. But once I run the test, the HDMI output chaos firstly, then system freeze and reboot.
For more detail about this issue and background. I suspect there’s a memory overflow access in my system. So i want to use GCC finstrument-function which could set a hook to each function entry and exit to locate this issue. Refer to http://www.logix.cz/michal/devel/CygProfiler/cyg-profile.c.
Could you please help to verify on your build and fix this? Thanks!
BTW no other modification to build command/configuration.ff.log (38.9 KB) ff_aa.log (22.1 KB) ff_smwo.log (21.1 KB)