Lines Matching +full:entry +full:- +full:method

8  *     http://www.apache.org/licenses/LICENSE-2.0
26 #include <phosphor-logging/log.hpp>
29 #include <xyz/openbmc_project/Logging/Entry/server.hpp>
48 {"tach", method::getTach}, {"gpio", method::getGpio}};
69 p->monitor(); in start()
93 p->monitor(); in sighupHandler()
100 entry("LOAD_ERROR=%s", re.what())); in sighupHandler()
118 entry("REQUIRED_PROPERTIES=%s", in process()
126 for (auto& method : member["methods"].items()) in process() local
128 if (!method.value().contains("type")) in process()
131 "Missing required fan presence method type", in process()
132 entry("FAN_NAME=%s", in process()
135 "Missing required fan presence method type"); in process()
137 // The method type of fan presence detection in process()
138 // (Must have a supported function within the method namespace) in process()
139 auto type = method.value()["type"].get<std::string>(); in process()
144 // Call function for method type in process()
145 auto sensor = func->second(fans.size(), method.value()); in process()
154 "Invalid fan presence method type", in process()
155 entry("FAN_NAME=%s", in process()
157 entry("METHOD_TYPE=%s", type.c_str())); in process()
158 throw std::runtime_error("Invalid fan presence method type"); in process()
181 entry("FAN_NAME=%s", in process()
232 entry("FAN_NAME=%s", in getPolicy()
234 entry("REQUIRED_PROPERTIES=%s", "{type}")); in getPolicy()
246 return func->second(fpolicy, std::move(eepromDevice)); in getPolicy()
252 entry("FAN_NAME=%s", in getPolicy()
254 entry("RPOLICY_TYPE=%s", type.c_str())); in getPolicy()
262 namespace method namespace
265 std::unique_ptr<PresenceSensor> getTach(size_t fanIndex, const json& method) in getTach() argument
267 if (!method.contains("sensors") || method["sensors"].size() == 0) in getTach()
269 log<level::ERR>("Missing required tach method properties", in getTach()
270 entry("FAN_ENTRY=%d", fanIndex), in getTach()
271 entry("REQUIRED_PROPERTIES=%s", "{sensors}")); in getTach()
272 throw std::runtime_error("Missing required tach method properties"); in getTach()
276 for (auto& sensor : method["sensors"]) in getTach()
286 std::unique_ptr<PresenceSensor> getGpio(size_t fanIndex, const json& method) in getGpio() argument
288 if (!method.contains("physpath") || !method.contains("devpath") || in getGpio()
289 !method.contains("key")) in getGpio()
292 "Missing required gpio method properties", in getGpio()
293 entry("FAN_ENTRY=%d", fanIndex), in getGpio()
294 entry("REQUIRED_PROPERTIES=%s", "{physpath, devpath, key}")); in getGpio()
295 throw std::runtime_error("Missing required gpio method properties"); in getGpio()
298 auto physpath = method["physpath"].get<std::string>(); in getGpio()
299 auto devpath = method["devpath"].get<std::string>(); in getGpio()
300 auto key = method["key"].get<unsigned int>(); in getGpio()
318 sdlogging::convertForMessage(sdlogging::Entry::Level::Error); in getGpio()
335 "presence-sensor failure failed: {}", in getGpio()
344 } // namespace method