diff --git a/smartperf_device/device_command/include/common.h b/smartperf_device/device_command/include/common.h index 0644fab88674b3853e3769d4e0f00e73d3466d76..0b966f5fed0821a9f06201aa434228944c66a41c 100644 --- a/smartperf_device/device_command/include/common.h +++ b/smartperf_device/device_command/include/common.h @@ -147,20 +147,35 @@ const std::unordered_map COMMAND_MAP = { { std::string("-PKG"), CommandType::CT_PKG }, { std::string("-PID"), CommandType::CT_PID }, { std::string("-OUT"), CommandType::CT_OUT }, + { std::string("-c"), CommandType::CT_C }, { std::string("-CPU"), CommandType::CT_C }, + { std::string("-g"), CommandType::CT_G }, { std::string("-GPU"), CommandType::CT_G }, + { std::string("-f"), CommandType::CT_F }, { std::string("-FPS"), CommandType::CT_F }, { std::string("-LOW_POWER"), CommandType::CT_F }, + { std::string("-fds"), CommandType::CT_FDS }, { std::string("-FDS"), CommandType::CT_FDS }, + { std::string("-t"), CommandType::CT_T }, { std::string("-TEMP"), CommandType::CT_T }, + { std::string("-p"), CommandType::CT_P }, { std::string("-POWER"), CommandType::CT_P }, + { std::string("-print"), CommandType::CT_PRINT }, + { std::string("-r"), CommandType::CT_R }, { std::string("-RAM"), CommandType::CT_R }, { std::string("-TRACE"), CommandType::CT_TRACE }, + { std::string("-threads"), CommandType::CT_THREADS }, + { std::string("-snapshot"), CommandType::CT_SNAPSHOT }, + { std::string("-SCREEN"), CommandType::CT_SNAPSHOT }, + { std::string("-d"), CommandType::CT_D }, { std::string("-DDR"), CommandType::CT_D }, { std::string("-INTERVAL"), CommandType::CT_INTERVAL }, { std::string("-SESSIONID"), CommandType::CT_SESSIONID }, + { std::string("-net"), CommandType::CT_NET }, { std::string("-NET"), CommandType::CT_NET }, { std::string("-VIEW"), CommandType::CT_VIEW }, + { std::string("-fl"), CommandType::CT_FL }, + { std::string("-ftl"), CommandType::CT_FTL }, { std::string("-gc"), CommandType::CT_GC }, { std::string("-GPU_COUNTER"), CommandType::CT_GC }, { std::string("-nav"), CommandType::CT_NAV }, diff --git a/smartperf_device/device_command/utils/include/sp_utils.h b/smartperf_device/device_command/utils/include/sp_utils.h index 3e3a571728d18e9d6a2b883278bef013b01390be..8d759d5693a53d1c8db8a684ac7baf5dfb982485 100644 --- a/smartperf_device/device_command/utils/include/sp_utils.h +++ b/smartperf_device/device_command/utils/include/sp_utils.h @@ -148,6 +148,9 @@ bool VeriyKey(std::set& keys, std::map& m bool VerifyValueStr(std::map& mapInfo, std::string& errorInfo); bool IntegerValueVerification(std::set &keys, std::map &mapInfo, std::string &errorInfo); +bool RemSpaceAndTraPara(std::vector& outParam, std::map& mapInfo, + std::string &errorInfo); +bool IsInvalidInputfromComParam(const std::string& param, std::string &errorInfo); bool IsHmKernel(); std::string GetCpuNum(); void GetCurrentTime(int prevTime);