blob: 45864ca5dd214b9a9cd8d4896bbe7c72ad13b165 [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{
17
Dhruvaraj Subhashchandran341d6832021-01-15 06:28:04 -060018 dumpList.push_back(std::make_unique<openpower::dump::system::Manager>(
Dhruvaraj Subhashchandran8b9b4692020-09-24 11:59:42 -050019 bus, SYSTEM_DUMP_OBJPATH, SYSTEM_DUMP_OBJ_ENTRY));
Dhruvaraj Subhashchandran341d6832021-01-15 06:28:04 -060020 dumpList.push_back(std::make_unique<openpower::dump::resource::Manager>(
Dhruvaraj Subhashchandran62337a92020-11-22 21:24:30 -060021 bus, RESOURCE_DUMP_OBJPATH, RESOURCE_DUMP_OBJ_ENTRY));
Dhruvaraj Subhashchandran8b9b4692020-09-24 11:59:42 -050022}
23} // namespace dump
24} // namespace phosphor