From 830da07a3257a295c192ac590a45ead269cf5702 Mon Sep 17 00:00:00 2001 From: "lijindong (C)" <2220386943@qq.com> Date: Tue, 9 Sep 2025 15:08:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=BC=BA=E5=B0=91=E7=9A=84?= =?UTF-8?q?=E4=BA=8B=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pmu/pfm/core.cpp | 3 +++ symbol/symbol_resolve.cpp | 18 ------------------ symbol/symbol_resolve.h | 2 -- 3 files changed, 3 insertions(+), 20 deletions(-) diff --git a/pmu/pfm/core.cpp b/pmu/pfm/core.cpp index 6c78ec4..97fda80 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 974fb6d..70aa079 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 ae0c0d6..18b6c30 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); -- Gitee