When adding sysMon Markers enable and disable apis to application code, in my case to examples/fastcv/cornerApp/src/cornerApp.c, and building using
make tree V=android_Debug_aarch64 CDSP=1
The build fails due to undefined reference when linking
hexagon_sdk-3-5-1/examples/fastcv/cornerApp/src/cornerApp.c:157: undefined reference to `HP_profile`
hexagon_sdk-3-5-1/examples/fastcv/cornerApp/src/cornerApp.c:171: undefined reference to `HP_profile`
clang++: error linker command failed with exit code 1 (use -v to see invocation)
I followed the instructions under 'Using Sysmon Markers' in the documentation. Namely adding the #include <sysmon_marker.h> (also tried extern HP_profile(uint_32 Marker ID, boolean enable);) and then calling the HP_profile function.
It is not clear which library this API is attached to for linking and there are no examples of its use in the codebase.
Am I missing some important steps here?