Add trace messages for automation (#12732)
Add a trace backend to linux/chip-tool which provides a simple
and flexible way to trace chip messages. The backend provides
handlers, which can be registered to handle the different
types of messages and extract the relevant data needed for
test automation.
Added additional optional flags to chip-tool which allows turning
on these traces and piping them either to a log or file. These
flags and tracing are only enabled when tracing is enabled at
compile time. Include trace compile with:
gn gen out/with_trace/ --args='import("//with_pw_trace.gni")'
The trace point is before the encrypt in SecureMessageCodec and
only enabled when chip_enable_transport_trace is defined at compile
time and a pw_trace backend is configured.
diff --git a/examples/common/tracing/README.md b/examples/common/tracing/README.md
new file mode 100644
index 0000000..154054b
--- /dev/null
+++ b/examples/common/tracing/README.md
@@ -0,0 +1,5 @@
+# Trace Handlers
+
+These are trace message handlers which get registered with pw_trace_chip and
+interpret the different CHIP messages to extract the useful information required
+for test automation.