blob: eb926a79404461a02779532f5d7eb4166fb95f3f [file] [log] [blame]
// Copyright 2018 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 RUNTIME_PROBE_FUNCTIONS_GENERIC_BATTERY_H_
#define RUNTIME_PROBE_FUNCTIONS_GENERIC_BATTERY_H_
#include "runtime_probe/probe_function.h"
namespace runtime_probe {
class GenericBattery final : public PrivilegedProbeFunction {
// Read battery information from sysfs.
using PrivilegedProbeFunction::PrivilegedProbeFunction;
public:
NAME_PROBE_FUNCTION("generic_battery");
private:
DataType EvalImpl() const override;
};
} // namespace runtime_probe
#endif // RUNTIME_PROBE_FUNCTIONS_GENERIC_BATTERY_H_