[roll] Roll fuchsia [power-manager] Non-CPU temps can be written to the syslog

This is a first step for allowing non-CPU temperatures to be published
to Inspect. It allows a config to specify a set of nodes that should
have their temperatures published and implements functionality to
periodically poll them and emit values to logs. There are a few things
to note:

* new config fields are optional to avoid having to update existing
  configs and make possibly breaking changes.
* Buffer capacity can be specified in the config, but is not used in a
   meaningful way. This is done for similar reasons as 1).
* The polling interval and buffer capacity apply to all nodes to ensure
   their data covers equivalent durations.
* Polling begins immediately because intervals are expected to be long
   (on the order of 30 seconds).

Original-Bug: 412649068

Tested: fx test src/power/power-manager
Tested: Manual vim3 test w/ eager power manager and no config changes --
	no issues occurred
Tested: Manual vim3 test w/ eager power manager and the below config
	changes.

	PlatformMetrics config
```
    {
        type: "PlatformMetrics",
        name: "platform_metrics",
        config: {
            cpu_temperature_poll_interval_s: 1,
            sensor_temperature_poll_interval_s: 30,
            sensor_temperature_measurement_buffer_capacity: 360,
            throttle_debounce_timeout_s: 60,
        },
        dependencies: {
            cpu_temperature_handler_node: "temperature_soc_pll",
            sensor_temperature_handler_nodes: ["temperature_soc_pll"],
            crash_report_handler_node: "crash_handler",
        },
    },
```

	Power manager logs show temperatures w/o issues.

```
[00000.761][02182][02184][power_manager] INFO: started
[00000.762][02182][02184][power_manager] INFO: Configuration: enable_debug_service=false node_config_path=/config/node_config.json disable_temperature_filter=false
[00000.767][02182][02184][power_manager] INFO: Creating nodes from config file: /config/node_config.json
[00000.767][02182][02184][power_manager] INFO: Creating node "sys_shutdown"
[00000.767][02182][02184][power_manager] INFO: Creating node "crash_handler"
[00000.767][02182][02184][power_manager] INFO: Creating node "temperature_soc_pll"
[00000.768][02182][02184][power_manager] INFO: Creating node "platform_metrics"
[00000.768][02182][02184][power_manager] INFO: Creating node "thermal_state_handler"
[00000.769][02182][02184][power_manager] INFO: Creating node "thermal_load_driver"
[00000.769][02182][02184][power_manager] INFO: Initializing nodes
[00003.639][02182][02184][power_manager] INFO: Setup complete
[00003.639][02182][02184][power_manager] INFO: Temperature of TemperatureHandler (temperature-sensor-ff634800) is Celsius(66.9000015258789)C. Not yet published to Inspect with a buffer capacity of 360 -- see https://fxbug.dev/412649068 for progress
[00030.770][02182][02184][power_manager] INFO: Temperature of TemperatureHandler (temperature-sensor-ff634800) is Celsius(75.9000015258789)C. Not yet published to Inspect with a buffer capacity of 360 -- see https://fxbug.dev/412649068 for progress
[00060.772][02182][02184][power_manager] INFO: Temperature of TemperatureHandler (temperature-sensor-ff634800) is Celsius(76.0999984741211)C. Not yet published to Inspect with a buffer capacity of 360 -- see https://fxbug.dev/412649068 for progress
```

Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1259526
Original-Revision: d5591867a2fe7e419cad4e524815312d606dcb50
GitOrigin-RevId: ba83a1510f503d963d1584e4d1d6dbd47cae8e17
Change-Id: Id07a2fd643f8a60edf86b127f344655b7b67f796
1 file changed
tree: ba53c48076fa5b81c44142452544e26ccc3e1e0d
  1. ctf/
  2. git-hooks/
  3. infra/
  4. third_party/
  5. cts
  6. firmware
  7. flower
  8. jiri.lock
  9. MILESTONE
  10. minimal
  11. prebuilts
  12. README.md
  13. stem
  14. test_durations
  15. toolchain
README.md

Integration

This repository contains Fuchsia's Global Integration manifest files.

Making changes

All changes should be made to the internal version of this repository. Our infrastructure automatically updates this version when the internal one changes.

Currently all changes must be made by a Google employee. Non-Google employees wishing to make a change can ask for assistance in one of the communication channels documented at get involved.

Obtaining the source

First install Jiri.

Next run:

$ jiri init
$ jiri import minimal https://fuchsia.googlesource.com/integration
$ jiri update

Third party

Third party projects should have their own subdirectory in ./third_party.