blob: 197c5061669e5430af42ea62b9906a20f148d510 [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>
Clark Chungfb2997b2019-07-10 12:21:33 +080011#include <brillo/dbus/file_descriptor.h>
Chun-Ta Lin32b8a512019-03-25 18:53:40 +080012#include <brillo/errors/error.h>
13
14namespace debugd {
15
16class ProbeTool {
17 public:
18 ProbeTool() = default;
19 ~ProbeTool() = default;
20
21 // Executes the function defined for runtime_probe.
Tom Hughesd6c2d392020-08-24 18:12:11 -070022 bool EvaluateProbeFunction(brillo::ErrorPtr* error,
23 const std::string& sandbox_info,
24 const std::string& probe_statement,
25 brillo::dbus_utils::FileDescriptor* outfd);
Chun-Ta Lin32b8a512019-03-25 18:53:40 +080026
27 private:
28 DISALLOW_COPY_AND_ASSIGN(ProbeTool);
29};
30
31} // namespace debugd
32
33#endif // DEBUGD_SRC_PROBE_TOOL_H_