blob: 0a53c8bf3927d5f765f0dfdc9109e5da4f11ba80 [file] [log] [blame]
Yuly Novikov91404282013-06-26 19:36:58 -04001// Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
Alex Vakulenko262be3f2014-07-30 15:25:50 -07005#ifndef DEBUGD_SRC_SYSRQ_TOOL_H_
6#define DEBUGD_SRC_SYSRQ_TOOL_H_
Yuly Novikov91404282013-06-26 19:36:58 -04007
Ben Chan657bed82014-09-02 20:40:51 -07008#include <base/macros.h>
Eric Carusocc7106c2017-04-27 14:22:42 -07009#include <brillo/errors/error.h>
Yuly Novikov91404282013-06-26 19:36:58 -040010
11namespace debugd {
12
13class SysrqTool {
14 public:
Ben Chan78f89532014-08-29 09:35:09 -070015 SysrqTool() = default;
Qijiang Fan6bc59e12020-11-11 02:51:06 +090016 SysrqTool(const SysrqTool&) = delete;
17 SysrqTool& operator=(const SysrqTool&) = delete;
18
Ben Chan78f89532014-08-29 09:35:09 -070019 ~SysrqTool() = default;
Yuly Novikov91404282013-06-26 19:36:58 -040020
Eric Carusocc7106c2017-04-27 14:22:42 -070021 bool LogKernelTaskStates(brillo::ErrorPtr* error);
Yuly Novikov91404282013-06-26 19:36:58 -040022};
23
Ben Chana0011d82014-05-13 00:19:29 -070024} // namespace debugd
Yuly Novikov91404282013-06-26 19:36:58 -040025
Alex Vakulenko262be3f2014-07-30 15:25:50 -070026#endif // DEBUGD_SRC_SYSRQ_TOOL_H_