Commit Graph

4440 Commits

Author SHA1 Message Date
Asad Memon
20fd552820 pw_web: Better autocomplete and method arguments for RPC methods
Change-Id: I4b96029685631f942386fcb177bbfa90fe2ae0ec
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/108812
Commit-Queue: Asad Memon <asadmemon@google.com>
Reviewed-by: Anthony DiGirolamo <tonymd@google.com>
2022-09-07 21:06:51 +00:00
Anthony DiGirolamo
84884eb9b0 pw_console: Improve pw console --test-mode
- Move test functions into their own source
- Override the window layout for test-mode. By default 3 log panes
  are shown, 2 with filters added.
- Remove unused byte_size from LogStore class for PyPy compatibility

Change-Id: Ib6fa4f67f9d74a83df05aebc5bd58a3bf53036cb
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/108840
Commit-Queue: Anthony DiGirolamo <tonymd@google.com>
Reviewed-by: Armando Montanez <amontanez@google.com>
2022-09-07 19:05:54 +00:00
Armando Montanez
444f88a454 pw_protobuf: Fix duplicated WriteRepeatedFixed64()
WriteRepeatedSfixed64() was missing from the proto encoder because the
WriteRepeatedFixed64() function was implemented twice.

Change-Id: Ifa5791925cda05770c04db04ba704e93cfaba0bf
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/109277
Pigweed-Auto-Submit: Armando Montanez <amontanez@google.com>
Reviewed-by: Anthony DiGirolamo <tonymd@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
2022-09-07 17:35:15 +00:00
Rob Mohr
634eb3bf85 pw_env_setup: Switch to Fuchsia 3pp arm-gcc
Bug: b/244200923
Change-Id: I3ec9d7cc1efc426477dab2bfe89358d309163c92
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/109234
Reviewed-by: Armando Montanez <amontanez@google.com>
Reviewed-by: Ewout van Bekkum <ewout@google.com>
Commit-Queue: Rob Mohr <mohrr@google.com>
2022-09-07 16:49:13 +00:00
Wyatt Hepler
35b5dc1162 pw_cli: Log stack trace if there are errors importing a plugin module
Change-Id: I2eb77bbdc39e08c774d6f96bef0dee8a9d674bbc
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/109233
Reviewed-by: Rob Mohr <mohrr@google.com>
Pigweed-Auto-Submit: Wyatt Hepler <hepler@google.com>
Commit-Queue: Wyatt Hepler <hepler@google.com>
2022-09-06 23:18:21 +00:00
Medha Kini
fb46413bd2 pw_thread: Add name filter for Thread Snapshot Service
Change-Id: I853d82e5b29c0ddf5457261b32e19d3d4e6c7fb9
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/108991
Reviewed-by: Armando Montanez <amontanez@google.com>
Commit-Queue: Medha Kini <medhakini@google.com>
2022-09-06 23:05:25 +00:00
Taylor Cramer
cdcd6a2f8f pw_rpc: Remove ChannelOutput arg for ProcessPacket
The original intent of the ChannelOutput-accepting variant
of ProcessPacket was to support dynamic assignment of
channels, but that is solved via a different API now.
The interface is currently used to report errors, but those
are also available via the return status.

