blob: f9e41e899b6fad5efd8c90931492df4cb67e5ecc [file] [log] [blame]
Chun-Ta Lin32b8a512019-03-25 18:53:40 +08001// Copyright 2019 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
5#ifndef DEBUGD_SRC_PROBE_TOOL_H_
6#define DEBUGD_SRC_PROBE_TOOL_H_
7
8#include <string>
9
10#include <base/macros.h>
11#include <brillo/errors/error.h>
12
13namespace debugd {
14
15class ProbeTool {
16 public:
17 ProbeTool() = default;
18 ~ProbeTool() = default;
19
20 // Executes the function defined for runtime_probe.
21 bool EvaluateProbeFunction(
22 brillo::ErrorPtr* error, const std::string& sandbox_info,
23 const std::string& probe_statement, std::string* probe_result,
24 int32_t* exit_code);
25
26 private:
27 DISALLOW_COPY_AND_ASSIGN(ProbeTool);
28};
29
30} // namespace debugd
31
32#endif // DEBUGD_SRC_PROBE_TOOL_H_