commit | 7dde8e8f4926d8da302de284884e3a568b8015ed | [log] [tgz] |
---|---|---|
author | aarongreen <aarongreen@google.com> | Wed Nov 29 19:21:46 2023 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Nov 29 19:21:46 2023 +0000 |
tree | de827fcea793b3a6d91b50dcdff647beb61a4235 | |
parent | 44287c6af4399458f40315706157192e87fb9ace [diff] |
pw_allocator: Add AllocationTestHarness This CL adds a test utility class that can generate requests to allocate, deallocate, and reallocate memory. The class has a configurable number of allocated pointers it can record in a vector. Finally, this class has methods to handle these requests that can be used to programatically drive the allocator with a large number of generated calls as part of a fuzz, perf, and/or stress test. Change-Id: I861b57a21c8ef541da70058fc4bfd85a82cf494e Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/180532 Reviewed-by: Taylor Cramer <cramertj@google.com> Commit-Queue: Aaron Green <aarongreen@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/.