Add the name of the forEach functions to the tracing output
Instead of showing up as 'runForEach', kernels are now e.g. printed as
'runForEach_createAntLookup'.
The String8 is carefully constructed here, such that we only pay
the string processing overhead in case tracing is actually enabled.
Change-Id: Id18319e271a02cbe888bcb9fe806794007d00fca
diff --git a/cpu_ref/rsCpuScript.cpp b/cpu_ref/rsCpuScript.cpp
index 4ba60d3..6f605c2 100644
--- a/cpu_ref/rsCpuScript.cpp
+++ b/cpu_ref/rsCpuScript.cpp
@@ -493,6 +493,7 @@
// Copy info over to runtime
script->mHal.info.exportedFunctionCount = info->getExportFuncNames().size();
script->mHal.info.exportedVariableCount = info->getExportVarNames().size();
+ script->mHal.info.exportedForeachFuncList = info->getExportForeachFuncs().array();
script->mHal.info.exportedPragmaCount = info->getPragmas().size();
script->mHal.info.exportedPragmaKeyList =
const_cast<const char**>(mExecutable->getPragmaKeys().array());