third_party.pigweed.src/pw_trace_tokenized/pw_trace_protos/trace_rpc.options
Rob Oliver 9d66337f90 pw_trace: Add basic RPCs to get trace
Add a basic RPC service to trace which currently provides 3 RPCs:
  - Enable(bool), Turns tracing on or off
  - IsEnabled, Returns if tracing is currently on or off
  - GetTraceData, Streams the encoded trace data.

This CL also adds a python script which uses these RPCs to retrieve
and decode trace data from a connected device.

Change-Id: Iaceb3fa87017939a17512738101af70bf335504a
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/31880
Reviewed-by: Paul Mathieu <paulmathieu@google.com>
Commit-Queue: Rob Oliver <rgoliver@google.com>
2021-02-19 19:09:25 +00:00

16 lines
641 B
Plaintext

// Copyright 2020 The Pigweed Authors
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
// License for the specific language governing permissions and limitations under
// the License.
pw.trace.TraceDataMessage.data max_size:64