diff --git a/pmu/pfm/core.cpp b/pmu/pfm/core.cpp index 6c78ec4cd6c509422cf44174d395e3b2ee15ffb7..97fda80d7a9981a21bd5f5a5a0670054f32c7462 100644 --- a/pmu/pfm/core.cpp +++ b/pmu/pfm/core.cpp @@ -833,6 +833,8 @@ const std::unordered_map HIP_B_CORE_PMU_MA HARDWARE_EVENT::IDLE_CYCLES_BACKEND, HARDWARE_EVENT::IDLE_CYCLES_FRONTED, HW_CACHE_EVENT::L1_DCACHE_LOAD_MISSES, + HW_CACHE_EVENT::L1_DCACHE_LOADS, + HW_CACHE_EVENT::L1_ICACHE_LOAD_MISSES, HW_CACHE_EVENT::L1_ICACHE_LOADS, HW_CACHE_EVENT::LLC_LOAD_MISSES, HW_CACHE_EVENT::LLC_LOADS, @@ -870,6 +872,7 @@ const std::unordered_map HIP_C_CORE_PMU_MA HARDWARE_EVENT::IDLE_CYCLES_BACKEND, HARDWARE_EVENT::IDLE_CYCLES_FRONTED, HW_CACHE_EVENT::L1_DCACHE_LOAD_MISSES, + HW_CACHE_EVENT::L1_DCACHE_LOADS, HW_CACHE_EVENT::L1_ICACHE_LOAD_MISSES, HW_CACHE_EVENT::L1_ICACHE_LOADS, HW_CACHE_EVENT::LLC_LOAD_MISSES, diff --git a/symbol/symbol_resolve.cpp b/symbol/symbol_resolve.cpp index 974fb6d4c7bda9f1235da6bfba511c6ae8ffb221..70aa079e4eddf8fd7b1f590e884d29f3ec76368e 100644 --- a/symbol/symbol_resolve.cpp +++ b/symbol/symbol_resolve.cpp @@ -357,24 +357,6 @@ unsigned long SymbolUtils::SymStoul(const std::string& addrStr) } } -std::string SymbolUtils::RealPath(const std::string& filePath) -{ - char buff[PATH_MAX] = {0}; - if (realpath(filePath.c_str(), buff)) { - return std::string{buff}; - } else { - return std::string{}; - } -} - -bool SymbolUtils::IsValidPath(const std::string& filePath) -{ - if (filePath.empty()) { - return false; - } - return true; -} - bool SymbolUtils::IsNumber(const std::string& str) { for (int i = 0; i < str.length(); i++) { diff --git a/symbol/symbol_resolve.h b/symbol/symbol_resolve.h index ae0c0d6435977ec91fef5decb048a1bb023bb8fb..18b6c309a283087dad558953cd95d134f7d731cb 100644 --- a/symbol/symbol_resolve.h +++ b/symbol/symbol_resolve.h @@ -139,8 +139,6 @@ namespace KUNPENG_SYM { static void FreeSymbol(struct Symbol* symbol); static bool IsFile(const char* fileName); static unsigned long SymStoul(const std::string& addrStr); - static std::string RealPath(const std::string& filePath); - static bool IsValidPath(const std::string& filePath); static bool IsNumber(const std::string& str); static void FreeStackAsm(struct StackAsm** stackAsm); static void StrCpy(char* dst, int dstLen, const char* src);