Commit Graph

4 Commits

Author SHA1 Message Date
Armando Montanez
fb7b478547 pw_multisink: Unsafe iteration dump utilities
Addds a crash-time helper to dump a MultiSink used for proto encoded
logs.

Change-Id: I5b8efb3f2d3c86f403896fca9cdd4ddde5e6cc39
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/63282
Pigweed-Auto-Submit: Armando Montanez <amontanez@google.com>
Commit-Queue: Armando Montanez <amontanez@google.com>
Reviewed-by: Ewout van Bekkum <ewout@google.com>
2021-10-07 16:39:38 +00:00
Carlos Chinchilla
64021a8b19 pw_multisink & pw_ring_buffer: Add Peek APIs
pw_multisink: Add PeekEntry, PopEntry, and CommitEntry APIs.
pw_ring_buffer: Add PeekFrontPreamble to allow a reader peak the user
preamble without the need to copy data. This lets the multisink commit
multiple entries, peeking one at a time to check if it should be popped
without having to get the entry's data.

Change-Id: I2304af3d149c10942e61f2ca65400acfeda978ca
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/56246
Reviewed-by: Ewout van Bekkum <ewout@google.com>
Pigweed-Auto-Submit: Carlos Chinchilla <cachinchilla@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
2021-09-02 01:28:49 +00:00
Nathaniel Brough
f91e76363d workspace: Updates Bazel build files to work in CI
No-Docs-Update-Reason: Fixes build files.
Change-Id: I596ba5b567cbe6625d378695e0c59a15db974578
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/54680
Reviewed-by: Keir Mierle <keir@google.com>
Reviewed-by: Akira Baruah <akirabaruah@google.com>
Commit-Queue: Keir Mierle <keir@google.com>
2021-07-29 20:17:52 +00:00
Akira Baruah
40a9c3f128 bazel: Rename BUILD to BUILD.bazel
Avoids potential naming conflicts with other build systems.

Change-Id: Ib6569cc05c028d5680879724304b17dfc1fae0af
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/49306
Commit-Queue: Akira Baruah <akirabaruah@google.com>
Reviewed-by: Rob Mohr <mohrr@google.com>
Reviewed-by: Nathaniel Brough <nathaniel.brough@gmail.com>
Reviewed-by: Wyatt Hepler <hepler@google.com>
2021-07-14 19:36:41 +00:00