Commit Graph

1 Commits

Author SHA1 Message Date
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