Change-Id: Id829f2c365f8e9dc2592fe5dda97bb652a6c46fc
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/107335
Reviewed-by: Wyatt Hepler <hepler@google.com>
Commit-Queue: Taylor Cramer <cramertj@google.com>
2022-09-06 22:09:02 +00:00
Wyatt Hepler
d4a9abc4d7 Silence Allstar warnings about Binary Artifacts
Allstar (https://github.com/ossf/allstar/) has been flagging checked-in
binary artifacts in the Pigweed repo on GitHub
(https://github.com/google/pigweed/issues/5). The artifacts in question
are empty ELF files used to test ELF parsing code. Add these files to an
allowlist to silence the warnings.

Change-Id: I14ea5b5617f86b5bd3f390b03612a5a99f6531d2
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/109231
Pigweed-Auto-Submit: Wyatt Hepler <hepler@google.com>
Reviewed-by: Rob Mohr <mohrr@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
Reviewed-by: Ted Pudlik <tpudlik@google.com>
2022-09-06 18:51:11 +00:00
Wyatt Hepler
700b197d27 pw_string: Docs for choosing between InlineString and StringBuilder
- Add a section about how to choose between InlineString and
  StringBuilder.
- Emphasize that InlineString can be used to add null-terminators to
  length-delimited strings (std::string_view).

Change-Id: Ie45de936afc48dbbd134335d9a9765a8501e4789
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/109230
Commit-Queue: Wyatt Hepler <hepler@google.com>
Pigweed-Auto-Submit: Wyatt Hepler <hepler@google.com>
Reviewed-by: Ted Pudlik <tpudlik@google.com>
2022-09-06 18:44:10 +00:00
pigweed-roller
8da9f283e9 roll: host_tools
From: git_revision:fac2212c9cd9571c7c91564c2ac1ed1a3e47ef27
To: git_revision:1ad00fe8f5f9ab4748f7a97b377b2b36f59528d3

CQ-Do-Not-Cancel-Tryjobs: true
Roller-URL: https://ci.chromium.org/b/8803917384975433649
CQ-Do-Not-Cancel-Tryjobs: true
Change-Id: I64abca41d607fd07b990ee9428516353f8dc4deb
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/109130
Commit-Queue: Pigweed Roller <pigweed-roller@pigweed.google.com.iam.gserviceaccount.com>
Bot-Commit: Pigweed Roller <pigweed-roller@pigweed.google.com.iam.gserviceaccount.com>
2022-09-04 22:11:07 +00:00
pigweed-roller
d7346de178 roll: gn
From: git_revision:5705e56a0e5856621415cfdf444432554e72c9c9
To: git_revision:00b741b1568d56cf4e117dcb9f70cd42653b4c78

CQ-Do-Not-Cancel-Tryjobs: true
Roller-URL: https://ci.chromium.org/b/8803922606919125633
CQ-Do-Not-Cancel-Tryjobs: true
Change-Id: I135267ce967aa0187a2c894aa0669934b8198e8d
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/109105
Bot-Commit: Pigweed Roller <pigweed-roller@pigweed.google.com.iam.gserviceaccount.com>
Commit-Queue: Pigweed Roller <pigweed-roller@pigweed.google.com.iam.gserviceaccount.com>
2022-09-04 20:43:16 +00:00
pigweed-roller
66268faa0e roll: qemu
From: git_revision:44f28df24767cf9dca1ddc9b23157737c4cbb645,1
To: git_revision:823a3f11fb8f04c3c3cc0f95f968fef1bfc6534f

CQ-Do-Not-Cancel-Tryjobs: true
Roller-URL: https://ci.chromium.org/b/8803941480993513281
CQ-Do-Not-Cancel-Tryjobs: true
Change-Id: I05ad45d79469c60f7beac8c7b863b08683c51375
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/109100
Commit-Queue: Pigweed Roller <pigweed-roller@pigweed.google.com.iam.gserviceaccount.com>
Bot-Commit: Pigweed Roller <pigweed-roller@pigweed.google.com.iam.gserviceaccount.com>
2022-09-04 15:50:51 +00:00
pigweed-roller
53a0fb1755 roll: ninja
From: version:2@1.11.0.chromium.4
To: version:2@1.11.1.chromium.4

CQ-Do-Not-Cancel-Tryjobs: true
Roller-URL: https://ci.chromium.org/b/8803993134631382449
CQ-Do-Not-Cancel-Tryjobs: true
Change-Id: I7de491bcca95a02cc625528c0395bd5c2ad4400d
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/109094
Bot-Commit: Pigweed Roller <pigweed-roller@pigweed.google.com.iam.gserviceaccount.com>
Commit-Queue: Pigweed Roller <pigweed-roller@pigweed.google.com.iam.gserviceaccount.com>
2022-09-04 02:07:20 +00:00
Ted Pudlik
1ad00fe8f5 docs: Add favicon to pigweed.dev
Tested by building the docs locally and verifying the favicon is shown.

Change-Id: I6f43ed4a78d16400759aa521f1d18c96b7405c2f
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/109078
Pigweed-Auto-Submit: Ted Pudlik <tpudlik@google.com>
Reviewed-by: Rob Mohr <mohrr@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
2022-09-03 00:47:46 +00:00
Ted Pudlik
97a1fc5a3f pw_presubmit: Exclude .ico from copyright check
Change-Id: I3d13774d26e7ec697ae15f23afac118cb31077b3
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/109079
Reviewed-by: Rob Mohr <mohrr@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
Pigweed-Auto-Submit: Ted Pudlik <tpudlik@google.com>
2022-09-03 00:35:39 +00:00
Dmitry Lukyantsev
34d3f73092 pw_metric: Fix path to MetricService
A recent change moved service to .protos namespace. Making matching
change to metric parser and metric parser test.

Link to the CL:
https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/101169

Bug: 243708223

Change-Id: I8310c0e6afbe0dbdedca0eaff47973e16a1f1538
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/108556
Reviewed-by: Keir Mierle <keir@google.com>
Reviewed-by: Carlos Chinchilla <cachinchilla@google.com>
Commit-Queue: Dmitry Lukyantsev <dmitrylu@google.com>
2022-09-02 21:35:58 +00:00
Brandon
2b9ac8f0d6 pw_bloat: Fix double printing ASCII table
Printed size report every time a new diff report was calculated,
causing the pw watch to print out lots of duplicate tables before
finishing the entire size report.

Change-Id: I2c5fa8a6d875ba6e729a14c30e67d2776a566239
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/109013
Reviewed-by: Alexei Frolov <frolv@google.com>
Commit-Queue: Brandon Vu <brandonvu@google.com>
2022-09-02 20:32:10 +00:00
Anthony DiGirolamo
4a117c70b6 pw_console: Json Log file formatter
New JsonLogFormatter handler to save pw_console device logs with
metadata fields to json. For example running:

$ pw-system-console --verbose -d /dev/ttyACM0 -b 115200 \
  --json-logfile logs.json \
  --proto-globs pw_rpc/echo.proto \
  --token-databases \
out/stm32f429i_disc1_stm32cube.size_optimized/obj/pw_system/bin/system_example.elf

$ tail -F logs.json | jq

{
  "message": "System init",
  "levelno": 20,
  "levelname": "INF",
  "args": [
    "0:00",
    "pw_system ",
    "System init"
  ],
  "fields": {
    "module": "pw_system",
    "file": "pw_system/init.cc",
    "timestamp": "0:00"
  }
}

{
  "message": "Pigweed is fun 10x!",
  "levelno": 20,
  "levelname": "INF",
  "args": [
    "0:00:00.003",
    "user_init ",
    "Pigweed is fun 9x!"
  ],
  "fields": {
    "module": "user_init",
    "file": "pw_system/example_user_app_init.cc",
    "timestamp": "0:00:00.003"
  }
}

Change-Id: Ifc96459e074477597c6492fd40d9a2e89cef142b
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/86460
Reviewed-by: Alexei Frolov <frolv@google.com>
Commit-Queue: Anthony DiGirolamo <tonymd@google.com>
2022-09-02 15:04:12 +00:00
Brandon
9a7e6a4548 pw_bloat: Fix broken size report on pw_bloat docs
Change-Id: Ifa70af64c84208c198881306ba06d2a1d99bc05d
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/108870
Commit-Queue: Brandon Vu <brandonvu@google.com>
Reviewed-by: Alexei Frolov <frolv@google.com>
2022-09-01 23:01:43 +00:00
Wyatt Hepler
25c193a34b pw_string: Fixed-capacity string class similar to std::string
pw::InlineBasicString<T, kCapacity> is a fixed-capacity null-terminated
string class that closely resembles std::basic_string<T>. The char alias
pw::InlineString<kCapacity> is equivalent to std::string.

pw::InlineString instances must be constructed with the capacity
specified, but strings of any capacity may be used through an
pw::InlineString<> reference.

Fixes: b/234869764
Change-Id: I4384ccac76ea27bd58012ceca9c9c289db7f0185
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/92742
Reviewed-by: Keir Mierle <keir@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
Pigweed-Auto-Submit: Wyatt Hepler <hepler@google.com>
2022-09-01 22:13:48 +00:00
Eli Lipsitz
01d0570101 pw_build: Forward 'visibility' variable in pw_exec
This CL forwards the visibility variable in pw_exec targets through to
the underlying pw_python_action (and then the GN action target) to
enable users to restrict the visibility of pw_exec targets.

Change-Id: I6a48850042c2649defa6ad64289ace99f4f0313e
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/108993
Reviewed-by: Wyatt Hepler <hepler@google.com>
Commit-Queue: Eli Lipsitz <elipsitz@google.com>
2022-09-01 21:38:57 +00:00
Wyatt Hepler
399e039283 pw_span: Delete unused span polyfill header
Change-Id: If567f5c969418f69898bae574cd4be6e82f37570
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/108992
Pigweed-Auto-Submit: Wyatt Hepler <hepler@google.com>
Reviewed-by: Armando Montanez <amontanez@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
2022-09-01 21:36:53 +00:00
Adam MacBeth
e5ed83c115 docs: Fix public headers description
Change-Id: Id5bf5a5406409a6f31d44506c54b0885d6c3dd22
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/108911
Reviewed-by: Alexei Frolov <frolv@google.com>
Commit-Queue: Adam MacBeth <amacbeth@google.com>
2022-09-01 21:21:09 +00:00
Wyatt Hepler
bdcf2402b8 pw_compilation_testing: Relax PW_NC_EXPECT syntax; add tests
Allow PW_NC_EXPECT() statements to span multiple lines. The statements
must contain only string literals or //-style comments. This prevents
clang-format from breaking PW_NC_EXPECT() statements when it reflows
string literals.

With this change, statements like the following are permitted:

  PW_NC_EXPECT(  // This is a comment
               "This is a \"very\" long string that didn't "  // Comment
               "fit on one line,\nokay?");

Also added tests for negative compilation test parsing.

Change-Id: Ie7ad157c817eaf7f0f576bcd841f00426623b635
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/107678
Reviewed-by: Armando Montanez <amontanez@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
Pigweed-Auto-Submit: Wyatt Hepler <hepler@google.com>
2022-09-01 19:08:24 +00:00
Eli Lipsitz
b7c7867028 pw_unit_test: Allow customizing the target type of executables
This commit adds two new toolchain arguments that enable a user to
customize the GN target type that pw_unit_test uses to build test
executables. The default maintains the same behavior, using
'pw_executable'.

This allows a toolchain to do special handling of test executables.

Change-Id: Ibf5ea92da840d50a70bddf0ca77a361d8eac3002
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/108733
Reviewed-by: Ted Pudlik <tpudlik@google.com>
Reviewed-by: Armando Montanez <amontanez@google.com>
Commit-Queue: Eli Lipsitz <elipsitz@google.com>
2022-09-01 17:04:19 +00:00
Taylor Cramer
e002d814d3 pw_hdlc: Overload ReadAndProcessPackets w/o ChannelOutput
The ChannelOutput argument is being removed. This will
allow callers to gradually transition their code to the new API.

Change-Id: Id13d7702378d6b67cbe41d65720c1f57d81c7b26
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/108950
Reviewed-by: Wyatt Hepler <hepler@google.com>
Commit-Queue: Taylor Cramer <cramertj@google.com>
2022-09-01 16:54:52 +00:00
Yuval Peress
65c3d9bd70 zephyr: Fixup ToT to support Zephyr builds
Add the zephyr/ prefix to the include paths needed for ToT zephyr
builds as well as removing the type-limits warning. Type limit warnings
don't work with Zephyr because of the Kconfig feature. In a given
build we can check `uintptr >= CONFIG_X` and CONFIG_X may be 0, but
in another build it might be 10.

Bug: b/236263182
Change-Id: Iaf3a5075a4af51f740efe66abcd709d6d9796396
Signed-off-by: Yuval Peress <peress@google.com>
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/108834
Reviewed-by: Wyatt Hepler <hepler@google.com>
Reviewed-by: Rob Barnes <robbarnes@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
2022-09-01 05:20:35 +00:00
Wyatt Hepler
7681b28af9 pw_containers: Add missing dependency
pw_polyfill was missing from the GN build.

Change-Id: Id89a5124b2da8e616664a8f288a22587401e76ec
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/108674
Pigweed-Auto-Submit: Wyatt Hepler <hepler@google.com>
Reviewed-by: Alexei Frolov <frolv@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
2022-08-31 23:50:25 +00:00
Brandon
b62a817318 pw_bloat: Fix data sources GN template
Specfiying only 1 data sources broke the difference algorithm
as it relied on having 2 or more data sources to calculate the
difference. Fix the algorithm by only subtracting the lowest
level within the DataSourceMap struct. Adding diff label
title to ASCII table outputs as well.

Change-Id: Ib5b1fb18a6145a7f954c885712915e2fd9142ed3
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/108750
Reviewed-by: Alexei Frolov <frolv@google.com>
Commit-Queue: Brandon Vu <brandonvu@google.com>
2022-08-31 20:41:43 +00:00
Wyatt Hepler
e7240fd029 pw_span: Remove std::span polyfill
Removes the deprecated std::span polyfill, which was only available in
GN and disabled by default.

In a future change, span_common.inc will be merged into pw_span/span.h.

Bug: b/235237667
Change-Id: I0652a295e76c90877d6fbbafa2eae35dcecfacf6
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/108732
Pigweed-Auto-Submit: Wyatt Hepler <hepler@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
Reviewed-by: Armando Montanez <amontanez@google.com>
2022-08-31 20:21:01 +00:00
Alexei Frolov
3ab96e449f pw_env_setup: Switch to Fuchsia bloaty CIPD package
This changes the version of Bloaty installed by CIPD from the custom
Pigweed fork to Fuchsia's Bloaty package, which tracks upstream.

Bug: b/223182409
Change-Id: Iadac60e62e6da24f174a326a7d21104135867cff
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/108811
Reviewed-by: Rob Mohr <mohrr@google.com>
Commit-Queue: Alexei Frolov <frolv@google.com>
Reviewed-by: Brandon Vu <brandonvu@google.com>
2022-08-31 19:00:46 +00:00
Asad Memon
84632a32cf pw_web: Fix type definition errors by keeping them unbundled instead
Bundling is usually recommended but the structure of Pigweed was
causing duplications in the bundled d.ts file. Which resulted in type
mismatches downstream.

Change-Id: I43cfb41573f85e79507a2fb007a95a8cb8f7f27c
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/108710
Reviewed-by: Anthony DiGirolamo <tonymd@google.com>
Commit-Queue: Asad Memon <asadmemon@google.com>
2022-08-31 17:43:07 +00:00
Anthony DiGirolamo
53010f4702 pw_console: Use a single global log redraw timer
Previously each separate log pane had it's own redraw timer.  This
could lead to screen redraws triggering unnecessarily in quick
sucession. This change switches to a single log redraw timer with a
max of 10 fps. This is just for new log lines. The prompt_toolkit app
will still run at 30 fps so input is more responsive.

Change-Id: Ibf299630cb7356f739058f1523e44a3cc4abaf30
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/108730
Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
Pigweed-Auto-Submit: Anthony DiGirolamo <tonymd@google.com>
Reviewed-by: Wyatt Hepler <hepler@google.com>
2022-08-31 14:51:29 +00:00
Asad Memon
ea7a1048bf pw_web: Use device API in webconsole and add it to REPL context
Change-Id: Ibdb17ad5b91691a679d2ff474e93cf21eedb7248
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/108140
Pigweed-Auto-Submit: Asad Memon <asadmemon@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
Reviewed-by: Anthony DiGirolamo <tonymd@google.com>
2022-08-31 03:19:56 +00:00
Brandon
cdb558fa10 pw_bloat: Fix broken size reports
Source filter argument from GN template was getting passed even if
empty, causing Bloaty to return an empty size report. Using a json
file to hold all the arguments from the GN build will make it
easier to store and parse arguments in bloat.py compared to
reading over command line arguments.

Change-Id: I67cf1691d304236ac8de78fc607370e80ac0c4ca
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/108220
Reviewed-by: Alexei Frolov <frolv@google.com>
Commit-Queue: Brandon Vu <brandonvu@google.com>
2022-08-30 18:06:12 +00:00
Anthony DiGirolamo
1827725a53 pw_console: TomlConfigLoaderMixin
Change-Id: I6f6da785a92a9ee23695a2cdc5a22f8cdc1237a8
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/108229
Pigweed-Auto-Submit: Anthony DiGirolamo <tonymd@google.com>
Reviewed-by: Wyatt Hepler <hepler@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
2022-08-30 17:47:37 +00:00
Asad Memon
2d8a5818fe pw_web: Add a Device helper class to make RPC calls easier
Currently only works for UnaryMethods. Example usage:
```
let device = new Device();
device.connect();
...
const [status, response] =
  await device.rpcs.pw.rpc.EchoService.Echo("Hello");
```

Change-Id: Icdfbc0d3f325a6c088a3608e86e5421db56dfa07
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/107976
Reviewed-by: Anthony DiGirolamo <tonymd@google.com>
Commit-Queue: Asad Memon <asadmemon@google.com>
2022-08-30 17:44:33 +00:00
Anthony DiGirolamo
17d9b88feb pw_system: Console log files and busy wait fix
- Add host and device logfile options
- Merge host and device into single logfile option
- Remove ANSI colors from logfiles
- Add IPython option in case the pw_console TUI is not needed
- Set pyserial timeout to small timespan to avoid 100% CPU usage

Change-Id: I308c78e7a157d914359b2a77c511768f23932d68
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/108555
Commit-Queue: Anthony DiGirolamo <tonymd@google.com>
Reviewed-by: Armando Montanez <amontanez@google.com>
2022-08-30 17:16:21 +00:00
Armando Montanez
63d04ecbde pw_tokenizer: Fix out-of-bounds access
Change-Id: I5032cbe32d75c09ca5541706ce998570b5381873
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/108226
Pigweed-Auto-Submit: Armando Montanez <amontanez@google.com>
Reviewed-by: Wyatt Hepler <hepler@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
2022-08-30 16:47:29 +00:00
Wyatt Hepler
8c5bb45055 third_party/fuchsia: Replace assert() with PW_ASSERT()
Replace assert() with PW_ASSERT() and update the patch file.

Change-Id: I171a4eba6897268499f2cda65b8271fce70d9183
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/108553
Pigweed-Auto-Submit: Wyatt Hepler <hepler@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
Reviewed-by: Ted Pudlik <tpudlik@google.com>
2022-08-29 23:52:29 +00:00
Wyatt Hepler
e415fc8d90 third_party/fuchsia: Drop -Wno-nested-anon-types
The -Wnested-anon-types warning was fixed in the Fuchsia repository.

Fixes: b/243045403
Change-Id: Ia40a57b8ad11e443ac59ab7f8f0e61834fc009f1
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/108554
Pigweed-Auto-Submit: Wyatt Hepler <hepler@google.com>
Reviewed-by: Matthias Guenther <mrguenther@google.com>
Reviewed-by: Ted Pudlik <tpudlik@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
2022-08-29 23:48:40 +00:00
Fuchsia Authors
54270701f4 third_party/fuchsia: Copybara import of the fit library
- 4cafa06bf938d711aadfa73330138cb7fa47bec7 [fit] fit::function size optimizations
  - c6a099811418adc2337dc9984b57377664520b51 [fit] Round function inline size to nearest word

GitOrigin-RevId: 4cafa06bf938d711aadfa73330138cb7fa47bec7
Change-Id: I4dadadd538eae2b9f1e9d16cfaa25bbecd5522a9
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/108552
Pigweed-Auto-Submit: Wyatt Hepler <hepler@google.com>
Reviewed-by: Ted Pudlik <tpudlik@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
2022-08-29 23:47:23 +00:00
Armando Montanez
4899a7fa3c pw_env_setup: Roll Linux sysroot
Rolls linux sysroot to the latest version.

Change-Id: Ida85a8a0f59ddea0b69d41e2744b65b09f7b96c6
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/108551
Reviewed-by: Joe Brennan <jmbrenna@google.com>
Pigweed-Auto-Submit: Armando Montanez <amontanez@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
Reviewed-by: Erik Gilling <konkers@google.com>
2022-08-29 20:25:47 +00:00
Rob Mohr
a88f9a4855 pw_presubmit: Add static_analysis to combined step
Add the static_analysis ninja target to the gn_combined_build_check
presubmit step.

Bug: b/243380637
Change-Id: I2af79d1205ca8e457aee19df1d71b448af859c62
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/107930
Reviewed-by: Wyatt Hepler <hepler@google.com>
Commit-Queue: Rob Mohr <mohrr@google.com>
2022-08-29 20:22:42 +00:00
Ewout van Bekkum
ac88b02061 pw_build_info: Correct linker script name typo
Change-Id: Ia36ea19f3aa2d9a57e630bf9c765a0a6d9de39ea
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/108583
Pigweed-Auto-Submit: Ewout van Bekkum <ewout@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
Reviewed-by: Armando Montanez <amontanez@google.com>
2022-08-29 20:12:57 +00:00
Fateh Singh
7fdd09cc7a Add TotalSizeBytes to PrefixedEntryRingBuffer
- Added TotalSizeBytes to PrefixedEntryRingBuffer.
- This is needed by users that don't know the size of ring buffer.

Bug: b/242740148
Change-Id: I5b6fc24757d01d38413773a60b5f49666f1dc598
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/107172
Reviewed-by: Wyatt Hepler <hepler@google.com>
Commit-Queue: Fateh Singh <fsingh@google.com>
2022-08-29 18:56:21 +00:00
pigweed-roller
ce7bb911c8 roll: host_tools
From: git_revision:050b2549a5c670444132f06690b88ab3ae0835f3
To: git_revision:fac2212c9cd9571c7c91564c2ac1ed1a3e47ef27

CQ-Do-Not-Cancel-Tryjobs: true
Roller-URL: https://ci.chromium.org/b/8804551564475284961
CQ-Do-Not-Cancel-Tryjobs: true
Change-Id: Ife7c6c643f67d18d7c9c4c40d431e9fe568f3849
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/108477
Bot-Commit: Pigweed Roller <pigweed-roller@pigweed.google.com.iam.gserviceaccount.com>
Commit-Queue: Pigweed Roller <pigweed-roller@pigweed.google.com.iam.gserviceaccount.com>
2022-08-28 22:03:23 +00:00
pigweed-roller
fac2212c9c roll: gn
From: git_revision:0bcd37bd2b83f1a9ee17088037ebdfe6eab6d31a
To: git_revision:5705e56a0e5856621415cfdf444432554e72c9c9

CQ-Do-Not-Cancel-Tryjobs: true
Roller-URL: https://ci.chromium.org/b/8804556785553214993
CQ-Do-Not-Cancel-Tryjobs: true
Change-Id: I41b6d61df7be238e140a16c757bb59c35549156c
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/108473
Bot-Commit: Pigweed Roller <pigweed-roller@pigweed.google.com.iam.gserviceaccount.com>
Commit-Queue: Pigweed Roller <pigweed-roller@pigweed.google.com.iam.gserviceaccount.com>
2022-08-28 20:47:49 +00:00
Medha Kini
f1d835582c pw_system: Thread Snapshot RPC service upstream integration
Change-Id: I6e22610d69db432a1e62dc56539680e37a7fe3ae
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/108055
Reviewed-by: Armando Montanez <amontanez@google.com>
Commit-Queue: Medha Kini <medhakini@google.com>
2022-08-26 23:46:29 +00:00
Medha Kini
fbf06e6335 pw_thread_freertos: Fix peak stack usage capture
Change-Id: I39ca6b4a9fb352d3fdd3a445e9e9de934bc4de39
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/108150
Reviewed-by: Armando Montanez <amontanez@google.com>
Commit-Queue: Medha Kini <medhakini@google.com>
2022-08-26 16:44:22 +00:00