blob: 836a19a8d2cbe034e1d0031ff1eaa28083ef93d1 [file] [log] [blame]
Dhruvaraj Subhashchandran8b9b4692020-09-24 11:59:42 -05001#include "config.h"
2
3#include "dump-extensions.hpp"
4
Dhruvaraj Subhashchandran796a92e2021-05-05 13:15:24 -05005#include "dump-extensions/openpower-dumps/openpower_dumps_config.h"
6
Dhruvaraj Subhashchandran62337a92020-11-22 21:24:30 -06007#include "dump_manager_resource.hpp"
Dhruvaraj Subhashchandran8b9b4692020-09-24 11:59:42 -05008#include "dump_manager_system.hpp"
9
10namespace phosphor
11{
12namespace dump
13{
14
Patrick Williams9b18bf22022-07-22 19:26:55 -050015void loadExtensions(sdbusplus::bus_t& bus, DumpManagerList& dumpList)
Dhruvaraj Subhashchandran8b9b4692020-09-24 11:59:42 -050016{
Dhruvaraj Subhashchandran341d6832021-01-15 06:28:04 -060017 dumpList.push_back(std::make_unique<openpower::dump::system::Manager>(
Dhruvaraj Subhashchandran8b9b4692020-09-24 11:59:42 -050018 bus, SYSTEM_DUMP_OBJPATH, SYSTEM_DUMP_OBJ_ENTRY));
Dhruvaraj Subhashchandran341d6832021-01-15 06:28:04 -060019 dumpList.push_back(std::make_unique<openpower::dump::resource::Manager>(
Dhruvaraj Subhashchandran62337a92020-11-22 21:24:30 -060020 bus, RESOURCE_DUMP_OBJPATH, RESOURCE_DUMP_OBJ_ENTRY));
Dhruvaraj Subhashchandran8b9b4692020-09-24 11:59:42 -050021}
22} // namespace dump
23} // namespace phosphor