commit | 5133ef1ba4de37428a440b147dfd321487e33c64 | [log] [tgz] |
---|---|---|
author | Yvonne Yip <ykyyip@google.com> | Thu Jan 19 19:55:06 2023 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Jan 19 19:55:06 2023 +0000 |
tree | 8fb2f9fe292ba2463c4eb77108701ced5cbf1d78 | |
parent | 35c0f029b35ab92e13d79bbca87e2f26acc2c4ed [diff] |
pw_trace_tokenized: Allow event callback to modify event Change the event callback API to accept a pointer to pw_trace_tokenized_TraceEvent, and move the event callback to before inserting in the queue. This allows the platform to implement a callback to modify run-time fields in the trace event. Add example where the callback modifies the trace_id field to store the Linux info, used for auto grouping trace events by tid. Change-Id: Ib8dd8f69bf70e37c3bd53d69a2be1aec127cf7c4 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/126310 Reviewed-by: Rob Oliver <rgoliver@google.com> Commit-Queue: Yvonne Yip <ykyyip@google.com> Reviewed-by: Ted Pudlik <tpudlik@google.com> Pigweed-Auto-Submit: Yvonne Yip <ykyyip@google.com>
Pigweed is an open source collection of embedded-targeted libraries–or as we like to call them, modules. These modules are building blocks and infrastructure that enable faster and more reliable development on small-footprint MMU-less 32-bit microcontrollers like the STMicroelectronics STM32L452 or the Nordic nRF52832.
For more information please see our website: https://pigweed.dev/.