blob: e0198c9bdca24b6767028d0920f23d5fccf9de52 [file] [log] [blame]
// Copyright 2016 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef DEBUGD_SRC_OOM_ADJ_TOOL_H_
#define DEBUGD_SRC_OOM_ADJ_TOOL_H_
#include <stdint.h>
#include <sys/types.h>
#include <map>
#include <string>
#include <base/macros.h>
#include "debugd/src/subprocess_tool.h"
namespace debugd {
class OomAdjTool : public SubprocessTool {
public:
OomAdjTool() = default;
OomAdjTool(const OomAdjTool&) = delete;
OomAdjTool& operator=(const OomAdjTool&) = delete;
~OomAdjTool() override = default;
std::string Set(const std::map<pid_t, int32_t>& scores);
};
} // namespace debugd
#endif // DEBUGD_SRC_OOM_ADJ_TOOL_H_