| /openbmc/phosphor-power/test/ |
| H A D | config_file_parser_error_tests.cpp | 26 std::filesystem::path pathName{"/etc/phosphor-regulators/foo.json"}; in TEST() local 27 ConfigFileParserError error{pathName, "Required property missing"}; in TEST() 28 EXPECT_EQ(error.getPathName(), pathName); in TEST() 36 std::filesystem::path pathName{"/usr/share/phosphor-regulators/foo.json"}; in TEST() local 37 ConfigFileParserError error{pathName, "Required property missing"}; in TEST() 38 EXPECT_EQ(error.getPathName(), pathName); in TEST() 43 std::filesystem::path pathName{"/etc/phosphor-regulators/foo.json"}; in TEST() local 44 ConfigFileParserError error{pathName, "Required property missing"}; in TEST()
|
| /openbmc/phosphor-power/ |
| H A D | config_file_parser_error.hpp | 47 explicit ConfigFileParserError(const std::filesystem::path& pathName, in ConfigFileParserError() argument 49 pathName{pathName}, in ConfigFileParserError() 50 error{"ConfigFileParserError: " + pathName.string() + ": " + error} 60 return pathName; in getPathName() 77 const std::filesystem::path pathName; member in phosphor::power::util::ConfigFileParserError
|
| /openbmc/phosphor-power/phosphor-regulators/src/ |
| H A D | manager.cpp | 267 fs::path pathName{testConfigFileDir / fileName}; in findConfigFile() local 268 if (fs::exists(pathName)) in findConfigFile() 270 return pathName; in findConfigFile() 274 pathName = standardConfigFileDir / fileName; in findConfigFile() 275 if (fs::exists(pathName)) in findConfigFile() 277 return pathName; in findConfigFile() 320 fs::path pathName = findConfigFile(); in loadConfigFile() local 321 if (!pathName.empty()) in loadConfigFile() 325 "Loading configuration file " + pathName.string()); in loadConfigFile() 330 std::tie(rules, chassis) = config_file_parser::parse(pathName); in loadConfigFile()
|
| H A D | config_file_parser.hpp | 72 parse(const std::filesystem::path& pathName);
|
| H A D | config_file_parser.cpp | 40 parse(const std::filesystem::path& pathName) in parse() argument 45 std::ifstream file{pathName}; in parse() 53 throw ConfigFileParserError{pathName, e.what()}; in parse()
|
| /openbmc/phosphor-power/phosphor-power-sequencer/src/ |
| H A D | config_file_parser.cpp | 45 fs::path pathName, possiblePath; in find() local 56 pathName = possiblePath; in find() 69 pathName = possiblePath; in find() 75 return pathName; in find() 79 const std::filesystem::path& pathName, Services& services) in parse() argument 84 std::ifstream file{pathName}; in parse() 92 throw ConfigFileParserError{pathName, e.what()}; in parse()
|
| H A D | config_file_parser.hpp | 81 const std::filesystem::path& pathName, Services& services);
|
| /openbmc/dbus-sensors/src/intrusion/ |
| H A D | IntrusionSensorMain.cpp | 284 const std::string& pathName = message.get_path(); in processLanStatusChange() local 306 size_t pos = pathName.find("/_"); in processLanStatusChange() 307 if (pos == std::string::npos || pathName.length() <= pos + 2) in processLanStatusChange() 309 lg2::error("unexpected path name '{NAME}'", "NAME", pathName); in processLanStatusChange() 312 std::string suffixStr = pathName.substr(pos + 2); in processLanStatusChange()
|
| /openbmc/phosphor-power/phosphor-power-sequencer/test/ |
| H A D | config_file_parser_tests.cpp | 50 void writeConfigFile(const fs::path& pathName, const std::string& contents) in writeConfigFile() argument 52 std::ofstream file{pathName}; in writeConfigFile() 56 void writeConfigFile(const fs::path& pathName, const json& contents) in writeConfigFile() argument 58 std::ofstream file{pathName}; in writeConfigFile() 271 fs::path pathName{configFile.getPath()}; in TEST() local 272 writeConfigFile(pathName, configFileContents); in TEST() 275 auto chassis = parse(pathName, services); in TEST() 288 fs::path pathName{"/tmp/non_existent_file"}; in TEST() local 290 EXPECT_THROW(parse(pathName, services), ConfigFileParserError); in TEST() 308 fs::path pathName{configFile.getPath()}; in TEST() local [all …]
|
| /openbmc/phosphor-power/cold-redundancy/ |
| H A D | cold_redundancy.cpp | 176 std::string pathName = object.first; in createPSU() local 255 serviceName.c_str(), pathName.c_str(), in createPSU()
|
| /openbmc/phosphor-power/phosphor-regulators/test/ |
| H A D | config_file_parser_tests.cpp | 75 void writeConfigFile(const std::filesystem::path& pathName, in writeConfigFile() argument 78 std::ofstream file{pathName}; in writeConfigFile() 82 void writeConfigFile(const std::filesystem::path& pathName, in writeConfigFile() argument 85 std::ofstream file{pathName}; in writeConfigFile() 118 std::filesystem::path pathName{configFile.getPath()}; in TEST() local 119 writeConfigFile(pathName, configFileContents); in TEST() 123 std::tie(rules, chassis) = parse(pathName); in TEST() 144 std::filesystem::path pathName{"/tmp/non_existent_file"}; in TEST() local 145 parse(pathName); in TEST() 165 std::filesystem::path pathName{configFile.getPath()}; in TEST() local [all …]
|
| /openbmc/intel-ipmi-oem/src/ |
| H A D | oemcommands.cpp | 2047 std::string pathName; in ipmiOEMSetFscParameter() local 2050 pathName = exitAirPathName; in ipmiOEMSetFscParameter() 2054 pathName = pchPathName; in ipmiOEMSetFscParameter() 2060 std::string path = getConfigPath(pathName); in ipmiOEMSetFscParameter() 2151 std::string pathName; in ipmiOEMGetFscParameter() local 2155 pathName = exitAirPathName; in ipmiOEMGetFscParameter() 2159 pathName = pchPathName; in ipmiOEMGetFscParameter() 2167 std::string path = getConfigPath(pathName); in ipmiOEMGetFscParameter() 3692 std::string pathName = object.first; in getPSUAddress() local 3700 ctx->yield, ec, serviceName, pathName, in getPSUAddress()
|
| /openbmc/ipmbbridge/ |
| H A D | ipmbbridged.cpp | 921 std::string pathName = message.get_path(); in addUpdateTargetAddrHandler() local 922 if (pathName != "/xyz/openbmc_project/MultiNode/Status") in addUpdateTargetAddrHandler()
|