blob: 4a83e1855ece30b89c94678a5b1c87410030d236 [file] [log] [blame] [edit]
// Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
deprecated_syntax;
library fuchsia.kernel;
using fuchsia.mem;
using zx;
/// Protocol for retrieving kcounter information.
[Discoverable, ForDeprecatedCBindings]
protocol Counter {
/// Retrives a VMO containining summarized kcounter data. The vmo returned
/// in `buffer` is in "inspect-vmo" format, documented elsewhere.
GetInspectVmo() -> (zx.status status, fuchsia.mem.Buffer buffer);
/// Request that the previously-returned VMO buffer's data be updated. The
/// data may not be updated if it was already recently updated (updates are
/// limited to an unspecified rate, but approximately every few seconds).
UpdateInspectVmo() -> (zx.status status);
};