summaryrefslogtreecommitdiff
path: root/test/base32.c
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2019-05-13 11:22:22 -0700
committerchrome-bot <chrome-bot@chromium.org>2019-05-23 02:14:18 -0700
commit54a4479e64bb8caed335a38402af2bd46538777d (patch)
tree41e29397e2254e6bec4540b9b761c3be18f29b17 /test/base32.c
parent290708976c622282fb41ea575b8bda309ae31349 (diff)
downloadchrome-ec-54a4479e64bb8caed335a38402af2bd46538777d.tar.gz
flash_log: add api for setting base timestamp
The Cr50 environment does not have a wall clock, which makes it impossible to associate flash log entries with real time. This patch provides an API which allows to set a base time value and then use it plus current Cr50 uptime to generate more sensible flash log timestamps. Care is taken to ensure that attempts to set timestamp base such that it would cause a log timestamps rollback do not succeed. A unit test is being added to verify this behavior. BRANCH=none BUG=b:132287488 TEST='make buildall -j' (which runs the new tests) succeeds. Change-Id: I7521df1bac5aef67e0cf634c183bf1618655f48d Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1610719 Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org> Reviewed-by: Andrey Pronin <apronin@chromium.org>
Diffstat (limited to 'test/base32.c')
0 files changed, 0 insertions, 0 deletions