power: suspend_stress_test: Count firmware errors before suspend

cbmem may output errors berfore suspend and cause test failure even if
the script suspends and resumes successfully.

BUG=b:176048961
TEST=suspend_stress_test with DUTs contain firmware errors

Change-Id: I3522f6ddea3396b3c6b88a62520e9e97f1bda603
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/2604843
Reviewed-by: Eric Caruso <ejcaruso@chromium.org>
Tested-by: Cheng Yueh <cyueh@chromium.org>
Commit-Queue: Cheng Yueh <cyueh@chromium.org>
1 file changed
tree: af547d105d1d1a9239f9d22aa2b60918a6ab2801
  1. arc/
  2. attestation/
  3. authpolicy/
  4. avtest_label_detect/
  5. biod/
  6. bluetooth/
  7. bootid-logger/
  8. bootstat/
  9. buffet/
  10. camera/
  11. cfm-dfu-notification/
  12. chaps/
  13. chromeos-common-script/
  14. chromeos-config/
  15. chromeos-dbus-bindings/
  16. chromeos-nvt-tcon-updater/
  17. codelab/
  18. common-mk/
  19. crash-reporter/
  20. cros-disks/
  21. cros-fuzz/
  22. crosdns/
  23. crosh/
  24. croslog/
  25. cryptohome/
  26. cups_proxy/
  27. debugd/
  28. dev-install/
  29. diagnostics/
  30. disk_updater/
  31. dlcservice/
  32. easy-unlock/
  33. federated/
  34. feedback/
  35. fitpicker/
  36. foomatic_shell/
  37. glib-bridge/
  38. goldfishd/
  39. hammerd/
  40. hardware_verifier/
  41. hermes/
  42. hwsec-test-utils/
  43. iioservice/
  44. image-burner/
  45. imageloader/
  46. init/
  47. installer/
  48. ippusb_bridge/
  49. ippusb_manager/
  50. kerberos/
  51. libbrillo/
  52. libchromeos-rs/
  53. libchromeos-ui/
  54. libcontainer/
  55. libhwsec/
  56. libipp/
  57. libmems/
  58. libpasswordprovider/
  59. libtpmcrypto/
  60. login_manager/
  61. lorgnette/
  62. media_perception/
  63. mems_setup/
  64. metrics/
  65. midis/
  66. minios/
  67. mist/
  68. ml/
  69. ml_benchmark/
  70. modem-utilities/
  71. modemfwd/
  72. mtpd/
  73. nnapi/
  74. ocr/
  75. oobe_config/
  76. p2p/
  77. patchpanel/
  78. pciguard/
  79. permission_broker/
  80. policy_proto/
  81. policy_utils/
  82. power_manager/
  83. print_tools/
  84. regions/
  85. run_oci/
  86. runtime_probe/
  87. screen-capture-utils/
  88. sealed_storage/
  89. secure-wipe/
  90. secure_erase_file/
  91. sepolicy/
  92. shill/
  93. sirenia/
  94. smbfs/
  95. smbprovider/
  96. smogcheck/
  97. st_flash/
  98. storage_info/
  99. syslog-cat/
  100. system-proxy/
  101. system_api/
  102. thd/
  103. timberslide/
  104. touch_firmware_calibration/
  105. tpm2-simulator/
  106. tpm_manager/
  107. tpm_softclear_utils/
  108. trace_events/
  109. trim/
  110. trunks/
  111. typecd/
  112. u2fd/
  113. ureadahead-diff/
  114. usb_bouncer/
  115. userfeedback/
  116. verity/
  117. virtual_file_provider/
  118. vm_tools/
  119. vpn-manager/
  120. webserver/
  121. wifi-testbed/
  122. .clang-format
  123. .gitignore
  124. .gn
  125. CPPLINT.cfg
  126. LICENSE
  127. navbar.md
  128. OWNERS
  129. PRESUBMIT.cfg
  130. PRESUBMIT.py
  131. README.md
  132. unblocked_terms.txt
README.md

The Chromium OS Platform

This repo holds (most) of the custom code that makes up the Chromium OS platform. That largely covers daemons, programs, and libraries that were written specifically for Chromium OS.

We moved from multiple separate repos in platform/ to a single repo in platform2/ for a number of reasons:

  • Make it easier to work across multiple projects simultaneously
  • Increase code re-use (via common libs) rather than duplicate utility functions multiple items over
  • Share the same build system

While most projects were merged, not all of them were. Some projects were standalone already (such as vboot), or never got around to being folded in (such as imageloader). Some day those extra projects might get merged in.

Similarly, some projects that were merged in, were then merged back out. This was due to the evolution of the Brillo project and collaboration with Android. That means the AOSP repos are the upstream and Chromium OS carries copies.

Local Project Directory

