| // Copyright 2022 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. |
| { |
| include: [ |
| "inspect/client.shard.cml", |
| "syslog/client.shard.cml", |
| ], |
| program: { |
| runner: "elf", |
| binary: "bin/debug_data_rust_bin", |
| }, |
| children: [ |
| { |
| name: "processor", |
| url: "#meta/debug_data_processor.cm", |
| }, |
| ], |
| capabilities: [ |
| { protocol: "fuchsia.debugdata.Publisher" }, |
| { protocol: "fuchsia.test.internal.DebugDataController" }, |
| ], |
| use: [ |
| { |
| protocol: "fuchsia.test.debug.DebugDataProcessor", |
| from: "#processor", |
| }, |
| { |
| protocol: [ "fuchsia.sys2.EventSource" ], |
| }, |
| { |
| event: "capability_requested", |
| from: "parent", |
| as: "publisher_requested", |
| filter: { name: "fuchsia.debugdata.Publisher" }, |
| }, |
| { |
| event: "started", |
| from: "parent", |
| }, |
| { |
| event: "destroyed", |
| from: "parent", |
| }, |
| { |
| event_stream_deprecated: "EventStream", |
| subscriptions: [ |
| { event: "publisher_requested" }, |
| { event: "started" }, |
| { event: "destroyed" }, |
| ], |
| }, |
| { |
| storage: "tmp", |
| rights: [ "rw*" ], |
| path: "/data", |
| }, |
| ], |
| offer: [ |
| { |
| protocol: "fuchsia.logger.LogSink", |
| from: "parent", |
| to: "#processor", |
| }, |
| ], |
| expose: [ |
| { |
| protocol: "fuchsia.debugdata.Publisher", |
| from: "self", |
| }, |
| { |
| protocol: "fuchsia.test.internal.DebugDataController", |
| from: "self", |
| }, |
| ], |
| } |