Lines Matching +full:auto +full:- +full:string +full:- +full:detection

7 #include <phosphor-logging/elog-errors.hpp>
8 #include <phosphor-logging/lg2.hpp>
24 Manager::Manager(const std::string& filePath) in Manager()
37 std::vector<std::string> files; in Manager()
47 std::map<std::string, std::string> additionalData; in createError()
52 auto bus = sdbusplus::bus::new_default(); in createError()
53 auto method = bus.new_method_call( in createError()
61 auto resp = bus.call(method); in createError()
66 "sdbusplus D-Bus call exception, error {ERROR} trying to create " in createError()
67 "an error for ramoops detection", in createError()
69 // This is a best-effort logging situation so don't throw anything in createError()
73 lg2::error("D-bus call exception: {ERROR}", "ERROR", e); in createError()
74 // This is a best-effort logging situation so don't throw anything in createError()
78 void Manager::createHelper(const std::vector<std::string>& files) in createHelper()
80 constexpr auto MAPPER_BUSNAME = "xyz.openbmc_project.ObjectMapper"; in createHelper()
81 constexpr auto MAPPER_PATH = "/xyz/openbmc_project/object_mapper"; in createHelper()
82 constexpr auto MAPPER_INTERFACE = "xyz.openbmc_project.ObjectMapper"; in createHelper()
83 constexpr auto DUMP_CREATE_IFACE = "xyz.openbmc_project.Dump.Create"; in createHelper()
85 auto b = sdbusplus::bus::new_default(); in createHelper()
86 auto mapper = b.new_method_call(MAPPER_BUSNAME, MAPPER_PATH, in createHelper()
88 mapper.append(BMC_DUMP_OBJPATH, std::set<std::string>({DUMP_CREATE_IFACE})); in createHelper()
90 std::map<std::string, std::set<std::string>> mapperResponse; in createHelper()
93 auto mapperResponseMsg = b.call(mapper); in createHelper()
108 const auto& host = mapperResponse.cbegin()->first; in createHelper()
109 auto m = b.new_method_call(host.c_str(), BMC_DUMP_OBJPATH, in createHelper()