blob: 15dc29f83be70ca8b67201eee97e23f1498810fd [file] [log] [blame]
// Copyright 2020 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.
library fuchsia.sys.internal;
using zx;
@discoverable
// Provides introspection information about crashed threads in appmgr.
protocol CrashIntrospect {
// Finds the component whose job contains a process with a thread `thread_koid`.
// This can only be called for threads that have crashed and once per `thread_koid`. Subsequent
// calls will return |ZX_ERR_NOT_FOUND|.
// Returns component's source identity.
// Errors:
// - `ZX_ERR_NOT_FOUND`: If thread_koid is not found in the crashed thread list.
FindComponentByThreadKoid(struct {
thread_koid zx.koid;
}) -> (struct {
component_info SourceIdentity;
}) error zx.status;
};