blob: 6adfef143ab07d7f8433ce518c8e83f8862212cd [file] [log] [blame]
George Liuff92ffe2021-02-09 15:01:53 +08001#include "config.h"
2
3#include "ramoops_manager.hpp"
4
5#include <phosphor-logging/elog-errors.hpp>
Dhruvaraj Subhashchandrand1f670f2023-06-05 22:19:25 -05006#include <phosphor-logging/lg2.hpp>
George Liuff92ffe2021-02-09 15:01:53 +08007
8int main()
9{
Patrick Williamse9ec9522025-02-05 16:49:52 -050010 std::filesystem::path filePath(SYSTEMD_PSTORE_PATH);
11 if (!std::filesystem::exists(filePath))
George Liuff92ffe2021-02-09 15:01:53 +080012 {
Dhruvaraj Subhashchandrand1f670f2023-06-05 22:19:25 -050013 lg2::error("Pstore file path is not exists, FILE_PATH: {FILE_PATH}",
14 "FILE_PATH", filePath);
George Liuff92ffe2021-02-09 15:01:53 +080015 return EXIT_FAILURE;
16 }
17
18 phosphor::dump::ramoops::Manager manager(SYSTEMD_PSTORE_PATH);
19
20 return EXIT_SUCCESS;
21}