blob: 364f4e980e7d2bc1d2ce84a9860d0d812daddd80 [file] [log] [blame]
// Copyright 2018 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.
#ifndef GARNET_BIN_DEBUG_AGENT_SYSTEM_INFO_H_
#define GARNET_BIN_DEBUG_AGENT_SYSTEM_INFO_H_
#include <lib/zx/process.h>
#include <zircon/types.h>
#include <vector>
#include "src/developer/debug/ipc/records.h"
namespace debug_agent {
// Fills the root with the process tree of the current system.
zx_status_t GetProcessTree(debug_ipc::ProcessTreeRecord* root);
// Returns a process handle for the given process koid. The process will be
// not is_valid() on failure.
zx::process GetProcessFromKoid(zx_koid_t koid);
// Returns a job handle for the given job koid. The job will be not is_valid()
// on failure.
zx::job GetJobFromKoid(zx_koid_t koid);
} // namespace debug_agent
#endif // GARNET_BIN_DEBUG_AGENT_SYSTEM_INFO_H_