Commit Graph

10 Commits

Author SHA1 Message Date
Rob Mohr
4663d47af9 gn: Fix missing dependencies
Change-Id: Ic1878cb87aab2a29fdf1aac39d2108e39c670860
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/60181
Pigweed-Auto-Submit: Rob Mohr <mohrr@google.com>
Reviewed-by: Wyatt Hepler <hepler@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
2021-09-08 19:50:59 +00:00
Armando Montanez
5f10ff81c5 pw_thread: Add log level configs
Adds log level configs to all pw_thread modules.

Change-Id: Ifb9468e4a8a0593c8fcafd770bc23be82f14bb2b
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/57162
Commit-Queue: Armando Montanez <amontanez@google.com>
Pigweed-Auto-Submit: Armando Montanez <amontanez@google.com>
Reviewed-by: Ewout van Bekkum <ewout@google.com>
2021-08-14 00:00:53 +00:00
Armando Montanez
8931430150 pw_thread: Add thread state proto processing
Adds a python library for processing Thread protos to provide additional
information that can be inferred from the captured data.

Change-Id: Ic1d7adb628e6486f733f41c3f6406f30e9a4452a
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/55001
Pigweed-Auto-Submit: Armando Montanez <amontanez@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
Reviewed-by: Keir Mierle <keir@google.com>
2021-07-29 16:33:17 +00:00
Armando Montanez
fec572b92d pw_thread_threadx: Add basic thread snapshotting
Adds an optional library for capturing ThreadX thread state in
proto snapshots.

Change-Id: I47dbc5a57faf3d4411255ea83f04f17bf0a4dc46
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/51405
Commit-Queue: Rob Mohr <mohrr@google.com>
Pigweed-Auto-Submit: Rob Mohr <mohrr@google.com>
Reviewed-by: Ewout van Bekkum <ewout@google.com>
2021-06-30 22:59:41 +00:00
Armando Montanez
179aa8eab0 pw_snapshot: Add snapshot proto
Initial commit for the pw_snapshot module that introduces the proto
format for device snapshots, and documentation that introduces the
pw_snapshot module and how to use it.

Change-Id: I63e12d245073e82de03be995a001a0ee0cc1f443
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/38103
Commit-Queue: Armando Montanez <amontanez@google.com>
Reviewed-by: Ewout van Bekkum <ewout@google.com>
Reviewed-by: Keir Mierle <keir@google.com>
Reviewed-by: David Rogers <davidrogers@google.com>
2021-04-30 22:46:47 +00:00
Ewout van Bekkum
19e753a771 pw_thread: add DetachedThread helper function
Adds the pw:🧵:DetachedThread function as a helper to spawn
detached threads, where the user doesn't have to worry about the
thread handle and detaching it.

Change-Id: I179e342d8e0a79a08243a4438176b1249e13c660
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/42864
Reviewed-by: Wyatt Hepler <hepler@google.com>
Commit-Queue: Ewout van Bekkum <ewout@google.com>
2021-04-29 23:28:07 +00:00
Ewout van Bekkum
a082d7fc6a pw_thread: add helper ThreadCore interface
Also extends the pw_thread documentation regarding thread creation.

Change-Id: Ib0a0572060188244b9a5cf91a6bba575057f405b
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/41205
Reviewed-by: Keir Mierle <keir@google.com>
Reviewed-by: Wyatt Hepler <hepler@google.com>
Reviewed-by: Paul Mathieu <paulmathieu@google.com>
Pigweed-Auto-Submit: Ewout van Bekkum <ewout@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
2021-04-16 02:02:02 +00:00
Ewout van Bekkum
ae6c03a95e pw_thread_freertos: adds thread creation
Adds pw:🧵:Thread creation for FreeRTOS.

Note that this also refactors the pw_thread thread facade tests
to use binary semaphores and adds a helper method to re-use
test threads even if detached. Note that this is by definition
flaky without join, ergo excessive target specific sleeps are
used when needed.

Change-Id: I3f2344c7a6ddbafa6781914991d6378e05ad0106
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/30921
Pigweed-Auto-Submit: Ewout van Bekkum <ewout@google.com>
Commit-Queue: Ewout van Bekkum <ewout@google.com>
Reviewed-by: Wyatt Hepler <hepler@google.com>
2021-03-02 01:17:11 +00:00
Ewout van Bekkum
0f3901eda4 pw_thread: adds thread creation
Adds a std::thread like API through a new pw_thread facade based
on the STL's std::thread API, however with more restricted function
entry routine format support and backend specific option support
to permit non-portable configuration of thread settings/parameters
including static context allocations.

In addition this provides an initial set of backends based on using
the STL's std::thread directly.

Change-Id: Ib8c3cbdc434044e204e67e58d861a40e4acec9b4
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/30920
Reviewed-by: Wyatt Hepler <hepler@google.com>
Reviewed-by: Keir Mierle <keir@google.com>
Commit-Queue: Ewout van Bekkum <ewout@google.com>
2021-02-19 21:37:16 +00:00
Ewout van Bekkum
e3b5603919 pw_thread: adds the initial pw_thread module
Adds a std::this_thread like API through the pw_thread facades, that
is:
1) this_thread::yield
2) this_thread::sleep_{for,until}
3) this_thread::get_id

This module is split into many different facades in order to let users
decide what functionality they want to use as they may not always
be available, for example when using opaque SDKs.

In addition this provides an initial set of backends based on using
the STL's std::this_thread directly and selects them for the host
target.

Change-Id: I0ee8e4390ba988b2b13e9ee59f976f2333715f1f
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/30040
Commit-Queue: Ewout van Bekkum <ewout@google.com>
Reviewed-by: Keir Mierle <keir@google.com>
Reviewed-by: Wyatt Hepler <hepler@google.com>
2021-01-28 01:47:20 +00:00