Lines Matching defs:std
27 const std::string cpuctlGroupIvePath = "/dev/cpuctl/cam2stage";
28 const std::string cpusetGroupIvePath = "/dev/cpuset/cam2stage";
29 const std::string cpuThreadNode = "/tasks";
30 const std::string cpuSharesNode = "/cpu.shares";
31 const std::string cpuMapNode = "/cpus";
33 const std::string cpuUclampminNode = "/load.min";
34 const std::string cpuUclampmaxNode = "/load.max";
36 const std::string cpuUclampminNode = "/cpu.uclamp.min";
37 const std::string cpuUclampmaxNode = "/cpu.uclamp.max";
38 const std::string cpuLatencyniceNode = "/cpu.latency.nice";
39 const std::string cpuvipprioNode = "/cpu.vip_prio";
61 bool CheckSchedAttrPara(const std::string &name, int min, int max, int paraValue);
63 void SetCGroupCtlPara(const std::string &name, int32_t value);
64 void SetCGroupSetPara(const std::string &name, const std::string &value);
66 void SetTidToCGroupPrivate(const std::string &filename, int32_t pid);
68 void SetCGroupPara(const std::string &filename, T& value)
87 std::string valueStr;
88 if constexpr (std::is_same<T, int32_t>::value) {
89 valueStr = std::to_string(value);
90 } else if constexpr (std::is_same<T, const std::string>::value) {
107 std::array<char, bufferLen> buffer {};