ProjectDescription
arcTools/deamons/init-scripts to run ARC
attestationDaemon and client for managing remote attestation
authpolicyDaemon for integrating with Microsoft Active Directory (AD) domains
avtest_label_detectTest tool for OCRing device labels
biodBiometrics daemon
bluetoothBluetooth Service and tools
bootid-loggerSimple command to record the current boot id to the log.
bootstatTools for tracking points in the overall boot process (for metrics)
buffetDaemon for reacting to cloud messages
cameraChrome OS Camera daemon
cfm-dfu-notificationCFM specific library for DFU notifications
chapsPKCS #11 implementation for TPM 1 devices
chromeos-common-scriptShared scripts for partitions and basic disk information
chromeos-configCrOS unified build runtime config manager
chromeos-dbus-bindingsSimplifies the implementation of D-Bus daemons and proxies
chromeos-nvt-tcon-updaterLibrary for integrating the Novatek TCON firmware updater into a CrOS device
codelabCodelab exercise
common-mkCommon build & test logic for platform2 projects
crash-reporterThe system crash handler & reporter
cros-disksDaemon for mounting removable media (e.g. USB sticks and SD cards)
cros-fuzzSupport crate for fuzzing rust code
crosdnsHostname resolution service for Chrome OS
croshThe Chromium OS shell
croslogThe log manipulation command
cryptohomeDaemon and tools for managing encrypted /home and /var directories
cups_proxyDaemon for proxying CUPS printing request
debugdCentralized debug daemon for random tools
dev-installTools & settings for managing the developer environment on the device
diagnosticsDevice telemetry and diagnostics daemons
disk_updaterUtility for updating root disk firmware (e.g. SSDs and eMMC)
dlcserviceDownloadable Content (DLC) Service daemon
easy-unlockDaemon for handling Easy Unlock requests (e.g. unlocking Chromebooks with an Android device)
federatedFederated computation service (Federated Analytics & Federated Learning)
feedbackDaemon for headless systems that want to gather feedback (normally Chrome manages it)
fitpicker
foomatic_shellSimple shell used by the foomatic-rip package
glib-bridgelibrary for libchrome-glib message loop interoperation
goldfishdAndroid Emulator Daemon
hammerdFirmware updater utility for hammer hardware
hardware_verifierHardware verifier tool
hermesChrome OS LPA implementation for eSIM hardware support
hwsec-test-utilsHwsec-related test-only features
iioserviceDaemon and libraries that provide sensor data to all processes
image-burnerDaemon for writing disk images (e.g. recovery) to USB sticks & SD cards
imageloaderDaemon for mounting signed disk images
initCrOS common startup init scripts and boot time helpers
installerCrOS installer utility (for AU/recovery/etc...)
ippusb_bridgeHTTP proxy to IPP-enabled printers
ippusb_manager“Service” for ipp-over-usb printing
kerberosDaemon for managing Kerberos tickets
libbrilloCommon platform utility library
libchromeos-rsCommon platform utility library for Rust
libchromeos-ui
libcontainer
libhwsecLibrary for the utility functions of all TPM related daemons
libippLibrary for building and parsing IPP (Internet Printing Protocol) frames
libmemsUtility library to configure, manage and retrieve events from IIO sensors
libpasswordproviderPassword Provider library for securely managing credentials with system services
libtpmcryptoLibrary for AES256-GCM encryption with TPM sealed keys
login_managerSession manager for handling the life cycle of the main session (e.g. Chrome)
lorgnetteDaemon for managing attached USB scanners via SANE
media_perceptionMedia perception service for select platforms
memdDaemon that logs memory-related data and events
mems_setupBoot-time initializer tool for sensors
metricsClient side user metrics collection
midisMIDI service
miniosA minimal OS used during recovery
mistModem USB Interface Switching Tool
mlMachine learning service
ml_benchmarkML performance benchmark for Chrome OS
modem-utilities
modemfwdDaemon for managing modem firmware updaters
mtpdDaemon for handling Media Transfer Protocol (MTP) with devices (e.g. phones)
nnapiImplementation of the Android Neural Networks API
ocrOptical Character Recognition (OCR) service for Chrome OS
oobe_configUtilities for saving and restoring OOBE config state
p2pService for sharing files between CrOS devices (e.g. updates)
patchpanelPlatform networking daemons
pciguardDaemon to secure external PCI devices (thunderbolt etc)
permission_broker
policy_protoBuild file to compile policy proto file
policy_utilsTools and related library to set or override device policies
power_managerUserspace power management daemon and associated tools
print_toolsVarious tools related to the native printing system
regions
run_ociMinimalistic container runtime
runtime_probeRuntime probe tool for ChromeOS
screen-capture-utilsUtilities for screen capturing (screenshot)
sealed_storageLibrary for sealing data to device identity and state
secure-wipeSecure disk wipe
secure_erase_fileHelper tools for securely erasing files from storage (e.g. keys and PII data)
sepolicySELinux policy for Chrome OS
shillChrome OS Connection Manager
sireniaMinimalistic init written in Rust
smbfsFUSE-based filesystem for accessing Samba / Windows networking shares
smbproviderDaemon for connecting Samba / Windows networking shares to the Files.app
smogcheckDeveloper library for working with raw I2C devices
st_flash
storage_infoHelper shell functions for retrieving disk information)
syslog-catHelper command to forward stdout/stderr from process to syslog
system-proxyDaemon for web proxy authentication support on Chrome OS
system_apiHeaders and .proto files etc. to be shared with chromium
thdThermal daemon to help keep systems running cool
timberslideTool for working with EC crashes for reporting purposes
touch_firmware_calibration
tpm2-simulatorA software TPM 2.0 implementation (for testing/debugging)
tpm_managerDaemon and client for managing TPM setup and operations
tpm_softclear_utilsUtilities that soft-clear TPM (for testing only)
trace_eventsA framework for adding trace events to your Rust code.
trimService to manage filesystem trim operations in the background
trunksMiddleware and resource manager for interfacing with TPM 2.0 hardware
typecdSystem daemon to keep track of USB Type C state
u2fdU2FHID emulation daemon for systems with secure elements (not TPMs)
ureadahead-diffTool to calculate difference between 2 ureadahead packs
usb_bouncerTools for managing USBGuard white-lists and configuration on Chrome OS
userfeedbackVarious utilities to gather extended data for user feedback reports
verityUserspace tools for working dm-verity (verified disk images)
virtual_file_provider
vm_toolsUtilities for Virtual Machine (VM) orchestration
vpn-managerChrome OS Native L2TP/IPSec VPN Daemon
webserverSmall web server with D-Bus client backends
wifi-testbedTools for creating a WiFi testbed image

AOSP Project Directory

These projects can be found here: https://chromium.googlesource.com/aosp/platform/