| 222 | } |
| 223 | |
| 224 | static std::string GetModuleName(uintptr_t PC) { |
| 225 | char ModulePathRaw[4096] = ""; // What's PATH_MAX in portable C++? |
| 226 | void *OffsetRaw = nullptr; |
| 227 | if (!EF->__sanitizer_get_module_and_offset_for_pc( |
| 228 | reinterpret_cast<void *>(PC), ModulePathRaw, |
| 229 | sizeof(ModulePathRaw), &OffsetRaw)) |
| 230 | return ""; |
| 231 | return ModulePathRaw; |
| 232 | } |
| 233 | |
| 234 | template<class CallBack> |
| 235 | void TracePC::IterateCoveredFunctions(CallBack CB) { |
no outgoing calls
no test coverage detected